-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker: upgrade from Postges 11/12 to a newer version #18085
Comments
Easiest would be dumping the database and importing it with a newer postgres version. |
I've collected all necessary steps for my instance(s) in a document file. I had to:
Hope this helps other people. matrix-synapse-postgres-12-to-15-upgrade.md |
Thanks @maxkratz, you're guide worked well for me! |
Thanks a lot @maxkratz for the guide, worked like a charm! The only thing I had to adapt is
-> change to |
@maxkrat, oh my god, man, I love you |
@maxkratz Danke man |
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: