FusionAuth / fusionauth-containers

Container definitions for docker, kubernetes, helm, and whatever containers come next!
https://fusionauth.io/
219 stars 68 forks source link

Docker DB container doesn't start #82

Closed tom-s07 closed 2 years ago

tom-s07 commented 2 years ago

Following the installation docs from https://fusionauth.io/docs/v1/tech/installation-guide/docker doesn't result in a working fusionauth docker setup.

DB container fusionauth-db-1 doesn't start due to version conflict.

fusionauth-db-1          | 
fusionauth-db-1          | PostgreSQL Database directory appears to contain a database; Skipping initialization
fusionauth-db-1          | 
fusionauth-db-1          | 2022-07-18 08:30:07.657 UTC [1] FATAL:  database files are incompatible with server
fusionauth-db-1          | 2022-07-18 08:30:07.657 UTC [1] DETAIL:  The data directory was initialized by PostgreSQL version 11, which is not compatible with this version 12.9 (Debian 12.9-1.pgdg110+1).
fusionauth-db-1 exited with code 1
fusionauth-db-1          | 
fusionauth-db-1          | PostgreSQL Database directory appears to contain a database; Skipping initialization
fusionauth-db-1          | 
fusionauth-db-1          | 2022-07-18 08:30:11.191 UTC [1] FATAL:  database files are incompatible with server
fusionauth-db-1          | 2022-07-18 08:30:11.191 UTC [1] DETAIL:  The data directory was initialized by PostgreSQL version 11, which is not compatible with this version 12.9 (Debian 12.9-1.pgdg110+1).
fusionauth-db-1 exited with code 1
tom-s07 commented 2 years ago

Ah, had apparently run fusionauth a while ago on this machine already and there was an old volume still laying around. Removing that solved the issue.

mooreds commented 2 years ago

Glad you figured it out, @tom-s07 !