2017-11-06 8 views
0

요리사 버전이 어디있는 환경을했습니다 :요리사 클라이언트 보여주는 오류 메시지

Chef Development Kit Version: 0.18.30 

내가 요리사 클라이언트 명령을 실행할 때, 나는 다음과 같은 오류 얻을 :

[email protected] product]# chef-client 
[2017-11-06T15:38:25-05:00] WARN: ***************************************** 
[2017-11-06T15:38:25-05:00] WARN: Did not find config file: /etc/chef/client.rb, using command line options. 
[2017-11-06T15:38:25-05:00] WARN: ***************************************** 
Starting Chef Client, version 12.14.89 
Creating a new client identity for localhost using the validator key. 

================================================================================ 
Chef encountered an error attempting to create the client "localhost" 
================================================================================ 

Platform: 
--------- 
x86_64-linux 


Running handlers: 
[2017-11-06T15:38:32-05:00] ERROR: Running exception handlers 
Running handlers complete 
[2017-11-06T15:38:32-05:00] ERROR: Exception handlers complete 
Chef Client failed. 0 resources updated in 07 seconds 
[2017-11-06T15:38:32-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out 
[2017-11-06T15:38:32-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report 
[2017-11-06T15:38:32-05:00] ERROR: I can't write your private key to /etc/chef/client.pem - check permissions? 
[2017-11-06T15:38:32-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) 

I을 요리사가 처음이에요. 이 환경에서 버전을 업그레이드하거나 변경할 수는 없지만이 문제로 인해 빌드가 실패합니다. 왜 이런 일이 일어나고 있는지에 대한 통찰력? 감사.

답변

1

chef-client을 부 풀링되지 않은 컴퓨터에서 실행하려고합니다. 즉, Chef 서버에 액세스하기위한 인증 키 또는 Chef 서버의 위치 정보에 대한 구성 파일이 없습니다. 일반적으로 knife bootstrap을 사용할 수 있지만 일반적으로 사용하는 것과 관련하여 회사에서 다른 사람과 확인하십시오.