# Cannot rebuild app because UPGRADE OF POSTGRES FAILED

**URL:** <https://meta.discourse.org/t/cannot-rebuild-app-because-upgrade-of-postgres-failed/351716>\
**Category:** Self-hosting\
**Created:** [February 11, 2025, 6:27pm UTC](https://meta.discourse.org/t/cannot-rebuild-app-because-upgrade-of-postgres-failed/351716 "2025-02-11T18:27:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Yt.w](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yt.w/32/348367_2.png) [@Yt.w](https://meta.discourse.org/u/Yt.w)\
**Post date:** [February 11, 2025, 7:27pm UTC](https://meta.discourse.org/t/cannot-rebuild-app-because-upgrade-of-postgres-failed/351716/4 "2025-02-11T19:27:02Z")

</div>

I may found the reason, after I run ./launcher stop app  
The DB system did not shut down.  
I waited for 3 mins already. any ideas?

```plaintext
2025-02-11 19:24:08.044 UTC [550] LOG: listening on IPv4 address "0.0.0.0", port 5432
2025-02-11 19:24:08.044 UTC [550] LOG: listening on IPv6 address "::", port 5432
2025-02-11 19:24:08.046 UTC [550] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2025-02-11 19:24:08.065 UTC [569] LOG: database system was interrupted; last known up at 2025-02-11 19:19:31 UTC
2025-02-11 19:24:08.323 UTC [569] LOG: database system was not properly shut down; automatic recovery in progress
2025-02-11 19:24:08.326 UTC [569] LOG: redo starts at 3/2BE89C0
2025-02-11 19:24:08.326 UTC [569] LOG: invalid record length at 3/2BEFFC8: wanted 24, got 0
2025-02-11 19:24:08.326 UTC [569] LOG: redo done at 3/2BEFFA0
2025-02-11 19:24:08.344 UTC [550] LOG: database system is ready to accept connections

```

---

_[View the full topic](https://meta.discourse.org/t/cannot-rebuild-app-because-upgrade-of-postgres-failed/351716)._
