在azure上托管主厨服务器上引导ec2实例时出错

时间:2016-01-21 10:16:16

标签: azure amazon-ec2 chef bootstrapping knife

我正试图在天蓝色市场上托管的厨师服务器上使用刀具来引导ec2实例。厨师客户端运行失败会引发以下错误。

PS C:\Users\xyz\chef-repo> knife ec2 server create -I ami-25c00c46 -f t2.micro 
--region ap-southeast-1 -N ec2module
-x ubuntu -i abc.pem -r "role[ec2], role[jenkinserver]" -g sg-9f1b31fa sudo

.ap-southeast-1.compute.amazonaws.com Chef encountered an error attempting to create the client "ec2module" 
.ap-southeast-1.compute.amazonaws.com Running handlers:
.ap-southeast-1.compute.amazonaws.com [2016-01-20T11:39:26+00:00] ERROR: Running exception handlers
.ap-southeast-1.compute.amazonaws.com Running handlers complete
.ap-southeast-1.compute.amazonaws.com [2016-01-20T11:39:26+00:00] ERROR: Exception handlers complete
.ap-southeast-1.compute.amazonaws.com Chef Client failed. 0 resources updated in 03 seconds
.ap-southeast-1.compute.amazonaws.com [2016-01-20T11:39:26+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
.ap-southeast-1.compute.amazonaws.com [2016-01-20T11:39:26+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
.ap-southeast-1.compute.amazonaws.com [2016-01-20T11:39:26+00:00] ERROR: undefined method `length' for nil:NilClass
.ap-southeast-1.compute.amazonaws.com [2016-01-20T11:39:26+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

1 个答案:

答案 0 :(得分:0)

服务器SSL证书似乎存在问题,可能与Chef issue #4301有关(请阅读)。

尝试downloading the SSL certificate from the Chef Server

> knife ssl fetch

然后,你可以check it with

> knife ssl check

我希望这会有所帮助。