Upgraded chef-server to 0.10.0, now can't load merb-asses when starting chef-server

Hey there.

Noob chef/ruby guy here. Sorry if this is an easy issue or been discussed
before but …

I had the chef-server 0.9.12 running pretty well, but upgraded to 0.10.0
and now when I fire up chef-server, I’m seeing:

[root@chefserver-test1 ~]# chef-server -N -e production
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.
Merb root at: /usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.
Loading init file from ./config/init.rb
Gem
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0/config/init.rb:20:in require': no such file to load -- merb-assets (LoadError) from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0/config/init.rb:20:in<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in load' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:inload_initfile’
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:in run' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:inrun’
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in bootup' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:instart’
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core.rb:165:in start' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0/bin/chef-server:84:in<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p180/bin/chef-server:19:in load' from /usr/local/rvm/gems/ruby-1.9.2-p180/bin/chef-server:19:in'
[root@chefserver-test1 ~]#

My ruby/gem environment is:

[root@chefserver-test1 ~]# rvm info

ruby-1.9.2-p180:

system:
uname: "Linux chefserver-test1 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 i686 i386 GNU/Linux"
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu)“
zsh: " => not installed”

rvm:
version: “rvm 1.6.5 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]”

ruby:
interpreter: "ruby"
version: "1.9.2p180"
date: "2011-02-18"
platform: "i686-linux"
patchlevel: "2011-02-18 revision 30909"
full_version: “ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]”

homes:
gem: "/usr/local/rvm/gems/ruby-1.9.2-p180"
ruby: “/usr/local/rvm/rubies/ruby-1.9.2-p180”

binaries:
ruby: "/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby"
irb: "/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/irb"
gem: "/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/gem"
rake: “/usr/local/rvm/gems/ruby-1.9.2-p180/bin/rake”

environment:
PATH: "/usr/local/rvm/gems/ruby-1.9.2-p180/bin:/usr/local/rvm/gems/ruby-1.9.2-p180@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-p180/bin:/usr/local/rvm/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/home/ec2/bin:/root/bin"
GEM_HOME: "/usr/local/rvm/gems/ruby-1.9.2-p180"
GEM_PATH: "/usr/local/rvm/gems/ruby-1.9.2-p180:/usr/local/rvm/gems/ruby-1.9.2-p180@global"
MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.9.2-p180"
IRBRC: "/usr/local/rvm/rubies/ruby-1.9.2-p180/.irbrc"
RUBYOPT: ""
gemset: “”

[root@chefserver-test1 ~]# gem --version
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.
1.8.2
[root@chefserver-test1 ~]# gem list
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.

*** LOCAL GEMS ***

NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.
abstract (1.0.0)
addressable (2.2.5)
amqp (0.6.7)
bundler (1.0.13)
bunny (0.6.0)
chef (0.10.0)
chef-expander (0.10.0)
chef-server (0.10.0)
chef-server-api (0.10.0)
chef-server-webui (0.10.0)
chef-solr (0.10.0)
coderay (0.9.7)
daemons (1.1.0)
dep_selector (0.0.8)
em-http-request (0.2.15)
erubis (2.7.0)
eventmachine (0.12.10)
extlib (0.9.15)
fast_xs (0.7.3)
haml (3.0.25)
highline (1.6.1)
json (1.5.1, 1.4.6)
libxml-ruby (1.1.4)
merb-assets (1.1.3)
merb-core (1.1.3)
merb-haml (1.1.3)
merb-helpers (1.1.3)
merb-param-protection (1.1.3)
mime-types (1.16)
mixlib-authentication (1.1.4)
mixlib-cli (1.2.0)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.0.1)
ohai (0.6.4)
polyglot (0.3.1)
rack (1.2.2)
rake (0.8.7 ruby)
rest-client (1.6.1)
ruby-openid (2.1.8)
rubygems-update (1.8.2)
systemu (1.2.0)
thin (1.2.11)
treetop (1.4.9)
uuidtools (2.1.2)
yajl-ruby (0.8.2)
[root@chefserver-test1 ~]#

The whole “deprecicated” message I can live with, but the merb-assets is a
blocker for me.

  • Steve


Steve Webb - Senior System Administrator for gnip.com

Oops. Changed subject line to be more appropriate. :slight_smile:

  • Steve


Steve Webb - Senior System Administrator for gnip.com

On Monday, May 16, 2011 at 11:27 AM, Steve Webb wrote:
Hey there.

Noob chef/ruby guy here. Sorry if this is an easy issue or been discussed
before but ...

I had the chef-server 0.9.12 running pretty well, but upgraded to 0.10.0
and now when I fire up chef-server, I'm seeing:

[root@chefserver-test1 ~]# chef-server -N -e production
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.
Merb root at: /usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.
Loading init file from ./config/init.rb
Gem
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0/config/init.rb:20:in require': no such file to load -- merb-assets (LoadError) from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0/config/init.rb:20:in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in load' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in load_initfile'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:in run' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:in run'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in bootup' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in start'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core.rb:165:in start' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0/bin/chef-server:84:in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-p180/bin/chef-server:19:in load' from /usr/local/rvm/gems/ruby-1.9.2-p180/bin/chef-server:19:in '
[root@chefserver-test1 ~]#

My ruby/gem environment is:

[root@chefserver-test1 ~]# rvm info

ruby-1.9.2-p180:

system:
uname: "Linux chefserver-test1 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 i686 i386 GNU/Linux"
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu)"
zsh: " => not installed"

rvm:
version: "rvm 1.6.5 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]"

ruby:
interpreter: "ruby"
version: "1.9.2p180"
date: "2011-02-18"
platform: "i686-linux"
patchlevel: "2011-02-18 revision 30909"
full_version: "ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]"

homes:
gem: "/usr/local/rvm/gems/ruby-1.9.2-p180"
ruby: "/usr/local/rvm/rubies/ruby-1.9.2-p180"

binaries:
ruby: "/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby"
irb: "/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/irb"
gem: "/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/gem"
rake: "/usr/local/rvm/gems/ruby-1.9.2-p180/bin/rake"

environment:
PATH: "/usr/local/rvm/gems/ruby-1.9.2-p180/bin:/usr/local/rvm/gems/ruby-1.9.2-p180@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-p180/bin:/usr/local/rvm/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/home/ec2/bin:/root/bin"
GEM_HOME: "/usr/local/rvm/gems/ruby-1.9.2-p180"
GEM_PATH: "/usr/local/rvm/gems/ruby-1.9.2-p180:/usr/local/rvm/gems/ruby-1.9.2-p180@global"
MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.9.2-p180"
IRBRC: "/usr/local/rvm/rubies/ruby-1.9.2-p180/.irbrc"
RUBYOPT: ""
gemset: ""

[root@chefserver-test1 ~]# gem --version
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.
1.8.2
[root@chefserver-test1 ~]# gem list
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.

*** LOCAL GEMS ***

NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.
abstract (1.0.0)
addressable (2.2.5)
amqp (0.6.7)
bundler (1.0.13)
bunny (0.6.0)
chef (0.10.0)
chef-expander (0.10.0)
chef-server (0.10.0)
chef-server-api (0.10.0)
chef-server-webui (0.10.0)
chef-solr (0.10.0)
coderay (0.9.7)
daemons (1.1.0)
dep_selector (0.0.8)
em-http-request (0.2.15)
erubis (2.7.0)
eventmachine (0.12.10)
extlib (0.9.15)
fast_xs (0.7.3)
haml (3.0.25)
highline (1.6.1)
json (1.5.1, 1.4.6)
libxml-ruby (1.1.4)
merb-assets (1.1.3)
merb-core (1.1.3)
merb-haml (1.1.3)
merb-helpers (1.1.3)
merb-param-protection (1.1.3)
mime-types (1.16)
mixlib-authentication (1.1.4)
mixlib-cli (1.2.0)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.0.1)
ohai (0.6.4)
polyglot (0.3.1)
rack (1.2.2)
rake (0.8.7 ruby)
rest-client (1.6.1)
ruby-openid (2.1.8)
rubygems-update (1.8.2)
systemu (1.2.0)
thin (1.2.11)
treetop (1.4.9)
uuidtools (2.1.2)
yajl-ruby (0.8.2)
[root@chefserver-test1 ~]#

The whole "deprecicated" message I can live with, but the merb-assets is a
blocker for me.

Can you try downgrading rubygems to 1.7.2 and see if that affects anything?

gem update --system 1.7.2

--
Dan DeLeo

  • Steve

--
Steve Webb - Senior System Administrator for gnip.com

Ruby gems appear to be broken, I'd look at updating issues related and how
to rebuild all the gems after rubygems is update on the system.
On May 16, 2011 9:41 PM, "Daniel DeLeo" dan@kallistec.com wrote:

On Monday, May 16, 2011 at 11:27 AM, Steve Webb wrote:
Hey there.

Noob chef/ruby guy here. Sorry if this is an easy issue or been discussed
before but ...

I had the chef-server 0.9.12 running pretty well, but upgraded to 0.10.0
and now when I fire up chef-server, I'm seeing:

[root@chefserver-test1 ~]# chef-server -N -e production
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/rvm/gems/ruby-1.9.2-p180@global
/specifications/rake-0.8.7.gemspec:10.
Merb root at:
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/rvm/gems/ruby-1.9.2-p180@global
/specifications/rake-0.8.7.gemspec:10.
Loading init file from ./config/init.rb
Gem

/usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0/config/init.rb:20:in
`require': no such file to load -- merb-assets (LoadError)

from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0/config/init.rb:20:in
<top (required)>' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in load'
from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in
load_initfile' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:in run'
from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:in
run' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in bootup'
from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in
start' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/merb-core-1.1.3/lib/merb-core.rb:165:in start'
from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-server-api-0.10.0/bin/chef-server:84:in
<top (required)>' from /usr/local/rvm/gems/ruby-1.9.2-p180/bin/chef-server:19:in load'
from /usr/local/rvm/gems/ruby-1.9.2-p180/bin/chef-server:19:in `'
[root@chefserver-test1 ~]#

My ruby/gem environment is:

[root@chefserver-test1 ~]# rvm info

ruby-1.9.2-p180:

system:
uname: "Linux chefserver-test1 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15
12:39:36 EST 2008 i686 i686 i386 GNU/Linux"
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release
(i686-redhat-linux-gnu)"
zsh: " => not installed"

rvm:
version: "rvm 1.6.5 by Wayne E. Seguin (wayneeseguin@gmail.com) [
https://rvm.beginrescueend.com/]"

ruby:
interpreter: "ruby"
version: "1.9.2p180"
date: "2011-02-18"
platform: "i686-linux"
patchlevel: "2011-02-18 revision 30909"
full_version: "ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]"

homes:
gem: "/usr/local/rvm/gems/ruby-1.9.2-p180"
ruby: "/usr/local/rvm/rubies/ruby-1.9.2-p180"

binaries:
ruby: "/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby"
irb: "/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/irb"
gem: "/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/gem"
rake: "/usr/local/rvm/gems/ruby-1.9.2-p180/bin/rake"

environment:
PATH:
"/usr/local/rvm/gems/ruby-1.9.2-p180/bin:/usr/local/rvm/gems/ruby-1.9.2-p180@global
/bin:/usr/local/rvm/rubies/ruby-1.9.2-p180/bin:/usr/local/rvm/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/home/ec2/bin:/root/bin"
GEM_HOME: "/usr/local/rvm/gems/ruby-1.9.2-p180"
GEM_PATH:
"/usr/local/rvm/gems/ruby-1.9.2-p180:/usr/local/rvm/gems/ruby-1.9.2-p180@global
"
MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.9.2-p180"
IRBRC: "/usr/local/rvm/rubies/ruby-1.9.2-p180/.irbrc"
RUBYOPT: ""
gemset: ""

[root@chefserver-test1 ~]# gem --version
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/rvm/gems/ruby-1.9.2-p180@global
/specifications/rake-0.8.7.gemspec:10.
1.8.2
[root@chefserver-test1 ~]# gem list
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/rvm/gems/ruby-1.9.2-p180@global
/specifications/rake-0.8.7.gemspec:10.

*** LOCAL GEMS ***

NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/rvm/gems/ruby-1.9.2-p180@global
/specifications/rake-0.8.7.gemspec:10.
abstract (1.0.0)
addressable (2.2.5)
amqp (0.6.7)
bundler (1.0.13)
bunny (0.6.0)
chef (0.10.0)
chef-expander (0.10.0)
chef-server (0.10.0)
chef-server-api (0.10.0)
chef-server-webui (0.10.0)
chef-solr (0.10.0)
coderay (0.9.7)
daemons (1.1.0)
dep_selector (0.0.8)
em-http-request (0.2.15)
erubis (2.7.0)
eventmachine (0.12.10)
extlib (0.9.15)
fast_xs (0.7.3)
haml (3.0.25)
highline (1.6.1)
json (1.5.1, 1.4.6)
libxml-ruby (1.1.4)
merb-assets (1.1.3)
merb-core (1.1.3)
merb-haml (1.1.3)
merb-helpers (1.1.3)
merb-param-protection (1.1.3)
mime-types (1.16)
mixlib-authentication (1.1.4)
mixlib-cli (1.2.0)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.0.1)
ohai (0.6.4)
polyglot (0.3.1)
rack (1.2.2)
rake (0.8.7 ruby)
rest-client (1.6.1)
ruby-openid (2.1.8)
rubygems-update (1.8.2)
systemu (1.2.0)
thin (1.2.11)
treetop (1.4.9)
uuidtools (2.1.2)
yajl-ruby (0.8.2)
[root@chefserver-test1 ~]#

The whole "deprecicated" message I can live with, but the merb-assets is
a
blocker for me.

Can you try downgrading rubygems to 1.7.2 and see if that affects
anything?

gem update --system 1.7.2

--
Dan DeLeo

  • Steve

--
Steve Webb - Senior System Administrator for gnip.com

Downgraded to ruby 1.8.7 and gem 1.7.2 as suggested.

Now, chef-solr and chef-server fail to start:

[root@chefserver-test1 ~]# chef-solr
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:80:in configure_chef': uninitialized constant Chef::Application::SocketError (NameError) from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:58:inreconfigure’
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:64:in run' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-solr-0.10.0/bin/chef-solr:26 from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-solr:19:inload’
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-solr:19
[root@chefserver-test1 ~]# chef-server -N -e production
Merb root at: /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0
NOTE: Gem::SourceIndex#all_gems is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex#all_gems called from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:256
.
Loading init file from ./config/init.rb
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/config/init.rb:20:in require': no such file to load -- merb-assets (LoadError) from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/config/init.rb:20 from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:inload’
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in load_initfile' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:inrun’
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:in run' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:inbootup’
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in start' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core.rb:165:instart’
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/bin/chef-server:84
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-server:19:in `load’
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-server:19

Some debug info:

[root@chefserver-test1 ~]# which gem
/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/gem
[root@chefserver-test1 ~]# gem --version
1.7.2
[root@chefserver-test1 ~]# which ruby
/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/ruby
[root@chefserver-test1 ~]# ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]
[root@chefserver-test1 ~]# rvm info

ruby-1.8.7-p334:

system:
uname: "Linux chefserver-test1 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 i686 i386 GNU/Linux"
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu)“
zsh: " => not installed”

rvm:
version: “rvm 1.6.5 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]”

ruby:
interpreter: "ruby"
version: "1.8.7"
date: "2011-02-18"
platform: "i686-linux"
patchlevel: "2011-02-18 patchlevel 334"
full_version: “ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]”

homes:
gem: "/usr/local/rvm/gems/ruby-1.8.7-p334"
ruby: “/usr/local/rvm/rubies/ruby-1.8.7-p334”

binaries:
ruby: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/ruby"
irb: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/irb"
gem: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/gem"
rake: “/usr/local/rvm/gems/ruby-1.8.7-p334/bin/rake”

environment:
PATH: "/usr/local/rvm/gems/ruby-1.8.7-p334/bin:/usr/local/rvm/gems/ruby-1.8.7-p334@global/bin:/usr/local/rvm/rubies/ruby-1.8.7-p334/bin:/usr/local/rvm/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/home/ec2/bin:/root/bin"
GEM_HOME: "/usr/local/rvm/gems/ruby-1.8.7-p334"
GEM_PATH: "/usr/local/rvm/gems/ruby-1.8.7-p334:/usr/local/rvm/gems/ruby-1.8.7-p334@global"
MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.8.7-p334"
IRBRC: "/usr/local/rvm/rubies/ruby-1.8.7-p334/.irbrc"
RUBYOPT: ""
gemset: “”

[root@chefserver-test1 ~]# gem sources
*** CURRENT SOURCES ***

http://rubygems.org
[root@chefserver-test1 ~]# gem list

*** LOCAL GEMS ***

addressable (2.2.6)
amqp (0.6.7)
bundler (1.0.13)
bunny (0.6.0)
chef (0.10.0)
chef-expander (0.10.0)
chef-server (0.10.0)
chef-server-api (0.10.0)
chef-server-webui (0.10.0)
chef-solr (0.10.0)
coderay (0.9.8)
daemons (1.1.3)
dep_selector (0.0.8)
em-http-request (0.2.15)
erubis (2.7.0)
eventmachine (0.12.10)
extlib (0.9.15)
fast_xs (0.7.3)
haml (3.1.1)
highline (1.6.2)
json (1.4.6)
merb-assets (1.1.3)
merb-core (1.1.3)
merb-haml (1.1.3)
merb-helpers (1.1.3)
merb-param-protection (1.1.3)
mime-types (1.16)
mixlib-authentication (1.1.4)
mixlib-cli (1.2.0)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.0.1)
ohai (0.6.4)
polyglot (0.3.1)
rack (1.2.2)
rake (0.8.7)
rest-client (1.6.1)
ruby-openid (2.1.8)
rubygems-update (1.7.2)
systemu (2.2.0)
thin (1.2.11)
treetop (1.4.9)
uuidtools (2.1.2)
yajl-ruby (0.7.9)
[root@chefserver-test1 ~]#

  • Steve


Steve Webb - Senior System Administrator for gnip.com

Also, couchdb, rabbitmq and chef-expander seem to be working well.

  • Steve

--
Steve Webb - Senior System Administrator for gnip.com

On Tue, 17 May 2011, Steve Webb wrote:

Downgraded to ruby 1.8.7 and gem 1.7.2 as suggested.

Now, chef-solr and chef-server fail to start:

[root@chefserver-test1 ~]# chef-solr
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:80:in
configure_chef': uninitialized constant Chef::Application::SocketError (NameError) from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:58:in reconfigure'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:64:in
run' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-solr-0.10.0/bin/chef-solr:26 from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-solr:19:in load'
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-solr:19
[root@chefserver-test1 ~]# chef-server -N -e production
Merb root at: /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0
NOTE: Gem::SourceIndex#all_gems is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem::SourceIndex#all_gems called from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:256
.
Loading init file from ./config/init.rb
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/config/init.rb:20:in
require': no such file to load -- merb-assets (LoadError) from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/config/init.rb:20 from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in load'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in
load_initfile' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:in run'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:in
run' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in bootup'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in
start' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core.rb:165:in start'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/bin/chef-server:84
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-server:19:in `load'
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-server:19

Some debug info:

[root@chefserver-test1 ~]# which gem
/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/gem
[root@chefserver-test1 ~]# gem --version
1.7.2
[root@chefserver-test1 ~]# which ruby
/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/ruby
[root@chefserver-test1 ~]# ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]
[root@chefserver-test1 ~]# rvm info

ruby-1.8.7-p334:

system:
uname: "Linux chefserver-test1 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15
12:39:36 EST 2008 i686 i686 i386 GNU/Linux"
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release
(i686-redhat-linux-gnu)"
zsh: " => not installed"

rvm:
version: "rvm 1.6.5 by Wayne E. Seguin (wayneeseguin@gmail.com)
[https://rvm.beginrescueend.com/]"

ruby:
interpreter: "ruby"
version: "1.8.7"
date: "2011-02-18"
platform: "i686-linux"
patchlevel: "2011-02-18 patchlevel 334"
full_version: "ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]"

homes:
gem: "/usr/local/rvm/gems/ruby-1.8.7-p334"
ruby: "/usr/local/rvm/rubies/ruby-1.8.7-p334"

binaries:
ruby: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/ruby"
irb: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/irb"
gem: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/gem"
rake: "/usr/local/rvm/gems/ruby-1.8.7-p334/bin/rake"

environment:
PATH:
"/usr/local/rvm/gems/ruby-1.8.7-p334/bin:/usr/local/rvm/gems/ruby-1.8.7-p334@global/bin:/usr/local/rvm/rubies/ruby-1.8.7-p334/bin:/usr/local/rvm/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/home/ec2/bin:/root/bin"
GEM_HOME: "/usr/local/rvm/gems/ruby-1.8.7-p334"
GEM_PATH:
"/usr/local/rvm/gems/ruby-1.8.7-p334:/usr/local/rvm/gems/ruby-1.8.7-p334@global"
MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.8.7-p334"
IRBRC: "/usr/local/rvm/rubies/ruby-1.8.7-p334/.irbrc"
RUBYOPT: ""
gemset: ""

[root@chefserver-test1 ~]# gem sources
*** CURRENT SOURCES ***

http://rubygems.org
[root@chefserver-test1 ~]# gem list

*** LOCAL GEMS ***

addressable (2.2.6)
amqp (0.6.7)
bundler (1.0.13)
bunny (0.6.0)
chef (0.10.0)
chef-expander (0.10.0)
chef-server (0.10.0)
chef-server-api (0.10.0)
chef-server-webui (0.10.0)
chef-solr (0.10.0)
coderay (0.9.8)
daemons (1.1.3)
dep_selector (0.0.8)
em-http-request (0.2.15)
erubis (2.7.0)
eventmachine (0.12.10)
extlib (0.9.15)
fast_xs (0.7.3)
haml (3.1.1)
highline (1.6.2)
json (1.4.6)
merb-assets (1.1.3)
merb-core (1.1.3)
merb-haml (1.1.3)
merb-helpers (1.1.3)
merb-param-protection (1.1.3)
mime-types (1.16)
mixlib-authentication (1.1.4)
mixlib-cli (1.2.0)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.0.1)
ohai (0.6.4)
polyglot (0.3.1)
rack (1.2.2)
rake (0.8.7)
rest-client (1.6.1)
ruby-openid (2.1.8)
rubygems-update (1.7.2)
systemu (2.2.0)
thin (1.2.11)
treetop (1.4.9)
uuidtools (2.1.2)
yajl-ruby (0.7.9)
[root@chefserver-test1 ~]#

  • Steve

--
Steve Webb - Senior System Administrator for gnip.com

On Tuesday, May 17, 2011 at 9:13 AM, Steve Webb wrote:
Also, couchdb, rabbitmq and chef-expander seem to be working well.

  • Steve

--
Steve Webb - Senior System Administrator for gnip.com

On Tue, 17 May 2011, Steve Webb wrote:

Downgraded to ruby 1.8.7 and gem 1.7.2 as suggested.

Now, chef-solr and chef-server fail to start:

This is a known issue that we'll address in the next release. Either you have a bug in your config file or it doesn't exist.

To workaround, make sure both etc/chef/server.rb and etc/chef/solr.rb exist, and add require 'socket' to the top of both of them.

Dan DeLeo
[root@chefserver-test1 ~]# chef-solr

/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:80:in
configure_chef': uninitialized constant Chef::Application::SocketError (NameError) from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:58:in reconfigure'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:64:in
run' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-solr-0.10.0/bin/chef-solr:26 from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-solr:19:in load'
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-solr:19
[root@chefserver-test1 ~]# chef-server -N -e production
Merb root at: /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0
NOTE: Gem::SourceIndex#all_gems is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem::SourceIndex#all_gems called from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:256
.
Loading init file from ./config/init.rb
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/config/init.rb:20:in
require': no such file to load -- merb-assets (LoadError) from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/config/init.rb:20 from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in load'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in
load_initfile' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:in run'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:in
run' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in bootup'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in
start' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core.rb:165:in start'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/bin/chef-server:84
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-server:19:in `load'
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-server:19

Some debug info:

[root@chefserver-test1 ~]# which gem
/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/gem
[root@chefserver-test1 ~]# gem --version
1.7.2
[root@chefserver-test1 ~]# which ruby
/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/ruby
[root@chefserver-test1 ~]# ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]
[root@chefserver-test1 ~]# rvm info

ruby-1.8.7-p334:

system:
uname: "Linux chefserver-test1 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15
12:39:36 EST 2008 i686 i686 i386 GNU/Linux"
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release
(i686-redhat-linux-gnu)"
zsh: " => not installed"

rvm:
version: "rvm 1.6.5 by Wayne E. Seguin (wayneeseguin@gmail.com)
[https://rvm.beginrescueend.com/]"

ruby:
interpreter: "ruby"
version: "1.8.7"
date: "2011-02-18"
platform: "i686-linux"
patchlevel: "2011-02-18 patchlevel 334"
full_version: "ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]"

homes:
gem: "/usr/local/rvm/gems/ruby-1.8.7-p334"
ruby: "/usr/local/rvm/rubies/ruby-1.8.7-p334"

binaries:
ruby: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/ruby"
irb: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/irb"
gem: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/gem"
rake: "/usr/local/rvm/gems/ruby-1.8.7-p334/bin/rake"

environment:
PATH:
"/usr/local/rvm/gems/ruby-1.8.7-p334/bin:/usr/local/rvm/gems/ruby-1.8.7-p334@global/bin:/usr/local/rvm/rubies/ruby-1.8.7-p334/bin:/usr/local/rvm/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/home/ec2/bin:/root/bin"
GEM_HOME: "/usr/local/rvm/gems/ruby-1.8.7-p334"
GEM_PATH:
"/usr/local/rvm/gems/ruby-1.8.7-p334:/usr/local/rvm/gems/ruby-1.8.7-p334@global"
MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.8.7-p334"
IRBRC: "/usr/local/rvm/rubies/ruby-1.8.7-p334/.irbrc"
RUBYOPT: ""
gemset: ""

[root@chefserver-test1 ~]# gem sources
*** CURRENT SOURCES ***

http://rubygems.org
[root@chefserver-test1 ~]# gem list

*** LOCAL GEMS ***

addressable (2.2.6)
amqp (0.6.7)
bundler (1.0.13)
bunny (0.6.0)
chef (0.10.0)
chef-expander (0.10.0)
chef-server (0.10.0)
chef-server-api (0.10.0)
chef-server-webui (0.10.0)
chef-solr (0.10.0)
coderay (0.9.8)
daemons (1.1.3)
dep_selector (0.0.8)
em-http-request (0.2.15)
erubis (2.7.0)
eventmachine (0.12.10)
extlib (0.9.15)
fast_xs (0.7.3)
haml (3.1.1)
highline (1.6.2)
json (1.4.6)
merb-assets (1.1.3)
merb-core (1.1.3)
merb-haml (1.1.3)
merb-helpers (1.1.3)
merb-param-protection (1.1.3)
mime-types (1.16)
mixlib-authentication (1.1.4)
mixlib-cli (1.2.0)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.0.1)
ohai (0.6.4)
polyglot (0.3.1)
rack (1.2.2)
rake (0.8.7)
rest-client (1.6.1)
ruby-openid (2.1.8)
rubygems-update (1.7.2)
systemu (2.2.0)
thin (1.2.11)
treetop (1.4.9)
uuidtools (2.1.2)
yajl-ruby (0.7.9)
[root@chefserver-test1 ~]#

  • Steve

--
Steve Webb - Senior System Administrator for gnip.com

That fixed chef-solr, but chef-server is still complaining about
merb-assets (same error when I was using gem 1.8.x) after downgrading to
gem 1.7.2:

[root@chefserver-test1 ~]# chef-server -N -e production
Merb root at: /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0
NOTE: Gem::SourceIndex#all_gems is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex#all_gems called from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:256
.
Loading init file from ./config/init.rb
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/config/init.rb:20:in require': no such file to load -- merb-assets (LoadError) from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/config/init.rb:20 from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in load'
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in load_initfile' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:in run'
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:in run' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in bootup'
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in start' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core.rb:165:in start'
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/bin/chef-server:84
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-server:19:in `load'
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-server:19
[root@chefserver-test1 ~]# gem --version
1.7.2

  • Steve

--
Steve Webb - Senior System Administrator for gnip.com

On Tue, 17 May 2011, Daniel DeLeo wrote:

On Tuesday, May 17, 2011 at 9:13 AM, Steve Webb wrote:
Also, couchdb, rabbitmq and chef-expander seem to be working well.

  • Steve

--
Steve Webb - Senior System Administrator for gnip.com

On Tue, 17 May 2011, Steve Webb wrote:

Downgraded to ruby 1.8.7 and gem 1.7.2 as suggested.

Now, chef-solr and chef-server fail to start:

This is a known issue that we'll address in the next release. Either you have a bug in your config file or it doesn't exist.

To workaround, make sure both etc/chef/server.rb and etc/chef/solr.rb exist, and add require 'socket' to the top of both of them.

Dan DeLeo
[root@chefserver-test1 ~]# chef-solr

/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:80:in
configure_chef': uninitialized constant Chef::Application::SocketError (NameError) from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:58:in reconfigure'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-0.10.0/lib/chef/application.rb:64:in
run' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-solr-0.10.0/bin/chef-solr:26 from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-solr:19:in load'
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-solr:19
[root@chefserver-test1 ~]# chef-server -N -e production
Merb root at: /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0
NOTE: Gem::SourceIndex#all_gems is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem::SourceIndex#all_gems called from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:256
.
Loading init file from ./config/init.rb
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/config/init.rb:20:in
require': no such file to load -- merb-assets (LoadError) from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/config/init.rb:20 from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in load'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in
load_initfile' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:in run'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:in
run' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in bootup'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in
start' from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/merb-core-1.1.3/lib/merb-core.rb:165:in start'
from
/usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0/bin/chef-server:84
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-server:19:in `load'
from /usr/local/rvm/gems/ruby-1.8.7-p334/bin/chef-server:19

Some debug info:

[root@chefserver-test1 ~]# which gem
/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/gem
[root@chefserver-test1 ~]# gem --version
1.7.2
[root@chefserver-test1 ~]# which ruby
/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/ruby
[root@chefserver-test1 ~]# ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]
[root@chefserver-test1 ~]# rvm info

ruby-1.8.7-p334:

system:
uname: "Linux chefserver-test1 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15
12:39:36 EST 2008 i686 i686 i386 GNU/Linux"
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release
(i686-redhat-linux-gnu)"
zsh: " => not installed"

rvm:
version: "rvm 1.6.5 by Wayne E. Seguin (wayneeseguin@gmail.com)
[https://rvm.beginrescueend.com/]"

ruby:
interpreter: "ruby"
version: "1.8.7"
date: "2011-02-18"
platform: "i686-linux"
patchlevel: "2011-02-18 patchlevel 334"
full_version: "ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]"

homes:
gem: "/usr/local/rvm/gems/ruby-1.8.7-p334"
ruby: "/usr/local/rvm/rubies/ruby-1.8.7-p334"

binaries:
ruby: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/ruby"
irb: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/irb"
gem: "/usr/local/rvm/rubies/ruby-1.8.7-p334/bin/gem"
rake: "/usr/local/rvm/gems/ruby-1.8.7-p334/bin/rake"

environment:
PATH:
"/usr/local/rvm/gems/ruby-1.8.7-p334/bin:/usr/local/rvm/gems/ruby-1.8.7-p334@global/bin:/usr/local/rvm/rubies/ruby-1.8.7-p334/bin:/usr/local/rvm/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/home/ec2/bin:/root/bin"
GEM_HOME: "/usr/local/rvm/gems/ruby-1.8.7-p334"
GEM_PATH:
"/usr/local/rvm/gems/ruby-1.8.7-p334:/usr/local/rvm/gems/ruby-1.8.7-p334@global"
MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.8.7-p334"
IRBRC: "/usr/local/rvm/rubies/ruby-1.8.7-p334/.irbrc"
RUBYOPT: ""
gemset: ""

[root@chefserver-test1 ~]# gem sources
*** CURRENT SOURCES ***

http://rubygems.org
[root@chefserver-test1 ~]# gem list

*** LOCAL GEMS ***

addressable (2.2.6)
amqp (0.6.7)
bundler (1.0.13)
bunny (0.6.0)
chef (0.10.0)
chef-expander (0.10.0)
chef-server (0.10.0)
chef-server-api (0.10.0)
chef-server-webui (0.10.0)
chef-solr (0.10.0)
coderay (0.9.8)
daemons (1.1.3)
dep_selector (0.0.8)
em-http-request (0.2.15)
erubis (2.7.0)
eventmachine (0.12.10)
extlib (0.9.15)
fast_xs (0.7.3)
haml (3.1.1)
highline (1.6.2)
json (1.4.6)
merb-assets (1.1.3)
merb-core (1.1.3)
merb-haml (1.1.3)
merb-helpers (1.1.3)
merb-param-protection (1.1.3)
mime-types (1.16)
mixlib-authentication (1.1.4)
mixlib-cli (1.2.0)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.0.1)
ohai (0.6.4)
polyglot (0.3.1)
rack (1.2.2)
rake (0.8.7)
rest-client (1.6.1)
ruby-openid (2.1.8)
rubygems-update (1.7.2)
systemu (2.2.0)
thin (1.2.11)
treetop (1.4.9)
uuidtools (2.1.2)
yajl-ruby (0.7.9)
[root@chefserver-test1 ~]#

  • Steve

--
Steve Webb - Senior System Administrator for gnip.com

On Tuesday, May 17, 2011 at 2:45 PM, Steve Webb wrote:
That fixed chef-solr, but chef-server is still complaining about

merb-assets (same error when I was using gem 1.8.x) after downgrading to
gem 1.7.2:

[root@chefserver-test1 ~]# chef-server -N -e production
Merb root at: /usr/local/rvm/gems/ruby-1.8.7-p334/gems/chef-server-api-0.10.0
NOTE: Gem::SourceIndex#all_gems is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex#all_gems called from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:256
This deprecation notice is from rubygems 1.8.x. Maybe your rvm is borked, or you need to hash -r to get your shell to use the right commands?

--
Dan DeLeo