I get the following backtrace:
puppet-agent[28934]: Could not get latest version: undefined method `[]' 
for nil:NilClass
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/provider/package/gem.rb:111:in `latest'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/type/package.rb:139:in `block in insync?'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/type/package.rb:126:in `each'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/type/package.rb:126:in `insync?'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/property.rb:314:in 
`safe_insync?'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:117:in 
`sync_if_needed'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in 
`perform_changes'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in 
`evaluate'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:174:in 
`apply'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:187:in 
`eval_resource'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:117:in 
`call'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:117:in 
`block (2 levels) in evaluate'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/util.rb:327:in `block 
in thinmark'
puppet-agent[28934]: /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/util.rb:326:in 
`thinmark'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:117:in 
`block in evaluate'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in 
`traverse'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:108:in 
`evaluate'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in apply'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:149:in 
`with_destination'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in 
`as_logging_destination'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in 
`block in apply_catalog'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/util.rb:161:in `block 
in benchmark'
puppet-agent[28934]: /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/util.rb:160:in 
`benchmark'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in 
`apply_catalog'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:192:in 
`run'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/agent.rb:44:in `block 
(4 levels) in run'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/agent/locker.rb:20:in 
`lock'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/agent.rb:44:in `block 
(3 levels) in run'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/agent.rb:114:in 
`with_client'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/agent.rb:41:in `block 
(2 levels) in run'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/agent.rb:84:in `block 
in run_in_fork'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/agent.rb:81:in `fork'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/agent.rb:81:in 
`run_in_fork'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/agent.rb:40:in `block 
in run'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/application.rb:179:in 
`call'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/application.rb:179:in 
`controlled_run'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/agent.rb:38:in `run'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/daemon.rb:163:in 
`block in run_event_loop'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/scheduler/job.rb:49:in `call'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/scheduler/job.rb:49:in `run'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/scheduler/scheduler.rb:39:in `block in 
run_ready'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/scheduler/scheduler.rb:34:in `each'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/scheduler/scheduler.rb:34:in `run_ready'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/scheduler/scheduler.rb:11:in `run_loop'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/daemon.rb:179:in 
`run_event_loop'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/daemon.rb:142:in 
`start'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:377:in `main'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:323:in `run_command'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in 
`block (2 levels) in run'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/application.rb:470:in 
`plugin_hook'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in 
`block in run'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/util.rb:478:in 
`exit_on_fail'
puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in 
`run'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:137:in `run'
puppet-agent[28934]: 
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:91:in `execute'
puppet-agent[28934]: /usr/bin/puppet:4:in `<main>'

My Environment is Ubuntu 12.0.4 with puppet 3.4.3 and ruby 1.9.1 (1.9.3p0) 
- which according to the puppet release notes is buggy?

Am Dienstag, 4. März 2014 18:35:26 UTC+1 schrieb Josh Cooper:
>
>
>
>
> On Tue, Mar 4, 2014 at 4:43 AM, Christof Schöll 
> <c.sc...@gmail.com<javascript:>
> > wrote:
>
>> Hello,
>>
>> I get the following error when running a puppet agent in daemon mode:
>>
>>  change from ["2.2.2"] to latest failed: Could not get latest version: 
>> undefined method `[]' for nil:NilClass 
>> /Stage[main]/Ruby/Package[rubygems-update]/ensure This works fine when 
>> running "puppet agent -t" from command line.
>>
>> Does anyone have a clue what could be causing this or how to debug?
>>
>> Help is very much appreciated.
>> Thanks in advance....
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Puppet Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to puppet-users...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/60c986c3-6b90-45c4-88f5-298a3214c54c%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
> Please run with --trace and post the backtrace.
>
> Josh
>
> -- 
> Josh Cooper
> Developer, Puppet Labs
>
> *Join us at PuppetConf 2014, September 23-24 in San Francisco* -* 
> http://bit.ly/pupconf14 
> <http://bit.ly/pupconf14>*
> Register now and save $350! 
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/46c63b5a-c255-4eff-be30-7848ff0a8f42%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to