我有一个厨师版本的环境:
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)
我是新来的厨师。我无法在此环境中升级或更改版本,但由于此问题构建失败。关于为什么会发生这种情况的任何见解?谢谢。