Chef infra Chef Opensource Server在';执行[initctl status private chef runsvdir]&x27;

Chef infra Chef Opensource Server在';执行[initctl status private chef runsvdir]&x27;,chef-infra,Chef Infra,我使用的是开源的Chef服务器。我想把我的服务器升级到最新版本。我下载了最新的.deb文件并运行了dpkg-I chef-server-core_12.1.0-1_amd64.deb 之后chef服务器ctl升级 现在在执行时,我在这个execute语句execute[initctl status private chef runsvdir] 有人能告诉我这里有什么问题吗。 请查看执行日志中的错误部分 ===============================================

我使用的是开源的Chef服务器。我想把我的服务器升级到最新版本。我下载了最新的.deb文件并运行了
dpkg-I chef-server-core_12.1.0-1_amd64.deb
之后
chef服务器ctl升级
现在在执行时,我在这个execute语句
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

在chef服务器上安装chef服务器将升级其版本。我只是在OEL6.5上用RPM分别做了4次

我在chef server 12.1上运行int时遇到的一个问题是,在我进行安装时,是否有任何服务正在运行。试一试

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

看看这是否有效。您可能还想改用chef server core 12.2.1-1,因为它看起来更稳定。

如果机器上已经安装了chef,那么安装服务器就会出现问题?我在基于ubuntu的机器上尝试过多次,但我不知道chef在遇到问题后推出了新的安装程序,在我使用它的任何时候都没有同样的问题。看看你的命令,它不应该是厨师服务器命令吗?或者这是在您安装chef 12之前发生的?这是一个chef server命令“chef server ctl”。是的,我尝试了12个版本之前的版本,但仍然是相同的问题