2016-06-30 103 views
0

我已經設置了廚師服務器和工作站。當我試圖添加一個節點到服務器時,它給出了以下錯誤。廚師節點給出401錯誤

Resource Not Found: 
------------------- 
The server returned a HTTP 404. This usually indicates that your chef_server_url is incorrect. 

Relevant Config Settings: 
------------------------- 
chef_server_url "https://amit-virtual-machine:443/organizations/kiwitech.com" 

但是當節點機嘗試連接knife ssl check時,連接成功建立。

client.rb節點看起來喜歡

log_location  STDOUT 
chef_server_url "https://amit-virtual-machine:443/organizations/kiwitech" 
validation_client_name "chef-validator" 
node_name "node1" 
trusted_certs_dir "/etc/chef/trusted_certs"` 

和我的廚師的版本是12 這是我第一次那麼任何小細節將是有益的

+0

爲什麼在錯誤信息中有'kiwitech.com'作爲組織名稱?複製並粘貼錯誤? – StephenKing

+0

你如何將節點添加到服務器?什麼命令? –

+0

它是錯誤消息中的組織名稱。 –

回答

0

最後我想通了,並沒有產生我驗證密鑰。生成Web控制檯驗證密鑰後,我用舊密鑰替換它。它的工作。

+0

因此,基本上,您在問題中顯示的輸出是不相關的... – StephenKing

+0

你對不起我的壞 –