# Error after Upgrading

**URL:** <https://meta.discourse.org/t/error-after-upgrading/153907>\
**Category:** Self-hosting\
**Created:** [June 5, 2020, 8:35am UTC](https://meta.discourse.org/t/error-after-upgrading/153907 "2020-06-05T08:35:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![HB9GSL](https://avatars.discourse-cdn.com/v4/letter/h/919ad9/32.png) [@HB9GSL](https://meta.discourse.org/u/HB9GSL)\
**Post date:** [June 5, 2020, 8:35am UTC](https://meta.discourse.org/t/error-after-upgrading/153907/1 "2020-06-05T08:35:48Z")

</div>

Hello

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

```plaintext
FAILED
--------------------
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;\"'"
d722c24aad0b29710de6b6b321113328db3ed1c2c09c0ac74e00f1eac41279f3
**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.

```

---

_[View the full topic](https://meta.discourse.org/t/error-after-upgrading/153907)._
