简体   繁体   English

在Azure上的托管Chef服务器上引导EC2实例时出错

[英]Error while bootstrapping ec2 instance on hosted chef server on azure

I am trying to bootstrap ec2 instance using knife on chef server hosted on azure marketplace. 我正在尝试在天蓝色市场上托管的厨师服务器上使用刀引导ec2实例。 the chef client run fails throwing the following error. Chef客户端运行失败并引发以下错误。

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)

There seems to be a problem with the server SSL certificate and perhaps it is related to Chef issue #4301 (read it). 服务器SSL证书似乎有问题,可能与Chef问题#4301有关 (请阅读)。

Try downloading the SSL certificate from the Chef Server : 尝试从Chef服务器下载SSL证书

> knife ssl fetch

Then, you can check it with : 然后,您可以使用以下命令进行检查

> knife ssl check

I hope this helps. 我希望这有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM