-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
502 Bad Gateway after updating Ubuntu packages #1199
Comments
I get the same error, but just running the container with native linux. Its the same image I build two weeks ago. Did not find the error, yet. Edit 1: Found this in the logs. There are no more error logs.
Edit 2: After further investigation:
Checking the nginx config
Seems like nodejs is only listening on net6 address, but nginx tries to proxy to net4 address. Edit 3: After changing the nginx-conf to proxy to But after this, I have ... questions: Why is there something updating without me updating the docker container? I am not using the official one, as I pre-download the textLive Environment. So the container is the same for about two weeks. Edit 4: I just read the Release Notes of 26 Release (https://docs.docker.com/engine/release-notes/26.0/)
|
Downgrading docker to |
The issue referenced here seems to be similar: The workaround mentioned there helped me to get at least to the login page and the project overview:
However, loading a project does not work. |
I solved this by adding this to my docker-compose.yml. And make sure you are using the docker-compose v2 API. ( services:
[...]
overleaf:
[...]
sysctls:
- net.ipv6.conf.all.disable_ipv6=1 This will disable ipv6 for this container at all. |
Yep, I can confirm that. The same workaround is described here: #1168 and works also greatly on my system. |
This can be fixed through #1146 (comment) |
This should be fixed in the latest release, 5.0.1, would you mind giving it a try? Check the release notes, as there are several breaking changes: https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x |
@mlevans0 At least on my machine 5.0.1 works fine without any changes - I upgraded yesterday already... Don't know about OP, though! |
Can also confirm. 5.0.1 fixed the issue for me. |
Changes were made inside the container, so it won't matter how your instance is deployed. |
I can confirm, that the solution by @ykorzikowski works. Thank you very much for the hint. I was then able to upgrade docker to the newest version. I have not yet tested 5.0.1, but it seems to be a bad idea, according to the documentation, to do it now. Should I close this issue? |
Thanks for confirming. 5.0.2 has been released (https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x) so I'll close this issue. |
Steps to Reproduce
Expected Behaviour
Overleaf should be available under http://localhost:80
Observed Behaviour
502 Bad Gateway
Context
After upgrading the packages on my Ubuntu Server and rebooting, I get 502 Bad Gateway.
Technical Info
Analysis
I am using docker
5:26.0.0-1~ubuntu.22.04~jammy
but if I use:
5:23.0.0-1~ubuntu.22.04~jammy
, then everything works as expected. Also5.25
works.The text was updated successfully, but these errors were encountered: