Closed mgkahn closed 1 month ago
Fix implemented in new initdb_fix
branch.
Issue caused by a difference in Postgres initialization between development and production Docker images. Development image does not call initdb
before executing scripts in /docker-entrypoint-initdb.d
Production docker PG image calls initdb
and then calls scripts in /docker-entrypoint-initdb.d
. The call to initdb
creates the postgres superuser. See attached screen shot from dockerhub Postgres overview: https://hub.docker.com/_/postgres
Implemented hack from https://serverfault.com/questions/857339/backing-up-restoring-postgres-using-pg-dumpall-split-gzip-set-on-error
@Andrew0Hill : New nurs6293_database/Scripts/nurs6293_createdb.sql.gz only in initdb_fix
branch for testing prior to merging into main.
Fixed and merged, thanks! Closing this issue.
Error with executing nurs6293_createdb.sql.gz in initdb context. See error log screenshot. Error not seen in psql testing environment.