I’m trying to upgrade from 1.22.1 to 1.24.2 and started by running the pgautoupdate docker. I use portainer.io to manage containers so I stopped the main baserow container and duplicated the container by renaming and pulling baserow-pgautoupdate:1.24.2. I checked the logs after it exited and got this:
Which seems odd, I checked the PG_VERSION in the postgres folder and it does say 11. Everything in the folder seems untouched compared to a back up tar. For now, I have restarted my old container and everything seems to be working.
I’m not sure what the script is looking for to verify the upgrade, but shouldn’t it be looking for 15?
I have verify this behavior by restoring a backup to a test directory and running the upgrade docker on the test, generates the same message. Is there maybe an env that’s affecting this? I noticed the container has these env:
POSTGRES_BIN_FOLDER /usr/lib/postgresql/15/bin
POSTGRES_LOCATION /etc/postgresql/11/main
POSTGRES_OLD_BIN_FOLDER /usr/lib/postgresql/11/bin
POSTGRES_OLD_LOCATION /etc/postgresql/11/main
POSTGRES_OLD_VERSION 11
POSTGRES_SETUP_SCRIPT_COMMAND upgrade
POSTGRES_VERSION 11