I was running nextcloud 21 with docker-compose based off the posgres-fpm example. Tried to upgrade with docker-compose pull and up -d as suggested here.
Now comes the first failure:
The data directory was initialized by PostgreSQL version 13, which is not compatible with this version 14.1.
I tried to follow a dumping and importing to fresh db strategy but then i got this error:
myconfig_postgres_fpm-db-1 | 2021-12-25 21:42:48.753 UTC  FATAL: password authentication failed for user <ncadminuser> myconfig_postgres_fpm-db-1 | 2021-12-25 21:42:48.753 UTC  DETAIL: User <ncadminuser> does not have a valid SCRAM secret.
EDIT: this problem below is solved (only need to find a way to updrade db):
Ok then, I went back to stick to postgresql13 with tagging image: postgres:13-alpine
Then the nc server is running and could start the upgrade but this time i got pls update one major at a time: ok then added the tag nextcloud:22-fpm-alpine in my docker-compose.yml as per the link given under the error messsage from the web ui.
But with the 22 tag i get this:
$docker-compose logs app myconfig_postgres_fpm-app-1 | Configuring Redis as session handler myconfig_postgres_fpm-app-1 | Can't start Nextcloud because the version of the data (126.96.36.199) is higher than the docker image version (188.8.131.52) and downgrading is not supported. Are you sure you have pulled the newest image version?
now what? Pls don’t tell me I am stuck her in between versions.
What do you suggest doing? Thanks for any help!