[chef] Re: Re: chef-server not loading merb-assets


Chronological Thread 
  • From: AJ Christensen < >
  • To:
  • Subject: [chef] Re: Re: chef-server not loading merb-assets
  • Date: Tue, 8 Jan 2013 10:08:18 +1300

In an attempt to reproduce this, I spun up a vagrant 12.04 image and bundled chef-server to /tmp/chef-server, basic server.rb configuration -- seems to work fine?


Cheers,

AJ


On 8 January 2013 09:51, Daniel DeLeo < " target="_blank"> > wrote:

On Monday, January 7, 2013 at 12:37 PM, " target="_blank"> wrote:

chef-server -N -e production shows following error:

Merb root at: /usr/lib64/ruby/gems/1.8/gems/chef-server-api-10.16.2
Loading init file from ./config/init.rb
/usr/lib64/ruby/gems/1.8/gems/chef-server-api-10.16.2/config/init.rb:20:in
`require': no such file to load -- merb-assets (LoadError)

chef-server-api-10.16.2 in not in the path to merb-assets. The location of
this file is /usr/lib64/ruby/gems/1.8/gems/merb-assets-1.1.3/lib/merb-assets.

Tried using the -m option to chef-server and it did not help:

chef-server -N -e production -m
/usr/lib64/ruby/gems/1.8/gems/merb-assets-1.1.3
/usr/lib64/ruby/gems/1.8/gems/chef-server-api-10.16.2/config/init.rb:20:in
`require': no such file to load -- merb-assets (LoadError)

What configuration entries are necessary for chef to find those entries listed
in the init.rb require statements?
There must be something that's pointing ruby gems in the wrong direction when looking for the libraries.

Are you using rvm or rbenv? Does your `env` contain anything ruby/gem related? Does `gem env` include the paths you expect it to?

-- 
Daniel DeLeo





Archive powered by MHonArc 2.6.16.

§