Closed comfreak89 closed 11 months ago
I am also having the same problem after upgrading to 1.5.8. I have also reverted back to 1.5.6 for now. I found my docker compose is still using PostgreSQL v11 and it appears 1.5.8 needs PostgreSQL 12 or later. I updated my docker compose to try both PostgreSQL v12 and v15 and experienced a similar issue as @comfreak89 found. I found a few resources on this GitHub about migrating the DB from v11 to a higher version but I couldn't quite figure out how to do it for a docker container setup.
Any advice on how to migrate the PostgreSQL DB from v11 to something higher (say v15) would be appreciated as it seems this is required to upgrade beyond v1.5.6!
Issue
Hi,
I wanted to update Tandoor to the current version. I changed my docker-compose.yml, so that postgreSQL 15 will be used. Then I get the following error:
db_recipes_1 | db_recipes_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization db_recipes_1 | db_recipes_1 | 2023-11-28 07:18:38.205 UTC [1] FATAL: database files are incompatible with server db_recipes_1 | 2023-11-28 07:18:38.205 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 11, which is not compatible with this version 15.5. tandoor_db_recipes_1 exited with code 1
Do I need to update the schema beforehand somehow?
I switched back to 1.5.6 for now.
Tandoor Version
1.5.8
OS Version
Ubuntu 22.04
Setup
Docker / Docker-Compose
Reverse Proxy
Nginx Proxy Manager (NPM)
Other
No response
Environment file
Docker-Compose file
Relevant logs