Error after Upgrading


I got the following error after upgrading. THe Webpage gives me 502 Bad Gateway.

Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return #<Process::Status: pid 1592 exit 2>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "su postgres -c 'psql $db_name -c \"alter schema public owner to $db_user;\"'"
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
==================== END REBUILD LOG ====================
Failed to rebuild app.
1 Like

I also had a 502 error after upgrading. It went away after doing the rebuild a second time.

./launcher rebuild app



I did the rebuild several times and it didnt work.

You can go back to the previous version by using ./launcher restart app command (one time, ./launcher destroy app then ./launcher start app worked for me when restart didn’t)

But to help you, we need to see everything you can below these lines, we will probably have more info on the issue


@Steven thank you! I just used this to restart our instance until I can sort out what went wrong during the attempted Postgres update in this thread.