- From: <
>
- To:
- Subject: [chef] Chef Server not finding require entries in init.rb
- Date: Mon, 31 Dec 2012 10:57:08 -0800 (PST)
Followed web page on "Installing Chef Server Manually",
http://wiki.opscode.com/display/chef/Installing+Chef+Server+Manually, pretty
closely in installation on CentOS 6.0.
couchdb installed and is running.
rabbitmq-server installed and is running.
chef-expander installed and is running.
chef-solr installed and is running.
When trying to start chef-server, I get the following:
bin]$ sudo chef-server -N -e production
[sudo] password for a-ckeagle:
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)
from
/usr/lib64/ruby/gems/1.8/gems/chef-server-api-10.16.2/config/init.rb:20
from
/usr/lib64/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in
`load'
from
/usr/lib64/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in
`load_initfile'
from
/usr/lib64/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:in
`run'
from
/usr/lib64/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:in
`run'
from
/usr/lib64/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in
`bootup'
from
/usr/lib64/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in
`start'
from
/usr/lib64/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core.rb:165:in `start'
from
/usr/lib64/ruby/gems/1.8/gems/chef-server-api-10.16.2/bin/chef-server:84
from /usr/bin/chef-server:19:in `load'
from /usr/bin/chef-server:19
Line 20 in init.rb is require 'merb-assets'.
Here is what I am seeing:
$ ls -l /usr/lib64/ruby/gems/1.8/gems/chef-server-api-10.16.2/config/init.rb
-rw-rw-r-- 1 root root 2869 Dec 21 10:32
/usr/lib64/ruby/gems/1.8/gems/chef-server-api-10.16.2/config/init.rb
$ ls -l /usr/lib64/ruby/gems/1.8/gems/merb-assets-1.1.3/lib
total 8
drwxr-xr-x 2 root root 4096 Dec 20 16:11 merb-assets
-rw-r--r-- 1 root root 874 Dec 20 16:11 merb-assets.rb
They both have the same root directory, /usr/lib64/ruby/gems/1.8/gems. Are
there an extra entry or extra entries I should have in init.rb to make the
server find all 21 of it's requires?
I have also written init.d scripts for chef-expander, chef-solr, chef-server,
and chef-webui so they will start at boot time. The couchdb and
rabbitmq-server init.d scripts were part of each of their installationa.
Copied them with minor changes.
Made chef-server required-start chef-expander and chef-solr. Made chef-webui
required-start chef-server. Made chef-solr required-start chef-expander.
Should I also make chef-expander required-start rabbitmq-server? Then the
other changes to start the right program.
It looks like it is close. Just need to work out these last items.
- [chef] Chef Server not finding require entries in init.rb, chucker42, 12/31/2012
Archive powered by MHonArc 2.6.16.