Closed dlambda closed 3 years ago
Changes look good. Let me check the DATABASE_HOSTNAME
change locally before merging the changes.
I've got the same error as you even when DATABASE_HOSTNAME
is set to dispatch_postgres_1
. I'll keep looking to see what's causing it...
The command was failing because postgres wasn't starting due to a version mismatch. Do you see the following error when you run docker logs dispatch_postgres_1
? If so, can you run docker volume rm dispatch-postgres
and then try again?
PostgreSQL Database directory appears to contain a database; Skipping initialization
2021-03-10 20:56:32.486 UTC [1] FATAL: database files are incompatible with server
2021-03-10 20:56:32.486 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 13, which is not compatible with this version 12.6 (Debian 12.6-1.pgdg100+1).
The command was failing because postgres wasn't starting due to a version mismatch. Do you see the following error when you run
docker logs dispatch_postgres_1
? If so, can you rundocker volume rm dispatch-postgres
and then try again?PostgreSQL Database directory appears to contain a database; Skipping initialization 2021-03-10 20:56:32.486 UTC [1] FATAL: database files are incompatible with server 2021-03-10 20:56:32.486 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 13, which is not compatible with this version 12.6 (Debian 12.6-1.pgdg100+1).
Thanks - yes - had been getting that same error and removed the volume. I was pretty sure I was still getting the hostname problem after doing this, and hence played with the hostname.. but don't have a good record of my sequencing. Perhaps I did discover this part way through. Anyway - thanks!
Some minor improvements to the install:
Not sure why I was getting this now, but might be better to refer to that than just 'postgres'?.. Optional.