[chef-dev] Fwd: exceptions when installing chef server


Chronological Thread 
  • From:
  • To:
  • Cc:
  • Subject: [chef-dev] Fwd: exceptions when installing chef server
  • Date: Sun, 18 Dec 2011 22:44:06 -0800 (PST)


Thanks firstly. please take a look at my anwsers.

Is this from apt.opscode.com?
yes!

Is this on the same box as before? You can end up with some partial config 
that's wrong/broken.
NO, I use two different VM of ubuntu 11.10 to deploy from package and from 
chef solo respectively.

Message shown followed by chef-server
/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:39
thanks!

----- Original Message -----
From: "Daniel DeLeo" 
< >
To: "xinhui" 
< >
Cc: 

Sent: Saturday, December 17, 2011 10:04:25 AM
Subject: Re: [chef-dev] exceptions when installing chef server



On Friday, December 16, 2011 at 5:05 PM, xinhui wrote:

> 
> 
> I am trying to install chef server by two ways but met different problems
> respectively, please help share experience of success:
> 
> (1) Installing Chef Server on Debian or Ubuntu using Packages 
> Exception met: 
> get iniative error when execute "apt-get install chef chef-server-api ", no
> chef-client gem found.

Is this from apt.opscode.com?
 
> 
> before this installing, I have installed RubyGem and workstation env
> successfully. 
> 
> (2) Installing Chef Server on Debian or Ubuntu using chef-solo
> Finished each step shown on this page. Found no webui.pem under /etc/chef/ 
> and
> no Chef Server WebUI get up.

Is this on the same box as before? You can end up with some partial config 
that's wrong/broken.

Most likely, rabbitmq isn't getting configured correctly. Depending on what 
version you're trying to install, this can happen when your machine's 
hostname doesn't resolve correctly. Make sure your hostname and fqdn are 
configured.

If you can post some of chef-server's logs, or run it in the foreground and 
capture the output, that would help us track down your issue.

Try setting your log level to debug and output to STDOUT in your server.rb 
file:

log_level :debug
log_location STDOUT



Then run `chef-server` and see what it says.
 
> 
> 
> I did not config apache proxy for ssl, is it necessary?
It's a good idea before you put your server in production, but not necessary. 
> 
> Thanks. 


-- 
Dan DeLeo


  • [chef-dev] Fwd: exceptions when installing chef server, lxinhui, 12/18/2011

Archive powered by MHonArc 2.6.16.

§