Multiple Users Experience 502: Bad Gateway after Web Update
Several users, including chuckh_nnyln, zapata_36, glynhudson, polonel, FiNeX, ransim, and Divert, reported experiencing a 502 Bad Gateway error after updating their Discourse instances via the web interface or Docker update.
eviltrout and eviltrout acknowledged the issue and stated that they were working on a fix. A helpful error message was provided by polonel, which included a bind error.
A fix was eventually released, and david provided instructions on how to apply it. To fix the issue, users need to ssh into their machine and run cd /var/discourse followed by ./launcher rebuild app. This fix was confirmed to work by FiNeX, ransim, glynhudson, and chuckh_nnyln.
So ran updates this morning from the web interface and during the update of Discourse (not docker) it said that the update failed. I look at the log display but it really doesn’t mean much to me. I then ssh in and ran ‘cd /var/discourse’ then ‘git pull’ and ‘./launcher rebuild app’. After everything completed the site resolves with a 502 Bad Gateway. (http://forums.nyheritage.org/ btw). I’ve read through the similar topics but didn’t find anything that seemed to suggest a course of action on this.
I’d attach the Discourse Doctor output expect new users can’t upload documents and I can’t quote it because new users can only post 2 links. So the link to the server location is here: http://forums.nyheritage.org/NjliZDRlYzE3NTZlZTU0.txt Hopefully that works.
Any suggestions on further things to try would be appreciated! Thanks!
/var/discourse# docker ps --all
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ae2dac939415 local_discourse/app "/sbin/boot" 7 minutes ago Exited (5) 2 minutes ago app
Similar problem here: I’ve rebuild the app (./launcher rebuild app) and now the site is returning this error. I was trying to add a new container and setup a multi forum with nginx proxy but something goes wrong, when I’ve reverted the changes to the original ones the forum stopped working (… yes, I’m sure the settings have been correctly restored).
Same issue as well, ran the Docker update and then tried to apply the discourse updates only to get the 502 error. The upgrade implied it failed and I was seeing a 500 error, I went ahead and did a rebuild (./launcher rebuild app) and now I’m seeing the 502.