# Upgrade from postgres 13 to 15 failing - currently means forum is unavailable

**URL:** <https://meta.discourse.org/t/upgrade-from-postgres-13-to-15-failing-currently-means-forum-is-unavailable/357028>\
**Category:** Product Support\
**Tags:** postgres\
**Created:** [March 12, 2025, 8:56pm UTC](https://meta.discourse.org/t/upgrade-from-postgres-13-to-15-failing-currently-means-forum-is-unavailable/357028 "2025-03-12T20:56:59Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tanya\_byrne](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tanya_byrne/32/444826_2.png) [@tanya\_byrne](https://meta.discourse.org/u/tanya_byrne)\
**Post date:** [March 12, 2025, 8:56pm UTC](https://meta.discourse.org/t/upgrade-from-postgres-13-to-15-failing-currently-means-forum-is-unavailable/357028/1 "2025-03-12T20:56:59Z")

</div>

Hi all,

I am getting the below error when trying to run a rebuild to upgrade to most recent test-passed. This would include bumping the postgres version from 13 to 15.

```plaintext
[2025-03-12T20:49:22.045226 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/15/main/pg_hba.conf
I, [2025-03-12T20:49:22.045431 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/15/main/pg_hba.conf
I, [2025-03-12T20:49:22.045624 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/15/main/pg_hba.conf
I, [2025-03-12T20:49:22.045816 #1] INFO -- : > if [-f /root/install_postgres]; then
  /root/install_postgres && rm -f /root/install_postgres
elif [-e /shared/postgres_run/.s.PGSQL.5432]; then
  socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
fi

initdb: warning: enabling "trust" authentication for local connections
initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
W: https://dl.yarnpkg.com/debian/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
debconf: delaying package configuration, since apt-utils is not installed
cp: cannot stat '/etc/postgresql/13/main/*': No such file or directory

```

The script just becomes stuck at this copy command.

When I try to restart the forum, restart command completes successfully but the forum is showing “connection refused”.

How do I either rollback to use my backup in postgres 13 or move forward? Thanks

---

_[View the full topic](https://meta.discourse.org/t/upgrade-from-postgres-13-to-15-failing-currently-means-forum-is-unavailable/357028)._
