Przemek
2013-Apr-22 09:48 UTC
[Puppet Users] Udefined method `get_uptime` for Facter::Util::Uptime:Module
Hi, I''m rookie puppet user and I trying to establish simple Server-Client connection on configuration: Server: *Fedora F18*, Puppet 3.1.1 (installed by yum), Ruby 1.8.7 Client: *Debian 6.0.6*, Puppet 3.1.1 (installed by guide<http://shapeshed.com/setting-up-puppet-on-ubuntu-10-04/>), Ruby 1.8.7 Server sign client certificate with success but now I''m struggle with apply simple puppet manifest site.pp. When I run Server and Client with no--daemonize and --debug I get error stack trace as fallow: Debug: Finishing transaction -615376128 Debug: Loaded state in 0.00 seconds Debug: node supports formats: b64_zlib_yaml pson raw yaml; using pson Debug: Using cached certificate for ca Debug: Using cached certificate for radkam Debug: Using cached certificate_revocation_list for ca Info: Retrieving plugin Debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson Debug: Finishing transaction -615481918 The interpreter parameter to ''setcode'' is deprecated and will be removed in a future version. *Error: Could not retrieve local facts: undefined method `get_uptime'' for Facter::Util::Uptime:Module Error: Failed to apply catalog: Could not retrieve local facts: undefined method `get_uptime'' for Facter::Util::Uptime:Module* Debug: Value of ''preferred_serialization_format'' (pson) is invalid for report, using default (yaml) *Debug: report supports formats: b64_zlib_yaml raw yaml; using yaml /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:89:in `exit'': no implicit conversion from nil to integer (TypeError)* *from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:89:in `run_in_fork'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:86:in `fork'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:86:in `run_in_fork'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:41:in `run'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:179:in `call'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:179:in `controlled_run'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:39:in `run'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:205:in `run_event_loop'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:167:in `loop'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:167:in `run_event_loop'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:145:in `start'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application/agent.rb:357:in `main'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application/agent.rb:313:in `run_command'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in `run'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:456:in `plugin_hook'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in `run'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util.rb:504:in `exit_on_fail'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in `run'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in `run'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in `execute'' from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/bin/puppet:4 from /usr/bin/puppet:23:in `load'' from /usr/bin/puppet:23* * * I googled it but I couldn''t find fix (except few info on this stackoverflow topic<http://stackoverflow.com/questions/3798107/undefined-method-get-uptime-for-facterutiluptimemodule-nomethoderror>). * * Could you please help me with resolution? Best Regards -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Keith Burdis
2013-Apr-22 17:21 UTC
Re: [Puppet Users] Udefined method `get_uptime` for Facter::Util::Uptime:Module
Is the time set correctly on these hosts? If not then I''d suggest synchronising them with an NTP time server like those at pool.NTP.org. - Keith On 22 Apr 2013 17:54, "Przemek" <p.slodkiewicz@gmail.com> wrote:> Hi, > > I''m rookie puppet user and I trying to establish simple Server-Client > connection on configuration: > Server: *Fedora F18*, Puppet 3.1.1 (installed by yum), Ruby 1.8.7 > Client: *Debian 6.0.6*, Puppet 3.1.1 (installed by guide<http://shapeshed.com/setting-up-puppet-on-ubuntu-10-04/>), > Ruby 1.8.7 > > Server sign client certificate with success but now I''m struggle with > apply simple puppet manifest site.pp. > When I run Server and Client with no--daemonize and --debug I get error > stack trace as fallow: > > Debug: Finishing transaction -615376128 > Debug: Loaded state in 0.00 seconds > Debug: node supports formats: b64_zlib_yaml pson raw yaml; using pson > Debug: Using cached certificate for ca > Debug: Using cached certificate for radkam > Debug: Using cached certificate_revocation_list for ca > Info: Retrieving plugin > Debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using > pson > Debug: Finishing transaction -615481918 > The interpreter parameter to ''setcode'' is deprecated and will be removed > in a future version. > *Error: Could not retrieve local facts: undefined method `get_uptime'' for > Facter::Util::Uptime:Module > Error: Failed to apply catalog: Could not retrieve local facts: undefined > method `get_uptime'' for Facter::Util::Uptime:Module* > Debug: Value of ''preferred_serialization_format'' (pson) is invalid for > report, using default (yaml) > *Debug: report supports formats: b64_zlib_yaml raw yaml; using yaml > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:89:in `exit'': > no implicit conversion from nil to integer (TypeError)* > *from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:89:in > `run_in_fork'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:86:in > `fork'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:86:in > `run_in_fork'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:41:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:179:in > `call'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:179:in > `controlled_run'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:39:in > `run'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:205:in > `run_event_loop'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:167:in > `loop'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:167:in > `run_event_loop'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:145:in > `start'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application/agent.rb:357:in > `main'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application/agent.rb:313:in > `run_command'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:456:in > `plugin_hook'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in > `run'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util.rb:504:in > `exit_on_fail'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in > `execute'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/bin/puppet:4 > from /usr/bin/puppet:23:in `load'' > from /usr/bin/puppet:23* > * > * > I googled it but I couldn''t find fix (except few info on this stackoverflow > topic<http://stackoverflow.com/questions/3798107/undefined-method-get-uptime-for-facterutiluptimemodule-nomethoderror>). > * > * > > Could you please help me with resolution? > Best Regards > > -- > 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+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Josh Cooper
2013-Apr-23 03:49 UTC
Re: [Puppet Users] Udefined method `get_uptime` for Facter::Util::Uptime:Module
On Mon, Apr 22, 2013 at 2:48 AM, Przemek <p.slodkiewicz@gmail.com> wrote:> Hi, > > I''m rookie puppet user and I trying to establish simple Server-Client > connection on configuration: > Server: *Fedora F18*, Puppet 3.1.1 (installed by yum), Ruby 1.8.7 > Client: *Debian 6.0.6*, Puppet 3.1.1 (installed by guide<http://shapeshed.com/setting-up-puppet-on-ubuntu-10-04/>), > Ruby 1.8.7 > > Server sign client certificate with success but now I''m struggle with > apply simple puppet manifest site.pp. > When I run Server and Client with no--daemonize and --debug I get error > stack trace as fallow: > > Debug: Finishing transaction -615376128 > Debug: Loaded state in 0.00 seconds > Debug: node supports formats: b64_zlib_yaml pson raw yaml; using pson > Debug: Using cached certificate for ca > Debug: Using cached certificate for radkam > Debug: Using cached certificate_revocation_list for ca > Info: Retrieving plugin > Debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using > pson > Debug: Finishing transaction -615481918 > The interpreter parameter to ''setcode'' is deprecated and will be removed > in a future version. > *Error: Could not retrieve local facts: undefined method `get_uptime'' for > Facter::Util::Uptime:Module > Error: Failed to apply catalog: Could not retrieve local facts: undefined > method `get_uptime'' for Facter::Util::Uptime:Module* >This sort of error almost always means you have multiple versions of facter installed, either as a gem, package, or from source (install.rb).> > Debug: Value of ''preferred_serialization_format'' (pson) is invalid for > report, using default (yaml) > *Debug: report supports formats: b64_zlib_yaml raw yaml; using yaml > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:89:in `exit'': > no implicit conversion from nil to integer (TypeError)* > *from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:89:in > `run_in_fork'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:86:in > `fork'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:86:in > `run_in_fork'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:41:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:179:in > `call'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:179:in > `controlled_run'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:39:in > `run'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:205:in > `run_event_loop'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:167:in > `loop'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:167:in > `run_event_loop'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:145:in > `start'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application/agent.rb:357:in > `main'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application/agent.rb:313:in > `run_command'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:456:in > `plugin_hook'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in > `run'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util.rb:504:in > `exit_on_fail'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in > `execute'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/bin/puppet:4 > from /usr/bin/puppet:23:in `load'' > from /usr/bin/puppet:23* > * > * > I googled it but I couldn''t find fix (except few info on this stackoverflow > topic<http://stackoverflow.com/questions/3798107/undefined-method-get-uptime-for-facterutiluptimemodule-nomethoderror>). > * > * > > Could you please help me with resolution? > Best Regards > > -- > 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+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- Josh Cooper Developer, Puppet Labs *Join us at PuppetConf 2013, August 22-23 in San Francisco - * http://bit.ly/pupconf13* **The first 150 tickets sold will be available at a 35% discount - register now! Offer expires April 22.* -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Przemek
2013-Apr-23 07:26 UTC
[Puppet Users] Re: Udefined method `get_uptime` for Facter::Util::Uptime:Module
Thanks for feedback guys! @Keith, NTP time server is setup correctly. @Josh, Bingo! Permanent deinstallation of ruby and facter, and new installation from gems resolve the issue. Thanks for Your involvement one more time. Best Regards W dniu poniedziałek, 22 kwietnia 2013 11:48:07 UTC+2 użytkownik Przemek napisał:> > Hi, > > I''m rookie puppet user and I trying to establish simple Server-Client > connection on configuration: > Server: *Fedora F18*, Puppet 3.1.1 (installed by yum), Ruby 1.8.7 > Client: *Debian 6.0.6*, Puppet 3.1.1 (installed by guide<http://shapeshed.com/setting-up-puppet-on-ubuntu-10-04/>), > Ruby 1.8.7 > > Server sign client certificate with success but now I''m struggle with > apply simple puppet manifest site.pp. > When I run Server and Client with no--daemonize and --debug I get error > stack trace as fallow: > > Debug: Finishing transaction -615376128 > Debug: Loaded state in 0.00 seconds > Debug: node supports formats: b64_zlib_yaml pson raw yaml; using pson > Debug: Using cached certificate for ca > Debug: Using cached certificate for radkam > Debug: Using cached certificate_revocation_list for ca > Info: Retrieving plugin > Debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using > pson > Debug: Finishing transaction -615481918 > The interpreter parameter to ''setcode'' is deprecated and will be removed > in a future version. > *Error: Could not retrieve local facts: undefined method `get_uptime'' for > Facter::Util::Uptime:Module > Error: Failed to apply catalog: Could not retrieve local facts: undefined > method `get_uptime'' for Facter::Util::Uptime:Module* > Debug: Value of ''preferred_serialization_format'' (pson) is invalid for > report, using default (yaml) > *Debug: report supports formats: b64_zlib_yaml raw yaml; using yaml > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:89:in `exit'': > no implicit conversion from nil to integer (TypeError)* > *from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:89:in > `run_in_fork'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:86:in > `fork'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:86:in > `run_in_fork'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:41:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:179:in > `call'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:179:in > `controlled_run'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/agent.rb:39:in > `run'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:205:in > `run_event_loop'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:167:in > `loop'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:167:in > `run_event_loop'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/daemon.rb:145:in > `start'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application/agent.rb:357:in > `main'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application/agent.rb:313:in > `run_command'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:456:in > `plugin_hook'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in > `run'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util.rb:504:in > `exit_on_fail'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/application.rb:364:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in > `run'' > from > /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in > `execute'' > from /usr/lib/ruby/gems/1.8/gems/puppet-3.1.1/bin/puppet:4 > from /usr/bin/puppet:23:in `load'' > from /usr/bin/puppet:23* > * > * > I googled it but I couldn''t find fix (except few info on this stackoverflow > topic<http://stackoverflow.com/questions/3798107/undefined-method-get-uptime-for-facterutiluptimemodule-nomethoderror>). > * > * > > Could you please help me with resolution? > Best Regards > >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Seemingly Similar Threads
- Error 400 on SERVER: Could not find class pentaho for server.test.com
- could not retrieve information from environment
- Strange messages on 0.25.4.
- Puppet agent hangs for over a minute, no info in --summarize
- Puppet master can not find file_metadata for my puppet module