[BUG] loading chunk failed with 502
I have upgrade to the latest version, but this problem still here.
loading some .js get 502 code
Connected to Huly®: UBERF-16177
This reads as a deployment/proxy support question (a 502 comes from the gateway in front of the front service) rather than a code defect or a concrete feature request. It may be better suited to the community channels or documentation. If maintainers agree, please consider closing.
@killerprojecte — as explained above, this does not look like something that can be addressed in the codebase. Could you please close this issue if you agree? If you think there is a code change needed after all, please describe what should change.
4. @killerprojecte — as explained above, this does not look like something that can be addressed in the codebase. Could you please close this issue if you agree? If you think there is a code change needed after all, please describe what should change.
I do not believe this is a deployment issue, as the instance had been running stably for several months before suddenly becoming unusable. Furthermore, the problem persists even after a complete re-setup following the latest deployment guide. As a user, I have no insight into the project’s actual code or architecture, and I am therefore unable to pinpoint the specific cause of the issue.
@killerprojecte Thanks for the details — that is useful, and a setup that worked for months and fails even after a clean re-setup does point to something other than a simple proxy misconfiguration. To narrow it down, could you share:
- Which requests return 502 (the exact URL paths of the failing chunks from the browser's network tab) and whether it is always the same files.
- The logs of the
frontcontainer (and of your reverse proxy) around the time of a failing request. - Whether the
frontcontainer restarts or runs out of memory (docker psuptime /docker inspectOOMKilled), and the free disk space on the host. - The image versions you run and whether the
frontservice is behind an additional proxy or CDN.
With that it should be possible to tell whether the 502 comes from the front service itself or from something in front of it.
@killerprojecte Thanks for the details — that is useful, and a setup that worked for months and fails even after a clean re-setup does point to something other than a simple proxy misconfiguration. To narrow it down, could you share:
- Which requests return 502 (the exact URL paths of the failing chunks from the browser's network tab) and whether it is always the same files.
- The logs of the
frontcontainer (and of your reverse proxy) around the time of a failing request.- Whether the
frontcontainer restarts or runs out of memory (docker psuptime /docker inspectOOMKilled), and the free disk space on the host.- The image versions you run and whether the
frontservice is behind an additional proxy or CDN.With that it should be possible to tell whether the 502 comes from the front service itself or from something in front of it.
I am unable to provide further logs, but I believe this is a front-end issue; certain JavaScript files return a 502 status code upon loading, which prevents the browser from displaying the page correctly. As I have been unable to resolve this problem, I have switched to other software to continue our work.
@killerprojecte Thanks for explaining, and I'm sorry this prevented you from continuing with Huly. You're right that failed JavaScript downloads can stop the page loading. My earlier suggestion that this could not be a code issue was too definite: a 502 usually comes from a proxy, but a failure in the front service can trigger it.
Without the failing URLs or diagnostic data, I can't identify the cause or propose a specific fix. I understand you've moved on and can't provide more logs.
For anyone encountering this later, the most useful evidence is a failing URL, matching proxy/front logs, image versions, and whether front restarted or was OOM-killed.