1

我有一个厨师版本的环境:

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)

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

4

1 回答 1

1

您正在尝试chef-client在尚未启动的机器上运行,这意味着它没有访问 Chef 服务器的身份验证密钥或包含有关 Chef 服务器位置信息的配置文件。您可以knife bootstrap正常使用,但与您公司的其他人(或其他)核实您通常使用的东西,可能是别的东西。

于 2017-11-06T22:43:22.800 回答