sudo的廚師服務器-CTL重新配置失敗 運行失敗與folloing錯誤廚師服務器安裝在RHEL
STDERR: createdb: could not connect to database template1: could not connect to server: No such file or directory
\t Is the server running locally and accepting
\t connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
---- End output of createdb --template template0 --encoding UTF-8 opscode-pgsql ----
Ran createdb --template template0 --encoding UTF-8 opscode-pgsql returned 1
I have tried multiple options suggested in other posts like:
1) chmod 777 /tmp
2) $ sudo mkdir /var/pgsql_socket/
3) Ensure localhost entry is present under /etc/hosts
However, I do not see any socket definition in /tmp
or
/usr/local/var/postgres/postgresql.conf
情侶問題的價值,你運行的是什麼版本的廚師?你還在運行什麼版本的Redhat。這是乾淨的安裝還是升級? –
這實際上是Oracle Linux 6.6,它基於RHEL映像。廚師服務器的版本是12.1.0 ...我以前曾經安裝過以前版本的Chef Server。我沒有升級,但做了全新的乾淨安裝 – sjn