2012-10-18 216 views
0

試圖讓廚師服務器開始我得到以下錯誤:廚師服務器將無法啓動

[[email protected]: /etc/chef]$ /etc/init.d/chef-server-webui start 
* Starting chef-server-webui                   
/usr/lib/ruby/1.8/rubygems/remote_fetcher.rb:14: uninitialized constant Gem::UserInteraction (NameError) 
     from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' 
     from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' 
     from /usr/lib/ruby/1.8/rubygems/spec_fetcher.rb:4 
     from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' 
     from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' 
     from /usr/lib/ruby/1.8/chef/provider/package/rubygems.rb:31 
     from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' 
     from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' 
     from /usr/lib/ruby/1.8/chef/providers.rb:59 
     from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' 
     from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' 
     from /usr/lib/ruby/1.8/chef.rb:25 
     from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' 
     from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' 
     from /usr/sbin/chef-server-webui:42 

這裏是我的寶石名單

*** LOCAL GEMS *** 

bundler (1.0.18) 
bunny (0.7.6) 
chef (0.10.4) 
chef-server-webui (0.10.4) 
coderay (1.0.0) 
daemons (1.1.4) 
erubis (2.7.0) 
eventmachine (0.12.10) 
extlib (0.9.15) 
haml (3.1.3) 
highline (1.6.2) 
json (1.5.2, 1.4.6) 
merb-assets (1.1.3) 
merb-core (1.1.3) 
merb-haml (1.1.3) 
merb-helpers (1.1.3) 
merb-param-protection (1.1.3) 
mime-types (1.16) 
mixlib-authentication (1.1.4) 
mixlib-cli (1.2.2) 
mixlib-config (1.1.2) 
mixlib-log (1.3.0) 
moneta (0.6.0) 
net-ssh (2.1.4) 
net-ssh-gateway (1.1.0) 
net-ssh-multi (1.1) 
ohai (0.6.4) 
polyglot (0.3.2) 
rack (1.3.3) 
rake (0.9.2) 
rest-client (1.6.7) 
ruby-openid (2.1.8) 
systemu (2.4.0) 
thin (1.2.11) 
treetop (1.4.10) 
uuidtools (2.1.2) 
yajl-ruby (1.0.0) 

回答

0

這裏是一個Chef bugtracker issue正是這種問題。簡短總結:廚師似乎在升級後從不同地方挑選不同版本的RubyGems。

倒帶升級到RubyGems似乎有所幫助。

+0

謝謝。我昨天也發現這個問題。我回到了rubygems 1.3。?然後升級爲一位廚師感到高興。 – Nungster