14 Nov
2023
14 Nov
'23
11:10 p.m.
I've upgraded from Fedora 37 to 38, and the postgresql server will not start:
nov. 14 23:22:18 dalen.lamasti.net postgresql-check-db-dir[1410]: An old version of the database format was found. nov. 14 23:22:18 dalen.lamasti.net postgresql-check-db-dir[1410]: Use 'postgresq l-setup --upgrade' to upgrade to version '15' nov. 14 23:22:18 dalen.lamasti.net postgresql-check-db-dir[1410]: See /usr/share /doc/postgresql/README.rpm-dist for more information.
When I run postgresql-setup --upgrade
I get:
runuser: warning: cannot change directory to /opt/postgresql: no such file or directory
- Upgrading database. /usr/bin/postgresql-setup: line 307: cd: /opt/postgresql: no such file or directory ERROR: pg_upgrade tool failed ERROR: Upgrade failed.
- See /var/lib/pgsql/upgrade_postgresql.log for details.
Why does the upgrade tool look for files in /opt/postgresql and not in /var/lib/pgsql? How to fix it?
Thanks, Lars