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


Chronological Thread 
  • From:
  • To:
  • Subject: [chef] Re: Re: chef-server not loading merb-assets
  • Date: Mon, 7 Jan 2013 21:44:03 +0000 (UTC)

env does not show anything ruby/gem related.

gem env looks OK to me.  ~/.gem does not exist, but that should not throw a wrench into the works.  Do you see something odd?

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.10
  - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/lib64/ruby/gems/1.8
  - RUBY EXECUTABLE: /usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/lib64/ruby/gems/1.8
     - /home/a-ckeagle/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

Here is a listing of /usr/lib64/ruby/gems/1.8/{,gems}.  Looks to me like they should get found.  Do you see something odd?

]$ ls /usr/lib64/ruby/gems/1.8/{,gems}
/usr/lib64/ruby/gems/1.8/:
cache  doc  gems  specifications

/usr/lib64/ruby/gems/1.8/gems:
addressable-2.3.2          extlib-0.9.15                moneta-0.6.0
amqp-0.6.7                     fast_xs-0.7.3                net-ssh-2.2.2
bundler-1.2.3                  haml-3.1.7                    net-ssh-gateway-1.1.0
bunny-0.6.0                     highline-1.6.15            net-ssh-multi-1.1
bunny-0.7.9                     ipaddress-0.8.0          ohai-6.14.0
chef-10.16.2                   json-1.6.1                     polyglot-0.3.3
chef-expander-10.16.2 merb-assets-1.1.3       rack-1.4.1
chef-server-10.16.2      merb-core-1.1.3           rake-10.0.3
chef-server-api-10.16.2 merb-haml-1.1.3         rest-client-1.6.7
chef-server-webui-10.16.2 merb-helpers-1.1.3 ruby-openid-2.2.2
chef-solr-10.16.2          merb-param-protection-1.1.3  systemu-2.5.2
coderay-1.0.8               mime-types-1.19          thin-1.5.0
daemons-1.1.9             mixlib-authentication-1.3.0  treetop-1.4.12
dep_selector-0.0.8      mixlib-cli-1.2.2             uuidtools-2.1.3
em-http-request-0.2.15 mixlib-config-1.1.2    yajl-ruby-1.1.0
erubis-2.7.0                 mixlib-log-1.4.1
eventmachine-0.12.10  mixlib-shellout-1.1.0

-----
Not All Who Wander Are Lost!

Chuck Keagle

505-500-8052 (Home)
425-417-3434 (Cell)


From: "Daniel DeLeo" < >
To:
Sent: Monday, January 7, 2013 12:51:48 PM
Subject: [chef] Re: chef-server not loading merb-assets


On Monday, January 7, 2013 at 12:37 PM, 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.

§