Chef 0.10.10 question


#1

I know 10.10 is still rc, but i ran into a quirk at startup.

Starting up via init script i run into:
Starting chef-server:
/usr/lib64/ruby/gems/1.8/gems/chef-0.10.10.rc.2/lib/chef/config.rb:275:
undefined method +' for nil:NilClass (NoMethodError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:ingem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in require' from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.10.rc.2/lib/chef.rb:24 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:ingem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in require' from /usr/lib64/ruby/gems/1.8/gems/chef-server-api-0.10.10.rc.2/bin/chef-server:38 from /usr/bin/chef-server:19:inload’
from /usr/bin/chef-server:19

Looking in config.rb i find:

returns a platform specific path to the user home dir

user_home (ENV['HOME'] || ENV['SYSTEMDRIVE'] + ENV['HOMEPATH'] ||

ENV[‘USERPROFILE’])

the only env variable thats set is HOME. the others seem Windows
centric? i commented it out and things seem fine, so I’m wondering if
maybe this should be inside the conditional right above it?

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.


#2

On Thu, May 3, 2012 at 8:38 PM, Chris grocerylist@gmail.com wrote:

Starting up via init script i run into:
Starting chef-server:
/usr/lib64/ruby/gems/1.8/gems/chef-0.10.10.rc.2/lib/chef/config.rb:275:
undefined method +' for nil:NilClass (NoMethodError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:ingem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in require' from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.10.rc.2/lib/chef.rb:24 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:ingem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in require' from /usr/lib64/ruby/gems/1.8/gems/chef-server-api-0.10.10.rc.2/bin/chef-server:38 from /usr/bin/chef-server:19:inload’
from /usr/bin/chef-server:19

We love testers! Actually that’s been fixed in CHEF-3078 and you
should make sure you’re running Chef 0.10.10.rc.3.

http://tickets.opscode.com/browse/CHEF-3078

Bryan


#3

Oh yeah! Thanks Bryan!

Sent from a phone

On May 3, 2012, at 5:41 PM, Bryan McLellan btm@loftninjas.org wrote:

On Thu, May 3, 2012 at 8:38 PM, Chris grocerylist@gmail.com wrote:

Starting up via init script i run into:
Starting chef-server:
/usr/lib64/ruby/gems/1.8/gems/chef-0.10.10.rc.2/lib/chef/config.rb:275:
undefined method +' for nil:NilClass (NoMethodError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:ingem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in require' from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.10.rc.2/lib/chef.rb:24 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:ingem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in require' from /usr/lib64/ruby/gems/1.8/gems/chef-server-api-0.10.10.rc.2/bin/chef-server:38 from /usr/bin/chef-server:19:inload’
from /usr/bin/chef-server:19

We love testers! Actually that’s been fixed in CHEF-3078 and you
should make sure you’re running Chef 0.10.10.rc.3.

http://tickets.opscode.com/browse/CHEF-3078

Bryan


#4

ok, i updated to rc3 and startup is working :slight_smile:

i am curious about chef-solr, when i starts the log prints:
[Mon, 07 May 2012 12:45:05 -0700] INFO: Starting Solr with java
-Xmx256M -Xms256M -Dsolr.data.dir=/var/chef/solr/data
-Dsolr.solr.home=/var/chef/solr -jar /var/chef/solr-jetty/start.jar
2012-05-07 12:45:06.104::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2012-05-07 12:45:06.305::INFO: jetty-6.1.3

6.1.3? is that intentional? 0.10.8 ships with 6.1.24.

On Thu, May 3, 2012 at 5:43 PM, Chris grocerylist@gmail.com wrote:

Oh yeah! Thanks Bryan!

Sent from a phone

On May 3, 2012, at 5:41 PM, Bryan McLellan btm@loftninjas.org wrote:

On Thu, May 3, 2012 at 8:38 PM, Chris grocerylist@gmail.com wrote:

Starting up via init script i run into:
Starting chef-server:
/usr/lib64/ruby/gems/1.8/gems/chef-0.10.10.rc.2/lib/chef/config.rb:275:
undefined method +' for nil:NilClass (NoMethodError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:ingem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in require' from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.10.rc.2/lib/chef.rb:24 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:ingem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in require' from /usr/lib64/ruby/gems/1.8/gems/chef-server-api-0.10.10.rc.2/bin/chef-server:38 from /usr/bin/chef-server:19:inload’
from /usr/bin/chef-server:19

We love testers! Actually that’s been fixed in CHEF-3078 and you
should make sure you’re running Chef 0.10.10.rc.3.

http://tickets.opscode.com/browse/CHEF-3078

Bryan


Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.