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

Rebooting looses the cluster conf.d directory #49

Open
jschoolcraft opened this issue Sep 27, 2019 · 2 comments
Open

Rebooting looses the cluster conf.d directory #49

jschoolcraft opened this issue Sep 27, 2019 · 2 comments

Comments

@jschoolcraft
Copy link

I'm not sure if this is the right place to report this or not. When I reboot my cluster's conf.d is missing and prevents me starting pg.

I have:

Set up clusters with:

pg_createcluster --locale en_US.UTF-8 --start 9.4 main -- -A trust --auth-host=trust

After a reboot:

pg_lsclusters
Ver Cluster Port Status Owner        Data directory                         Log file
9.4 main    5432 down   jschoolcraft /usr/local/var/lib/postgresql/9.4/main /usr/local/var/log/postgresql/postgresql-9.4-main.log

Trying to start:

pg_ctlcluster 9.4 main start
The PostgreSQL server failed to start. Please check the log output:
LOG:  could not open configuration directory "/usr/local/etc/postgresql/9.4/main/conf.d": No such file or directory
FATAL:  configuration file "/usr/local/etc/postgresql/9.4/main/postgresql.conf" contains errors

If I:

mkdir /usr/local/etc/postgresql/9.4/main/conf.d

Then pg_ctlcluster 9.4 main start works as expected.

@voltechs
Copy link

Can confirm—still an (annoying) issue.

@matteo95g
Copy link

matteo95g commented Jul 25, 2022

I'm facing the same issue, @jschoolcraft your solution worked, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants