Skip to content

Conversation

@supaeasy
Copy link
Contributor

Set New Version from 13 to 17 to allow Upgrades

This should fix opf/openproject-docker-compose#111

Set New Version from 13 to 17 to allow Upgrades
@supaeasy
Copy link
Contributor Author

@oliverguenther any reason why this is not merged yet? Also, probably more important: #19011
The upgrade does not work as documented, see also opf/openproject-docker-compose#111 and nested posts in community forum there. I would really love to upgrade properly but right now it is not possible. Sorry for the ping but as far as I understand this is a minor fix that shouldnt need much looking into and will fix a major problem.

Copy link
Member

@oliverguenther oliverguenther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this was indeed forgotten to be reflected in the upgrade script

@oliverguenther oliverguenther merged commit ad5c1ea into opf:dev May 27, 2025
5 of 6 checks passed
@oliverguenther
Copy link
Member

Backported to release/16.0, so it will be part of the next patch release

@supaeasy
Copy link
Contributor Author

Thanks a lot! Any Idea when this will take effect in the docker release so I can actually upgrade? @oliverguenther

@supaeasy
Copy link
Contributor Author

Well this does not work for me. When trying to upgrade I get:

Digest: sha256:b9f8aa1fdd612570f4ffa464a4e6464b30013d51564d5fd35644bff1c352f6fa

Status: Downloaded newer image for openproject/openproject:dev
-----> Existing PostgreSQL cluster found in /var/openproject/pgdata.
-----> Setting PGVERSION=13 PGBIN=/usr/lib/postgresql/13/bin PGCONF_FILE=/etc/postgresql/13/main/postgresql.conf
Empty cluster found in /var/openproject/pgdata-next. Generating cluster...
chown: warning: '.' should be ':': ‘postgres.postgres’
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "C.UTF-8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/openproject/pgdata-next ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default "max_connections" ... 100
selecting default "shared_buffers" ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

Success. You can now start the database server using:

    /usr/lib/postgresql/17/bin/pg_ctl -D /var/openproject/pgdata-next -l logfile start


could not open version file "/var/openproject/pgdata/PG_VERSION": Permission denied
Failure, exiting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Postgresql Migration v13 -> v17 does not work as documented.

2 participants