Chef Opensource Server在'execute [initctl status private-chef-runsvdir]'上给出错误

时间:2015-07-15 06:34:06

标签: chef

我正在使用opensource Chef-Server。我想将我的服务器升级到最新版本。我下载了最新的.deb文件并运行dpkg -i chef-server-core_12.1.0-1_amd64.deb 之后chef-server-ctl upgrade 现在执行时我在这个执行语句execute[initctl status private-chef-runsvdir]上出错了 有人可以告诉我这里的问题是什么。 请查看执行日志中的错误部分

================================================================================
Error executing action `run` on resource 'execute[initctl status private-chef-runsvdir]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of initctl status private-chef-runsvdir ----
STDOUT: 
STDERR: initctl: Unknown job: private-chef-runsvdir
---- End output of initctl status private-chef-runsvdir ----
Ran initctl status private-chef-runsvdir returned 1

Resource Declaration:
---------------------
# In /opt/opscode/embedded/cookbooks/cache/cookbooks/enterprise/recipes/runit_upstart.rb

 34: execute "initctl status #{project_name}-runsvdir" do
 35:   retries 30
 36: end
 37: 

Compiled Resource:
------------------
# Declared in /opt/opscode/embedded/cookbooks/cache/cookbooks/enterprise/recipes/runit_upstart.rb:34:in `from_file'

execute("initctl status private-chef-runsvdir") do
  action :run
  retries 30
  retry_delay 2
  default_guard_interpreter :execute
  command "initctl status private-chef-runsvdir"
  backup 5
  returns 0
 declared_type :execute
  cookbook_name "enterprise"
  recipe_name "runit_upstart"
end


Running handlers:
[2015-07-15T11:45:07+05:30] ERROR: Running exception handlers
Running handlers complete
[2015-07-15T11:45:07+05:30] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 74.163193986 seconds
[2015-07-15T11:45:07+05:30] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out

1 个答案:

答案 0 :(得分:0)

在厨师服务器上安装Chef服务器将升级其版本。我在OEL 6.5上用rpms分别完成了4次。

我在Chef server 12.1上运行的一个问题是,当我去安装时,是否有任何服务正在运行。试试

chef-server-ctl stop
chef-server-ctl upgrade

看看是否有效。您也可能希望使用chef-server-core 12.2.1-1,因为它似乎更稳定。