pg0.yml, а он падает с неявной ошибкой и не понятно что делать
root@pg0:~# patroni /etc/postgresql/10/main/pg0.yml
2019-04-19 13:44:06,919 INFO: Failed to import patroni.dcs.consul
2019-04-19 13:44:06,927 INFO: Selected new etcd server http://10.128.0.28:2379
2019-04-19 13:44:07,439 INFO: Lock owner: None; I am pg0
Traceback (most recent call last):
File "/usr/local/bin/patroni", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/patroni/__init__.py", line 169, in main
return patroni_main()
File "/usr/local/lib/python2.7/dist-packages/patroni/__init__.py", line 159, in patroni_main
patroni.run()
File "/usr/local/lib/python2.7/dist-packages/patroni/__init__.py", line 125, in run
logger.info(self.ha.run_cycle())
File "/usr/local/lib/python2.7/dist-packages/patroni/ha.py", line 1323, in run_cycle
info = self._run_cycle()
File "/usr/local/lib/python2.7/dist-packages/patroni/ha.py", line 1265, in _run_cycle
data_sysid = self.state_handler.sysid
File "/usr/local/lib/python2.7/dist-packages/patroni/postgresql.py", line 415, in sysid
data = self.controldata()
File "/usr/local/lib/python2.7/dist-packages/patroni/postgresql.py", line 1236, in controldata
data = subprocess.check_output([self._pgcommand('pg_controldata'), self._data_dir], env=env)
File "/usr/lib/python2.7/subprocess.py", line 216, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Syslog
Обсуждают сегодня