In a discussion regarding a 502 bad gateway error following an update to Discourse 1.8.0.beta10, user JagWaugh reported that while git pull and rebuild app completed without errors, the application failed to start. Logs indicated that the unicorn process was crashing immediately after startup, causing kill errors for non-existent PIDs JagWaugh. Despite checking system resources, noting that memory usage was low JagWaugh, and rebooting the server, the issue persisted. Community members sam and kraml suggested the container might not be running correctly or a plugin was at fault. User mitchellk noted a successful rebuild on their end and recommended a reboot. Following advice to isolate third-party plugins sam, JagWaugh confirmed that a beta plugin was indeed the cause of the failure JagWaugh.
This on my sandbox (plain install per 30 minute on an AWS Ubuntu 16.04 isntance), previous update was 4 days ago, after which it ran fine.
All I did was:
cd /var/discourse
git pull
./launcher rebuild app
No errors during the update, but since it finished the site gives 502 bad gateway nginx errors, and docker logs 4b7 shows:
ok: run: redis: (pid 47) 390s
ok: run: postgres: (pid 44) 390s
supervisor pid: 2066 unicorn pid: 2071
config/unicorn_launcher: line 44: kill: (2071) - No such process
config/unicorn_launcher: line 10: kill: (2071) - No such process
exiting
ok: run: redis: (pid 47) 396s
ok: run: postgres: (pid 44) 396s
supervisor pid: 2104 unicorn pid: 2109
config/unicorn_launcher: line 44: kill: (2109) - No such process
config/unicorn_launcher: line 10: kill: (2109) - No such process
I’ve done a shutdown -r, and apt-get update, apt-get upgrade didn’t show any out of date packages.