Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page not loading properly #628

Open
ambozz opened this issue Dec 17, 2022 · 4 comments
Open

Page not loading properly #628

ambozz opened this issue Dec 17, 2022 · 4 comments
Labels
bug Something isn't working help wanted Anyone else feel free to pick up this issue

Comments

@ambozz
Copy link

ambozz commented Dec 17, 2022

I've tried installing this on 2 of my servers but on both I am facing some issues.
Most of the times the page won't load because of some things not loading and only in some few cases the page loads.

This is how it looks in the requests (sometimes changes but style.css almost never loads)
Tested with Chrome & Firefox on Ubuntu, Chrome Mobile, Safari, Opera GX on Windows all don't load it.
image

I am running on Ubuntu 20.04 with Node.js 16 on both servers.

Running on my PC it works completely fine running on Ubuntu 22.04 but also Node.js 16.

I have been using the default config and not changed anything in them except for enabling files being served through node.

I can't find where the issue is on why in most cases it doesn't load but then sometimes in rare cases it will and then it works fine.

@BobbyWibowo
Copy link
Owner

It sounds more or less identical with the issue in #566 (comment)

In short, there seems to be an odd quirk in that specific machine, whenever lolisafe attempts to establish a "read stream" to the physical files upon visits

You can likely circumvent the issue by serving files with Nginx/etc,
AND pre-caching website assets into RAM by enabling environmental variable as linked above

The root cause haven't been found till this date, since I haven't been able to reproduce it on any of my local nor remote machines so far

@BobbyWibowo BobbyWibowo added bug Something isn't working help wanted Anyone else feel free to pick up this issue in progress This issue or pull request is still currently being handled and still in progress labels Dec 17, 2022
@BobbyWibowo BobbyWibowo removed the in progress This issue or pull request is still currently being handled and still in progress label Jan 15, 2023
@perdedora
Copy link

perdedora commented Feb 20, 2023

I'm getting sorta of the same error when running yarn dev. The css, js and fonts doesn't load but running yarn start works perfectly.

Screenshot from 2023-02-20 11-48-36
Screenshot from 2023-02-20 11-48-53
Screenshot from 2023-02-20 11-50-01

@BobbyWibowo
Copy link
Owner

It sounds like for some reason dist-dev directory wasn't being filled with development-version of the client assets when running under yarn dev

Meanwhile yarn start worked okay because it's using pre-built assets from dist directory

@BobbyWibowo
Copy link
Owner

@perdedora I overlooked the fact that yarn dev would not build dev client assets by default (you'd have to use yarn dev:reload first)
Should be fixed in 807f153

Still unrelated with OP's issues tho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Anyone else feel free to pick up this issue
Projects
None yet
Development

No branches or pull requests

3 participants