Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Support for user-defined PGDATA broken with pg_cron.sh #113

Open
jacob-indigo opened this issue Jan 19, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jacob-indigo
Copy link

Describe the bug
Postgres fails to start with the following error:

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 code 1

To Reproduce
Add the docker executor to a CircleCI job config:

docker:
      - image: cimg/postgres:15.5
        environment:
          PGDATA: /dev/shm/pgdata/data

Expected behavior
Postgres starts and is using the value of PGDATA as the data directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant