chef-client显示错误消息

时间:2017-11-06 20:57:54

标签: chef chefdk

我的厨师版本是:

Chef Development Kit Version: 0.18.30

当我运行chef-client命令时,出现以下错误:

root@localhost 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)

我是厨师新手。我无法在此环境中升级或更改版本,但由于此问题,构建失败。有关为何发生这种情况的任何见解?感谢。

1 个答案:

答案 0 :(得分:1)

您正尝试在尚未提升的计算机上运行chef-client,这意味着它没有用于访问Chef服务器的身份验证密钥或具有该Chef服务器所在位置的信息的配置文件是。您可以正常使用knife bootstrap,但请与您公司的其他人(或其他人)核实您通常使用的内容,可能是其他内容。