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でそれをやっています –