[chef] RE: Re: Re: problem starting chef-server on RHEL6


Chronological Thread 
  • From: "Patrick Baker" < >
  • To: < >
  • Cc: < >
  • Subject: [chef] RE: Re: Re: problem starting chef-server on RHEL6
  • Date: Mon, 3 Oct 2011 09:41:02 -0400

I’m using gecode-3.5.0 that’s downloaded as a part of the chef-server bootstrap; http://wiki.opscode.com/display/chef/Bootstrap+Chef+RubyGems+Installation .  By default, the bootstrap procedure will fail on rhel6/centos6 as the /usr/local/lib path is not in the ld.so.conf.  We took the path of using the gem installation as the wiki document suggests that RPM installations are deprecated.

 

From: James [mailto:
Sent: Monday, October 03, 2011 5:51 AM
To:
Cc:
Subject: [chef] Re: Re: problem starting chef-server on RHEL6

 

Patrick,

What version of gecode are you using, and where is it from?

We built gecode packages for CentOS, Fedora, and RH because they were not available at the time. I'm going to be cleaning up and pushing out the cookbook I use for building all of the RPMs, as well as releasing a new round of packages (more distributions) and docs soon. If you have a suggestion on how to deal with this problem in the package itself, I'm happy to implement it in the next build.

Thanks for the info,

James

On Sun, Oct 2, 2011 at 11:26 PM, Patrick Baker < "> > wrote:

SOLUTION/FIX

I got caught out by this one as well.  Its actually a simple solution.  gecode is installed to /usr/local/lib which is NOT in the dynamic library search path for Centos6/Rhel6.  All you need to do is:

# echo "/usr/local/lib" >> /etc/ld.so.conf
# ldconfig

After the path /usr/local/lib is in the ld.so.conf file and ldconfig is run, you should be able to start the service without the aforementioned issue.  This thread seems to suggest that you need to install gecode from a 3rd party rpm repo, which is not the case!!

With regards,

Patrick

 

On Tue, Jul 26, 2011 at 7:21 AM, < " target="_blank"> > wrote:

Hi,

I'm starting to test Chef to see if it can be used in our environment, so i prepared a machine to do the installation.

OS : RHEL6.1 64bit

I used the installation from RubyGems and did a bootstrap without errors. The problem is that the chef-server service doesn't want to start.

When starting Chef manually i get the following error

# chef-server -N -e production -V
 ~ Running bootloaders...
Merb root at: /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2
 ~ No Gemfile found! If you're generating new app with merb-gen this is fine, otherwise run: bundle init to create Gemfile
Loading init file from ./config/init.rb
[Tue, 26 Jul 2011 09:20:33 -0400] INFO: Loading roles
 ~ loading /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/app/controllers/application.rb
 ~ loading /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/app/models/sandbox_file.rb
 ~ loading /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/app/helpers/cookbook_version_helper.rb
 ~ loading /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/app/helpers/tarball_helper.rb
 ~ loading /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/app/controllers/application.rb
/usr/lib/ruby/gems/1.8/gems/mixlib-authentication-1.1.4/lib/mixlib/authentication/http_authentication_request.rb:25: warning: already initialized constant MANDATORY_HEADERS
/usr/lib/ruby/gems/1.8/gems/mixlib-authentication-1.1.4/lib/mixlib/authentication/signatureverification.rb:28: warning: already initialized constant SignatureResponse
 ~ loading /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/app/controllers/clients.rb
 ~ loading /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/app/controllers/cookbooks.rb
 ~ loading /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/app/controllers/data_bags.rb
 ~ loading /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/app/controllers/data_item.rb
 ~ loading /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/app/controllers/environments.rb
/usr/lib/ruby/gems/1.8/gems/dep_selector-0.0.8/lib/dep_gecode.so: libgecodeminimodel.so.27: cannot open shared object file: No such file or directory - /usr/lib/ruby/gems/1.8/gems/dep_selector-0.0.8/lib/dep_gecode.so (LoadError)
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from /usr/lib/ruby/gems/1.8/gems/dep_selector-0.0.8/lib/dep_selector/gecode_wrapper.rb:20
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from /usr/lib/ruby/gems/1.8/gems/dep_selector-0.0.8/lib/dep_selector/dependency_graph.rb:21
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from /usr/lib/ruby/gems/1.8/gems/dep_selector-0.0.8/lib/dep_selector/selector.rb:20
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from /usr/lib/ruby/gems/1.8/gems/dep_selector-0.0.8/lib/dep_selector.rb:22
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/lib/chef/cookbook_version_selector.rb:18
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/app/controllers/environments.rb:21
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
       from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:897:in `load_file'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:931:in `load_classes'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:929:in `each'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:929:in `load_classes'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:928:in `each'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:928:in `load_classes'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:670:in `run'
       from /usr/lib/ruby/gems/1.8/gems/extlib-0.9.15/lib/extlib/dictionary.rb:268:in `each'
       from /usr/lib/ruby/gems/1.8/gems/extlib-0.9.15/lib/extlib/dictionary.rb:268:in `each'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:668:in `run'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:in `run'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in `bootup'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in `start'
       from /usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core.rb:165:in `start'
       from /usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.2/bin/chef-server:84
       from /usr/sbin/chef-server:19:in `load'
       from /usr/sbin/chef-server:19
#


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

 

 




Archive powered by MHonArc 2.6.16.

§