Chef

CentOS7 - Chef(開源)設置錯誤

  • April 10, 2015

目前正在努力在 CentOS7 上設置廚師伺服器。廚師管理員似乎做得很好。

我“(1)sudo wget https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-server-11.1.3-1.el6.x86_64.rpm和(2)sudo rpm -Uvh chef-server-11.1.3-1.el6.x86_64.rpm”按照我一直做的標準程序。

那些執行順利,但在“sudo chef-server-ctl reconfigure”

得到以下輸出錯誤。我確認我已經安裝了 openSSL 和“build-essential”。

Starting Chef Client, version 11.12.2
Compiling Cookbooks...
Recipe: chef-server::default
 * directory[/etc/chef-server] action create (up to date)
[2015-04-03T18:23:23-07:00] WARN: Cloning resource attributes for directory[/var/opt/chef-server/chef-server-webui/etc] from prior resource (CHEF-3694)
[2015-04-03T18:23:23-07:00] WARN: Previous directory[/var/opt/chef-server/chef-server-webui/etc]: /opt/chef-server/embedded/cookbooks/chef-server/recipes/chef-server-webui.rb:31:in `block in from_file'
[2015-04-03T18:23:23-07:00] WARN: Current  directory[/var/opt/chef-server/chef-server-webui/etc]: /opt/chef-server/embedded/cookbooks/chef-server/definitions/unicorn_config.rb:21:in `block in from_file'
Generating RSA private key, 2048 bit long modulus
..+++
.......................................+++
e is 65537 (0x10001)
Converging 212 resources
 * directory[/etc/chef-server] action nothing (skipped due to action :nothing)
Recipe: chef-server::users
 * user[chef_server] action create (up to date)
 * group[chef_server] action create (up to date)
Recipe: chef-server::default
 * directory[/etc/chef] action create (up to date)
 * directory[/var/opt/chef-server] action create (up to date)
Recipe: runit::upstart
 * execute[initctl stop opscode-runsvdir] action run (skipped due to only_if)
 * file[/etc/init/opscode-runsvdir.conf] action delete (up to date)
 * cookbook_file[/etc/init/chef-server-runsvdir.conf] action create
   * Parent directory /etc/init does not exist.
================================================================================
Error executing action `create` on resource 'cookbook_file[/etc/init/chef-server-runsvdir.conf]'
================================================================================


Chef::Exceptions::EnclosingDirectoryDoesNotExist
Running handlers:
[2015-04-03T18:23:23-07:00] ERROR: Running exception handlers
Running handlers complete

[2015-04-03T18:23:23-07:00] ERROR: Exception handlers complete
[2015-04-03T18:23:23-07:00] FATAL: Stacktrace dumped to /opt/chef-server/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 7.083390475 seconds
[2015-04-03T18:23:24-07:00] ERROR: cookbook_file[/etc/init/chef-server-runsvdir.conf] (runit::upstart line 29) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /etc/init does not exist.
[2015-04-03T18:23:24-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
$ 

謝謝。

http://wiki.centos.org/Download是你的朋友。廚師不會在 7 上工作。

最好偶爾保留舊版本,以防軟體包無法升級到 7 或任何其他新版本。

引用自:https://serverfault.com/questions/680401