簡體   English   中英

Chef節點未向服務器注冊

[英]Chef node not registering with server

我正在嘗試將客戶端注冊到服務器,但是在運行以下命令時出現以下錯誤:

[root@vm ~]# chef-client -S https://chef-server.example.com -K /etc/chef/chef-validator.pem

{:config_missing=>true}
[2014-12-29T18:20:00+05:30] WARN: *****************************************
[2014-12-29T18:20:00+05:30] WARN: Did not find config file: /etc/chef/client.rb, using command line options.
[2014-12-29T18:20:00+05:30] WARN: *****************************************
Starting Chef Client, version 12.0.3
Creating a new client identity for vm.example.com using the validator key.
[2014-12-29T18:20:01+05:30] WARN: Failed to register new client, 4 tries remaining
[2014-12-29T18:20:01+05:30] WARN: Response: HTTP 503 - 503 "Service Unavailable"
[2014-12-29T18:20:01+05:30] WARN: Failed to register new client, 3 tries remaining
[2014-12-29T18:20:01+05:30] WARN: Response: HTTP 503 - 503 "Service Unavailable"
[2014-12-29T18:20:01+05:30] WARN: Failed to register new client, 2 tries remaining
[2014-12-29T18:20:01+05:30] WARN: Response: HTTP 503 - 503 "Service Unavailable"
[2014-12-29T18:20:01+05:30] WARN: Failed to register new client, 1 tries remaining
[2014-12-29T18:20:01+05:30] WARN: Response: HTTP 503 - 503 "Service Unavailable"
[2014-12-29T18:20:01+05:30] WARN: Failed to register new client, 0 tries remaining
[2014-12-29T18:20:01+05:30] WARN: Response: HTTP 503 - 503 "Service Unavailable"
[2014-12-29T18:20:01+05:30] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.180742976 seconds
[2014-12-29T18:20:01+05:30] ERROR: undefined method `closed?' for nil:NilClass
[2014-12-29T18:20:01+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

我確實遇到了同樣的問題,經過一段時間的努力,我發現這是一個代理問題。

我在公司代理后面,並且出現“ 503:服務不可用”錯誤不是來自Chef Server,而是來自代理服務器。

無論如何,使用“ no_proxy”選項並添加Chef Server的fqdn解決了該問題。

確保來自工作站的刀命令首先起作用。 knife client list是可用於測試服務器安裝的基本knife client list 聽起來Chef服務器未正確安裝或無法啟動某些組件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM