Undefined get_uptime method for Facter :: Util :: Uptime: Module (NoMethodError)

I'm trying to set up a node puppet, but rubigems don't seem to behave.

If I run facter in cli through its own binary (/usr/lib/ruby/gems/1.8/gems/facter-1.5.8/bin/facter), it works fine, but if I run it through a binary, installed rubygems (/ usr / bin / facter), it throws:

/usr/lib/ruby/1.8/facter/uptime.rb:11: undefined method `get_uptime' for Facter::Util::Uptime:Module (NoMethodError)
        from /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/facter/util/loader.rb:73:in `load'
        from /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/facter/util/loader.rb:73:in `load_file'
        from /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/facter/util/loader.rb:38:in `load_all'
        from /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/facter/util/loader.rb:33:in `each'
        from /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/facter/util/loader.rb:33:in `load_all'
        from /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/facter/util/loader.rb:30:in `each'
        from /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/facter/util/loader.rb:30:in `load_all'
        from /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/facter/util/collection.rb:90:in `load_all'
        from /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/facter.rb:95:in `to_hash'
        from /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/bin/facter:137
        from /usr/bin/facter:19:in `load'
        from /usr/bin/facter:19

I tried uninstalling rubygems and reinstalling as well as reinstalling the gem, but nothing works.

I guess something is cached somewhere because it throws the same error when I try to launch a puppet.

Any ideas?

+5
source share
1 answer

, , , facter rubygems, rubygems.

, stacktrace /usr/lib/ruby/1.8/facter/uptime.rb /usr/lib/ruby/gems/1.8/gems/facter-1.5.8.

, /usr/lib/ruby/1.8/facter , , , .

+8

All Articles