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

postgresql.conf missing #1047

Closed
StephenLiuYa opened this issue Jul 8, 2020 · 3 comments
Closed

postgresql.conf missing #1047

StephenLiuYa opened this issue Jul 8, 2020 · 3 comments

Comments

@StephenLiuYa
Copy link

I run the compelete demo, but get error shown blew:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/patroni/async_executor.py", line 97, in run
    wakeup = func(*args) if args else func()
  File "/usr/local/lib/python3.6/dist-packages/patroni/postgresql/__init__.py", line 645, in restart
    ret = self.stop(block_callbacks=True) and self.start(timeout, task, True, role)
  File "/usr/local/lib/python3.6/dist-packages/patroni/postgresql/__init__.py", line 423, in start
    self.config.write_postgresql_conf(configuration)
  File "/usr/local/lib/python3.6/dist-packages/patroni/postgresql/config.py", line 416, in write_postgresql_conf
    os.rename(self._postgresql_conf, self._postgresql_base_conf)
FileNotFoundError: [Errno 2] No such file or directory: '/home/postgres/pgdata/pgroot/data/postgresql.conf' -> '/home/postgres/pgdata/pgroot/data/postgresql.base.conf'
/var/run/postgresql:5432 - no response
2020-07-08 07:07:19,716 INFO: Lock owner: None; I am acid-test-cluster-0

How to get the postgresql.conf file

@FxKu
Copy link
Member

FxKu commented Jul 9, 2020

Where do you run the operator on? Have you tried the whole satup more than once?

@ReSearchITEng
Copy link
Contributor

@StephenLiuYa
For beginning it might be better to use the helm chart instead of putting manifests manually.

@MatthiasLohr
Copy link

What was the cause of the missing postgresql.conf file? I'm currently experiencing a similar problem, see #2151.

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

4 participants