FATAL: database files are incompatible with server
dkuku opened this issue · comments
Hi - I'm creating a fresh project and it fails. I even tried to change postgres image to 9.6 but then it fails and the error says about postgres user
Attaching to test-api_postgres_1,test-api_frontend_1, test-api_mailhog_1, test-api_backend_1, test-api_nginx_1
mailhog_1 | WARNING: no logs are available with the 'none' log driver
postgres_1 | 2019-09-06 19:49:58.007 UTC [1] FATAL: database files are incompatible with server
postgres_1 | 2019-09-06 19:49:58.007 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.6.
frontend_1 |
frontend_1 | > frontend@0.1.0 serve /app
frontend_1 | > npm i && vue-cli-service serve
frontend_1 |
nginx_1 | WARNING: no logs are available with the 'none' log driver
backend_1 | Postgres is unavailable - sleeping
permission-api_postgres_1 exited with code 1
backend_1 | Postgres is unavailable - sleeping
backend_1 | Postgres is unavailable - sleeping
backend_1 | Postgres is unavailable - sleeping
and this goes in infinite loop
I removed the container from portrainer and restarted and it worked
I probably had an old container with the same name