You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When PGDATA env var is set to override the default data directory, the container errors on startup:
/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/pg_cron.sh
shared_buffers = 512MB
max_connections = 200
max_prepared_transactions = 200
max_locks_per_transaction = 512
max_pred_locks_per_transaction = 256
listen_addresses = '*'
shared_preload_libraries = 'pg_cron'
cron.database_name = 'circle_test'
grep: /var/lib/postgresql/data/postgresql.conf: No such file or directory
/docker-entrypoint-initdb.d/pg_cron.sh: line 18: /var/lib/postgresql/data/postgresql.conf: No such file or directory
cat: /var/lib/postgresql/data/postgresql.conf: No such file or directory
cat: /var/lib/postgresql/data/postgresql.conf: No such file or directory
exited with error (exited with 1)
Describe the bug
When PGDATA env var is set to override the default data directory, the container errors on startup:
Tracked down this this line:
cimg-postgres/pg_cron.sh
Lines 21 to 22 in 418064b
To Reproduce
Set PGDATA to any non-default dir.
Expected behavior
Env var is used to avoid errors.
Workarounds
Unsure.
The text was updated successfully, but these errors were encountered: