当我运行厨师客户端时出现以下错误。知道如何解决它。似乎增加超时可能会起作用。因为从服务器获取烹饪书需要一段时间。在哪里增加超时?
penSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server session ticket A
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:800:in `connect'
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:800:in `block in connect'
/opt/chef/embedded/lib/ruby/1.9.1/timeout.rb:55:in `timeout'
/opt/chef/embedded/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:800:in `connect'
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:756:in `do_start'
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:745:in `start'
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:1285:in `request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/http/basic_client.rb:64:in `request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/http.rb:249:in `block in send_http_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/http.rb:291:in `retrying_http_errors'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/http.rb:245:in `send_http_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/http.rb:165:in `streaming_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/rest.rb:166:in `streaming_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/rest.rb:104:in `get'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:202:in `download_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:180:in `sync_file_in_cookbook'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:147:in `block (2 levels) in sync_cookbook'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:145:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:145:in `block in sync_cookbook'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:143:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:143:in `sync_cookbook'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:105:in `block in sync_cookbooks'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:104:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:104:in `sync_cookbooks'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/policy_builder/expand_node_object.rb:181:in `sync_cookbooks'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/policy_builder/expand_node_object.rb:68:in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/client.rb:252:in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/client.rb:413:in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/client.rb:200:in `block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/client.rb:194:in `fork'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/client.rb:194:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application.rb:215:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application/client.rb:314:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application/client.rb:306:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application/client.rb:306:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application.rb:66:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/bin/chef-client:26:in `<top (required)>'
答案 0 :(得分:0)
当连接到远程服务(在本例中为Chef服务器)时Ruby无法验证SSL证书时,会导致该错误(您已部分切断)。您需要关闭SSL验证或将开源Chef服务器的证书添加到本地软件包。