docker-postgresql
docker-postgresql copied to clipboard
Error trying to initialize postgresql with UID/GID Mapping
I get the following error when trying to initialize Postgresql with UID:GID mapping:
git-postgresql-1 | 2017-02-17T11:26:38.206689685Z Adapting uid and gid for postgres:postgres to 70:70
git-postgresql-1 | 2017-02-17T11:26:38.225581507Z Initializing datadir...
git-postgresql-1 | 2017-02-17T11:26:39.562045683Z Initializing certdir...
git-postgresql-1 | 2017-02-17T11:26:39.566118370Z Initializing logdir...
git-postgresql-1 | 2017-02-17T11:26:39.569191309Z Initializing rundir...
git-postgresql-1 | 2017-02-17T11:26:39.590957787Z Setting resolv.conf ACLs...
git-postgresql-1 | 2017-02-17T11:26:39.595547956Z Initializing database...
git-postgresql-1 | 2017-02-17T11:26:39.958523063Z FATAL: could not read directory "pg_notify": Unknown error 523
git-postgresql-1 | 2017-02-17T11:26:39.963100040Z child process exited with exit code 1
git-postgresql-1 | 2017-02-17T11:26:39.963121409Z initdb: removing contents of data directory "/var/lib/postgresql/9.6/main"
I'm using rancher-nfs for the /var/lib/postgresql volume, and it is correctly applying the owner to postgresql UID:GID 70:70.
Hi, I got same error, what is the solution?
Same issue here...
hi, apparently as a workaround, creating the postres's directory structure manually and then running the container works.