2016-12-21 27 views
0

我對於Linux相當新(對廚師來說是全新的),並且在設置我的主廚服務器時遇到了問題。我試圖用命令Chef-server-ctl reconfigure /在主廚服務器上創建管理員用戶

sudo chef-server-ctl user-create admin Admin Ladmin [email protected] examplepass -f admin.pem

創建一個管理員用戶,但之後我不斷收到此錯誤:

ERROR: Connection refused connecting...

ERROR: Connection refused connecting to https://127.0.0.1/users/ , retry 5/5
ERROR: Network Error: Connection refused - Connection refused connecting to https://..., giving up
Check your knife configuration and network settings

我還注意到,當我跑廚師服務器-CTL我得到這樣的輸出:

[2016-12-21T13:24:59-05:00] ERROR: Running exception handlers Running handlers complete [2016-12-21T13:24:59-05:00] ERROR: Exception handlers complete Chef Client failed. 0 resources updated in 01 seconds
[2016-12-21T13:24:59-05:00] FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2016-12-21T13:24:59-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-12-21T13:24:59-05:00] FATAL: Chef::Exceptions::CannotDetermineNodeName: Unable to determine node name: configure node_name or configure the system's hostname and fqdn

我讀這錯誤是由於一個先決條件錯誤,但我不確定其意味着什麼或如何解決它。所以任何輸入將不勝感激。

回答

0

您的服務器沒有有效的FQDN(又名完整主機名)。您必須在安裝Chef服務器之前解決此問題。

+0

我這樣做後,我必須完全卸載廚師,或者我可以設置完整的主機名,然後重新啓動機器,然後運行chef-server-ctl reconfigure? –

+0

這取決於rabbitmq的傷心程度。先嚐試更簡單的路線?你也可以手動重新啓動兔子數據庫,但這可能比它更值得討厭。 – coderanger

+0

我跟着這個[鏈接](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-hostname.html)來改變完整的主機名,但我仍然有同樣的錯誤。 –

相關問題