You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Postgres 11/12 is now deprecated, is there an official guide how to upgrade to a new Postgres version using Docker? Just changing the base image throws an error:
# docker logs synapse-db
PostgreSQL Database directory appears to contain a database; Skipping initialization
2025-01-15 07:09:06.003 UTC [1] FATAL: database files are incompatible with server
2025-01-15 07:09:06.003 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 12, which is not compatible with this version 15.10.
Steps to reproduce
change the image tag from docker.io/postgres:12-alpine to docker.io/postgres:15-alpine
Homeserver
self-hosted homeserver
Synapse Version
{"server_version":"1.121.1"}
Installation Method
Docker (matrixdotorg/synapse)
Database
Postgres, single server, not ported but running Postgres from the beginning, no backup restored
Workers
Single process
Platform
Docker on Debian 12
Configuration
no unusual configuration, just using this homeserver.yaml:
PostgreSQL Database directory appears to contain a database; Skipping initialization
2025-01-15 07:09:06.003 UTC [1] FATAL: database files are incompatible with server
2025-01-15 07:09:06.003 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 12, which is not compatible with this version 15.10.
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered:
Description
Since Postgres 11/12 is now deprecated, is there an official guide how to upgrade to a new Postgres version using Docker? Just changing the base image throws an error:
Steps to reproduce
docker.io/postgres:12-alpine
todocker.io/postgres:15-alpine
Homeserver
self-hosted homeserver
Synapse Version
{"server_version":"1.121.1"}
Installation Method
Docker (matrixdotorg/synapse)
Database
Postgres, single server, not ported but running Postgres from the beginning, no backup restored
Workers
Single process
Platform
Docker on Debian 12
Configuration
no unusual configuration, just using this
homeserver.yaml
:Relevant log output
PostgreSQL Database directory appears to contain a database; Skipping initialization 2025-01-15 07:09:06.003 UTC [1] FATAL: database files are incompatible with server 2025-01-15 07:09:06.003 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 12, which is not compatible with this version 15.10.
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: