Jeremy Pruitt
2008-Jul-10 00:01 UTC
[Puppet Users] Getting undefined method `-'' for #<XMLRPC::DateTime:0xb7c729e8>
Hello, all. I am getting the following error on a couple of my puppet nodes when I run puppetd -v -o --no-daemonize --no-splay: err: Could not retrieve catalog: undefined method `-'' for #<XMLRPC::DateTime:0xb7c729e8> The error goes away if I add --ignorecache, but I''m not sure that''s quite the fix I''m hoping for. It will also go away if i remove my localconfig file, but the error returns after the localconfig file is regenerated. This is only affecting 2 nodes so far, and both nodes were working properly earlier today. Has anybody run into this, or does anybody have any idea of what''s going on? puppetd is version 0.24.4 I believe puppetmasterd was pulled down from 0.24.x, but it reports as 0.24.4 Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Scott Smith
2008-Jul-11 09:47 UTC
[Puppet Users] Re: Getting undefined method `-'' for #<XMLRPC::DateTime:0xb7c729e8>
Jeremy Pruitt wrote:> Hello, all. > > I am getting the following error on a couple of my puppet nodes when I > run puppetd -v -o --no-daemonize --no-splay: > > err: Could not retrieve catalog: undefined method `-'' for > #<XMLRPC::DateTime:0xb7c729e8>Did you figure this out? I''m getting it, as well. -scott --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
James Turnbull
2008-Jul-11 10:06 UTC
[Puppet Users] Re: Getting undefined method `-'' for #<XMLRPC::DateTime:0xb7c729e8>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Scott Smith wrote:> Jeremy Pruitt wrote: >> Hello, all. >> >> I am getting the following error on a couple of my puppet nodes when I >> run puppetd -v -o --no-daemonize --no-splay: >> >> err: Could not retrieve catalog: undefined method `-'' for >> #<XMLRPC::DateTime:0xb7c729e8> > > Did you figure this out? I''m getting it, as well.Can you run with with --trace and --debug and log a ticket please. Thanks James Turnbull - -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIdzC99hTGvAxC30ARAvf9AKCmGHXr16vF2EcBBZMSTvnf9J8nVACgusa2 5OiCbKTBoKVD17cEC/DDgNg=JJlJ -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Scott Smith
2008-Jul-11 18:49 UTC
[Puppet Users] Re: Getting undefined method `-'' for #<XMLRPC::DateTime:0xb7c729e8>
James Turnbull wrote:>>> err: Could not retrieve catalog: undefined method `-'' for >>> #<XMLRPC::DateTime:0xb7c729e8> >> Did you figure this out? I''m getting it, as well. > > Can you run with with --trace and --debug and log a ticket please.Haven''t seen it since last night when I cleared my exported resources and state/yaml files on both client and server (for the client), but if I do see it again I will definitely do this. -scott --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Jeremy Pruitt
2008-Jul-12 22:09 UTC
[Puppet Users] Re: Getting undefined method `-'' for #<XMLRPC::DateTime:0xb7c729e8>
No I have not figured it out and the problem seems to be growing. I have tried removing the classes and localconfig files on the client, and I removed the fact and node yaml stuff on the server. That works for the first run but the second run always fails. It is now happening on at least 5 of my clients (that I know about). Here''s is the debug/ trace output. ** First I remove the clases and localconfig files on the client: [root@jpruitt-lnx puppet]# rm localconfig.yaml rm: remove regular file `localconfig.yaml''? y [root@jpruitt-lnx puppet]# rm classes.txt rm: remove regular file `classes.txt''? y ** Next I remove the fact and node caches on the server: [root@puppetmaster1 yaml]# rm */*jpruitt* rm: remove regular file `facts/jpruitt-lnx.juniper.net.yaml''? y rm: remove regular file `node/jpruitt-lnx.juniper.net.yaml''? y ** Now I can run puppet with no problems: [root@jpruitt-lnx puppet]# puppetd -v -o --no-daemonize --no-splay info: Retrieving plugins info: Caching catalog at /var/lib/puppet/localconfig.yaml notice: Starting catalog run info: Sent transaction report in 0.05 seconds notice: Finished catalog run in 9.75 seconds ** But every subsequent run yields the following result: [root@jpruitt-lnx puppet]# puppetd -v -o --no-daemonize --no-splay -- trace --debug debug: Creating default schedules debug: Failed to load library ''shadow'' for feature ''libshadow'' debug: /Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/ puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/ puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl] debug: /Settings[/etc/puppet/puppet.conf]/Settings[main]/File[/var/lib/ puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/ puppet/ssl/public_keys/jpruitt-lnx.juniper.net.pem]: Autorequiring File[/var/lib/puppet/ssl/public_keys] debug: /Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/ puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/ certs] debug: /Settings[/etc/puppet/puppet.conf]/Settings[main]/File[/var/lib/ puppet/ssl]: Autorequiring File[/var/lib/puppet] debug: /Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/ puppet/ssl/csr_jpruitt-lnx.juniper.net.pem]: Autorequiring File[/var/ lib/puppet/ssl] debug: /Settings[/etc/puppet/puppet.conf]/Settings[puppetd]/File[/var/ lib/puppet/classes.txt]: Autorequiring File[/var/lib/puppet] debug: /Settings[/etc/puppet/puppet.conf]/Settings[puppetd]/File[/etc/ puppet/puppet.conf]: Autorequiring File[/etc/puppet] debug: /Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/ puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /Settings[/etc/puppet/puppet.conf]/Settings[main]/File[/var/lib/ puppet/state]: Autorequiring File[/var/lib/puppet] debug: /Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/ puppet/ssl/private_keys/jpruitt-lnx.juniper.net.pem]: Autorequiring File[/var/lib/puppet/ssl/private_keys] debug: /Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/ puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl] debug: /Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/ puppet/ssl/certs/jpruitt-lnx.juniper.net.pem]: Autorequiring File[/var/ lib/puppet/ssl/certs] debug: /Settings[/etc/puppet/puppet.conf]/Settings[puppetd]/File[/var/ lib/puppet/state/state.yaml]: Autorequiring File[/var/lib/puppet/ state] debug: Finishing transaction -606817588 with 0 changes debug: Loaded state in 0.01 seconds debug: Retrieved facts in 0.07 seconds debug: Puppet::Network::Client::File: defining fileserver.describe debug: Puppet::Network::Client::File: defining fileserver.list debug: Puppet::Network::Client::File: defining fileserver.retrieve info: Retrieving plugins debug: Calling fileserver.list debug: /File[/var/lib/puppet/lib/puppet]/checksum: Initializing checksum hash debug: /File[/var/lib/puppet/lib/puppet]: Creating checksum {mtime}Sat Jul 12 14:45:35 -0700 2008 debug: Calling fileserver.describe debug: Calling fileserver.list debug: /File[/var/lib/puppet/lib/puppet/type]/checksum: Initializing checksum hash debug: /File[/var/lib/puppet/lib/puppet/type]: Creating checksum {mtime}Sat Jul 12 14:45:35 -0700 2008 debug: Calling fileserver.describe debug: Calling fileserver.list debug: /File[/var/lib/puppet/lib/puppet/type/sudoers.rb]/checksum: Initializing checksum hash debug: /File[/var/lib/puppet/lib/puppet/type/sudoers.rb]: Creating checksum {md5}61f6d49d2a0ba0e580fba1fce1c45b9f debug: Calling fileserver.describe debug: Finishing transaction -607215948 with 0 changes debug: Calling puppetmaster.freshness /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:117:in `fresh?'' /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:151:in `getconfig'' /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:253:in `run'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:445:in `thinmark'' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ core_ext/benchmark.rb:8:in `realtime'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark'' /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:252:in `run'' /usr/lib/ruby/1.8/sync.rb:229:in `synchronize'' /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:245:in `run'' /usr/sbin/puppetd:439 err: Could not retrieve catalog: undefined method `-'' for #<XMLRPC::DateTime:0xb7ca2af8> ** Any ideas? - Jeremy On Jul 11, 2:47 am, Scott Smith <sc...@kontera.com> wrote:> Did you figure this out? I''m getting it, as well. > > -scott--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Jeremy Pruitt
2008-Jul-13 01:07 UTC
[Puppet Users] Re: Getting undefined method `-'' for #<XMLRPC::DateTime:0xb7c729e8>
Just tried 0.24.5rc1 and the problem seems to have disappeared, so if you don''t mind using an RC, that should do the trick. - Jeremy On Jul 11, 2:47 am, Scott Smith <sc...@kontera.com> wrote:> Jeremy Pruitt wrote: > > Hello, all. > > > I am getting the following error on a couple of my puppet nodes when I > > run puppetd -v -o --no-daemonize --no-splay: > > > err: Could not retrieve catalog: undefined method `-'' for > > #<XMLRPC::DateTime:0xb7c729e8> > > Did you figure this out? I''m getting it, as well. > > -scott--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
AJ
2008-Jul-13 01:11 UTC
[Puppet Users] Re: Getting undefined method `-'' for #<XMLRPC::DateTime:0xb7c729e8>
Please file a bug if the rc doesn''t fix this behaviour. Regards, AN On 13/07/2008, at 1:07 PM, Jeremy Pruitt <jeremypruitt@gmail.com> wrote:> > Just tried 0.24.5rc1 and the problem seems to have disappeared, so if > you don''t mind using an RC, that should do the trick. > > - Jeremy > > On Jul 11, 2:47 am, Scott Smith <sc...@kontera.com> wrote: >> Jeremy Pruitt wrote: >>> Hello, all. >> >>> I am getting the following error on a couple of my puppet nodes >>> when I >>> run puppetd -v -o --no-daemonize --no-splay: >> >>> err: Could not retrieve catalog: undefined method `-'' for >>> #<XMLRPC::DateTime:0xb7c729e8> >> >> Did you figure this out? I''m getting it, as well. >> >> -scott > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---