docker icon indicating copy to clipboard operation
docker copied to clipboard

Worker nodes get error when specifying different PGDATA path

Open ghost opened this issue 3 years ago • 0 comments

When specifying a different PGDATA path value (ex: attaching another volume to /pgdata), worker nodes will get an error on startup because the postgres user does not own the directory. The coordinator node handles this fine because it changes the directory's ownership automatically.

Prepending wait-for-manager.sh with chown -R postgres "$PGDATA" fixes the issue.

ghost avatar Aug 04 '22 17:08 ghost