WeblateOrg / docker-compose

Docker compose for Weblate
https://docs.weblate.org/en/latest/admin/deployments.html#docker
GNU General Public License v3.0
79 stars 64 forks source link

Incompatible PostgreSQL version #12

Closed cpa-level-it closed 5 years ago

cpa-level-it commented 5 years ago

Hi I've followed those steps to setup a weblate docker.

https://docs.weblate.org/en/latest/admin/install/docker.html#quick-docker

When launching with docker-compose up, I have the following errors :

weblate-docker_database_1 exited with code 1
database_1  | 2019-11-04 09:08:58.020 UTC [1] FATAL:  database files are incompatible with server
database_1  | 2019-11-04 09:08:58.020 UTC [1] DETAIL:  The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 11.5.
database_1  | 2019-11-04 09:09:00.176 UTC [1] FATAL:  database files are incompatible with server
database_1  | 2019-11-04 09:09:00.176 UTC [1] DETAIL:  The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 11.5.
weblate-docker_database_1 exited with code 1

Seems like there is some incompatibility with PostgreSQL database files.

Could this be because of this commit https://github.com/WeblateOrg/docker-compose/commit/1977f14285ccec25a8019f6afb7d82157fc47505 ?

cpa-level-it commented 5 years ago

My bad, seems like I had an older version of a weblate container on my computer already. That was the problem.