2016-01-21 148 views
0

我正嘗試在azure市場上託管的廚師服務器上使用刀引導ec2實例。廚師客戶端運行失敗拋出以下錯誤。在azure上託管的廚師服務器上引導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) 
+0

廚師--version 廚師開發工具包版本:0.10.0 廚師客戶端版本12.5.1 伯克斯版本:4.0.1 廚房版本:1.4.2 – Anurag

+0

你可以粘貼'的/ var /廚師/ cache/chef-stacktrace.out'文件? – zuazo

+0

我在哪裏可以在Windows工作站上找到這個文件? – Anurag

回答

相關問題