Error: Got nil value for ruby_version

asked 2014-05-29 15:43:31 -0600

bitcycle gravatar image

updated 2014-05-29 16:00:45 -0600

Hey all.

I'm running RHEL 6.2 and I've uninstalled/reinstalled ruby 1.8.7 now, and I can't seem to get rid of this error message.

user@host depl $ puppet apply manifests/nodes/test.pp --modulepath=modules
Warning: Config file /home/user/.puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for host.company.lan in environment production in 2.09 seconds
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
   (at /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:816:in `set_default')
Error: Got nil value for ruby_version

user@host depl$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Here's the caller stack from ruby:

/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2253:in `set_parameters'         
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2247:in `each'                   
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2247:in `set_parameters'         
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2203:in `initialize'             
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:314:in `new'                 
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:314:in `to_ral'              
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:507:in `to_catalog'  
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:499:in `each'        
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:499:in `to_catalog'  
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:402:in `to_ral'                                 
/usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:217:in `main'       
/usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:in `override'              
/usr/lib/ruby/site_ruby/1.8/puppet.rb:234:in `override'                     
/usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:190:in `main'       
/usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:151:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:371:in `run'              
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:477:in `plugin_hook'      
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:371:in `run'              
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:479:in `exit_on_fail'            
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:371:in `run'              
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:137:in `run'                                   
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:91:in `execute'                                                                   
/usr/bin/puppet:4

Can someone here help me get past it?

edit retag flag offensive close merge delete

Comments

What version of facter and puppet are you running? What does `facter rubyversion` return (without the underscore)? Do you have any custom facts that might query falsely query `ruby_version` instead of `rubyversion`?

Stefan gravatar imageStefan ( 2014-05-31 17:04:04 -0600 )edit