2
我學習廚師,我在創建用戶的廚師無法創建廚師用戶(紅寶石錯誤)
命令來執行面臨的一個問題:
chef-server-ctl user-create USER_NAME FIRST_NAME [MIDDLE_NAME] LAST_NAME EMAIL 'PASSWORD' --filepath /path/to/username.pem
錯誤:
/opt/opscode/embedded/service/omnibus-ctl/wrap-knife-opc.rb:43:in `block (2 levels) in load_file': undefined method `exitstatus' for nil:NilClass (NoMethodError)
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:199:in `call'
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:199:in `block in add_command_under_category'
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:736:in `run'
from /opt/opscode/embedded/service/omnibus-ctl/chef-server-ctl:237:in `<main>'
謝謝你的幫助。
更新1:
我無法啓動廚師服務器太..
請找到細節:
[[email protected] chefdk]# chef-server-ctl start
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:361:in `run_sv_command_for_service': undefined method `exitstatus' for nil:NilClass (NoMethodError)
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:351:in `block in run_sv_command'
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:350:in `each'
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:350:in `run_sv_command'
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:162:in `block (2 levels) in <class:Ctl>'
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:736:in `run'
from /opt/opscode/embedded/service/omnibus-ctl/chef-server-ctl:237:in `<main>'
廚師服務器的什麼版本?你可以運行'chef-server-ctl --version'來檢查我的想法。 – coderanger
我認爲它不會啓動..請檢查,因爲我已經更新 –
以上這是rpm:chef-server-core-12.7.0-1.el7.x86_64.rpm,並且我正在使用rhel 7 –