# Trouble with latest update

**URL:** https://meta.discourse.org/t/trouble-with-latest-update/152052
**Category:** Self-hosting
**Created:** [May 20, 2020, 9:57am UTC](https://meta.discourse.org/t/trouble-with-latest-update/152052 "2020-05-20T09:57:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [May 20, 2020, 9:57am UTC](https://meta.discourse.org/t/trouble-with-latest-update/152052/1 "2020-05-20T09:57:39Z")

</div>

I’m having trouble with the [latest update](https://meta.discourse.org/t/postgresql-12-update/151236). Now my Discourse site is down and will not get up ☹

After updating via the admin I was prompted to rebuild the app via the commandline. I did `./launcher rebuild app` and it finished successfully. I.e., I got to this:

```plaintext
To complete the upgrade, rebuild again using:

./launcher rebuild app

```

I dutifully did so, but ended up with the same message. I tried it a couple more times, before I decided that something was definitely up.

The site was down at this point so I tried to bring it back up with `./launcher start app`.

The site will not come up and I’m getting a “502 Bad Gateway” message.

Any suggestions? 😅

(Edited for clarity.)

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [May 20, 2020, 10:06am UTC](https://meta.discourse.org/t/trouble-with-latest-update/152052/2 "2020-05-20T10:06:56Z")

</div>

Try going through this topic to see if you’ll find something similar to your case:

> [@PostgreSQL 12 update](https://meta.discourse.org/t/postgresql-12-update/151236):
>
> warning WARNING! If your database is very large, you will need a lot of extra disk space (2x database size) and should be very careful with this upgrade! We just landed the long waited PostgreSQL major version upgrade. Any site admins rebuilding Discourse from the command line will be upgraded to PostgreSQL 12 from the old PostgreSQL 10. We are running this new version for a while on Meta, and everything is working fine. PostgreSQL 12 brings lots of improvements that will be automatical…

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [May 20, 2020, 10:24am UTC](https://meta.discourse.org/t/trouble-with-latest-update/152052/3 "2020-05-20T10:24:04Z")

</div>

I had looked through that thread @osioke but had been afraid to tinker further, without getting a clearer picture of what’s going on.

I was able to bring my site back by reverting `"templates/postgres.template.yml"` to `"templates/postgres.10.template.yml"` in app.yml.

It wasn’t clear from the instructions there that this could be used after running the update – only that it could be used to postpone it.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 19, 2020, 10:36am UTC](https://meta.discourse.org/t/trouble-with-latest-update/152052/4 "2020-06-19T10:36:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
