-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[UI] Nomad behind a loadbalancer break the UI #24916
Comments
Hi @cberescu, thanks for raising this. I haven't been able to track down an obvious culprit in 1.9.4 or 1.9.3 that would indicate a new bug surrounding this, so I'd like to dig in a little more. What was the last version you were running where you didn't notice a problem here? Are there any resources that 404 other than css/js resources across servers? For example, do you find any XHR requests 404ing on page load? |
Hi @philrenaud , Version 1.9.3 works, issue is No XHR loads because of the issue with js/css |
ok, found the issue, need to upgrade all servers to the same version... i believe i forgot one and from there was the issue. LE: |
LE: it seems the issue is not even from the ubuntu server version... i have the same version on the both servers but get different js/css names... LE2 : I also get different sizes :
and
|
Ok, so it seems I missed the CPU architecture , the issue is that the servers are either ARM or AMD and the UI build differs on them . This did not happen until 1.9.5 . Any way to fix this ? |
Hi @cberescu , just a note to say we've started digging into this. We're building the JS bundle for each of our machine targets during our release process, but probably should be building it a single time and passing that build to each machine target, instead. Triaging internally. |
Nomad version
Nomad v1.9.4
BuildDate 2024-12-18T15:16:22Z
Revision 5e49fcd+CHANGES
Operating system and Environment details
Ubuntu
Issue
The issue seems to be that when having multiple servers behind a load balancer that can respond to UI requests if the assets are not requested from the same server they are returned as 404 pages.
So if the main page is loaded from Server A , and some of CSS and JS are loaded from Server B or Server C they return the 404 page for some reason. This did not happen prior of 1.9.3 version.
Reproduction steps
Having a domain dashboard.nomad.com and a load balancer that will forward every request to a different server(round‑robin).
Expected Result
The assets request from diffeent pages to not return 404 page
Actual Result
Some CSS or JS file contain the not found page
The text was updated successfully, but these errors were encountered: