docker-postgresql icon indicating copy to clipboard operation
docker-postgresql copied to clipboard

Error trying to initialize postgresql with UID/GID Mapping

Open fabiorauber opened this issue 8 years ago • 3 comments

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.

fabiorauber avatar Feb 17 '17 11:02 fabiorauber

Hi, I got same error, what is the solution?

kenych avatar Aug 30 '17 09:08 kenych

Same issue here...

timwebster9 avatar Sep 08 '17 11:09 timwebster9

hi, apparently as a workaround, creating the postres's directory structure manually and then running the container works.

kenych avatar Sep 21 '17 20:09 kenych