ruby - undefined method get_uptime for Facter::Util::Uptime:Module (NoMethodError) -


I am trying to set up a puppet node, but RubyGums do not behave.

If I run the Factor on the clay through my own binary (/usr/lib/ruby/gems/1.8/gems/facter-1.5.8/bin/facter), then it works fine But if I run it through binaries Rubygems (/ usr / bin / facter), throws it:

  /usr/lib/ruby/1.8/facter/uptime Rb11: 'Load' /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/fact/util 'from Facter :: Util :: Uptime: / usr / lib / for undefined method `get_uptime' Module from /loader.rb:73 Ruby / Gemstones / 1.8 / Gemstones / Fact-1.5.8 / Leib / Fetter / Use / Loader. Lib / facter / util / loader.rb: 38: /usr/lib/ruby/gems/1.8 in `load_file 'from RB: 73: /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/ In 'load_all' from /gems/facter-1.5.8/lib/facter/util/loader.rb:33:am `each / to /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/ Lib / facter / util / loader.rb: 33: in / load / all / lib / ruby ​​/ gems / 1.8 / 'load_all' gems / facter -1 5.8 / lib / facter / util / loader.rb: 30: /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/facter/util/loader.rb:30 In `each ': /usr/lib/ruby/gems/1.8/gems/facter-1.5.8/lib/facter/util/collection.rb:90:IN`load_all 'to `load_all' / usr / lib / ruby ​​/ gems / 1.8 / Gems / Facts -1.5.8 / Leab / Faterer.Rb: 95: / usr / lib / ruby ​​/ gems / 1.8 / gems / facter-1.5.8 / bin / facter: From 137 to / usr `to_hash ' I / O Bin / Factor: 19: / usr / bin / facter: From 19 I have also tried to remove RubyGums and re-install the gem along with it, but nothing seems to be done < / P> 

I'm assuming something was cached Because it'm trying to run when I puppeteer throws the same error.

Any thoughts?

It seems that before you set up with rubygems, facter < Code> can be installed.

You will see the final file in Staxtrace /usr/lib/ruby/1.8/fact/ittime /usr/lib/ruby/gems/1.8/gems/facter-1.5.8 RB instead of having a file in .

You should check whether the /usr/lib/ruby/1.8/factor in the file is actually an older version of the factor and if so, you should remove them Or be able to move into a different nominated directory and this is your problem


Comments