Debuging output that doesn't help ... how to get more from it ?

asked 2018-09-26 04:14:33 -0600

updated 2018-09-28 07:53:32 -0600

DarylW gravatar image

I'm running puppet with --debug --trace and at the end, I get the following output:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `ref' for nil:NilClass on node xxxxx.xxxx.xxx

/usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:207:in `is_http_200?'
/usr/share/ruby/vendor_ruby/puppet/indirector/rest.rb:100:in `find'
/usr/share/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:256:in `block in retrieve_new_catalog'
/usr/share/ruby/vendor_ruby/puppet/util.rb:327:in `block in thinmark'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:326:in `thinmark'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:255:in `retrieve_new_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:60:in `retrieve_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:103:in `prepare_and_retrieve_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:170:in `run'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:47:in `block (4 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/agent/locker.rb:20:in `lock'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:47:in `block (3 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:117:in `with_client'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:44:in `block (2 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:82:in `run_in_fork'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:43:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/application.rb:179:in `call'
/usr/share/ruby/vendor_ruby/puppet/application.rb:179:in `controlled_run'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:41:in `run'
/usr/share/ruby/vendor_ruby/puppet/application/agent.rb:355:in `onetime'
/usr/share/ruby/vendor_ruby/puppet/application/agent.rb:321:in `run_command'
/usr/share/ruby/vendor_ruby/puppet/application.rb:371:in `block (2 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/application.rb:477:in `plugin_hook'
/usr/share/ruby/vendor_ruby/puppet/application.rb:371:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/util.rb:479:in `exit_on_fail'
/usr/share/ruby/vendor_ruby/puppet/application.rb:371:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:137:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:91:in `execute'
/usr/bin/puppet:8:in `<main>'

Is there a way to figure out Nil:Class ? or a way to get more information to figure out what's wrong in my code (eg I'm modifying a module so it runs in my environment).

edit retag flag offensive close merge delete