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

Missing .js file ERROR 404 #421

Open
julianf19 opened this issue Jan 4, 2022 · 6 comments
Open

Missing .js file ERROR 404 #421

julianf19 opened this issue Jan 4, 2022 · 6 comments
Assignees
Labels

Comments

@julianf19
Copy link

I am trying to run dejavu inside a docker container (swarm) running behind an Nginx.
on loading the page I get the title:
Capture d’écran 2022-01-04 à 10 58 15

But nothing renders on the screen, And I get a few errors
Capture d’écran 2022-01-04 à 10 48 44

I am using the latest version of dejavu
Tried with safari firefox and chrome...

If anyone has an idea of how to solve this.

@siddharthlatest
Copy link
Member

@julianf19 Can you share the path of any one file that is showing a 404 abort error in your screenshot, minus the domain info? The docker container (latest version) works well, I'm wondering if there is any nginx related config issue over here.

@julianf19
Copy link
Author

Capture d’écran 2022-01-04 à 16 42 46
Capture d’écran 2022-01-04 à 16 40 19

Here is the 2 things I could find.
I don't really get what "path" you mean.

I was thinking Nginx could also be the problem, but i do the same thing as usual so I don't get it, here is the default.conf

location /dejavu/ {
proxy_set_header Cookie "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header Host $host;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;

proxy_pass http://dejavu:1358/;
proxy_redirect off;

}

Or do you think it could be the WAF blocking something?

@siddharthlatest
Copy link
Member

siddharthlatest commented Jan 4, 2022

@julianf19 The path that shows up in the screenshot of your original image: https://user-images.githubusercontent.com/44298384/148044034-bc0cae03-d22e-4ab6-99cd-4837f84f1341.png.

Or do you think it could be the WAF blocking something?

It could be this too, you can tell this from Nginx logs or your WAF logs.

@julianf19
Copy link
Author

Well that's the whole path you see there:
https://domain.name.be/common.9459595.css

@sshhsh
Copy link

sshhsh commented Feb 9, 2022

Well that's the whole path you see there: https://domain.name.be/common.9459595.css

The problem is that your browser try to find https://domain.name.be/common.9459595.css.
But the actual file path is https://domain.name.be/dejavu/common.9459595.css.

This is the case because the static file in HTML is using absolute path instead of relative one. Maybe the next version can change to use relative paths.

@siddharthlatest
Copy link
Member

@sshhsh This can be the case, if someone feels inclined to create a PR, we will have this change included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants