Ask Your Question
0

Error loading fact /var/lib/puppet/lib/facter/facts.rb: no such file to load -- augeas

asked 2014-10-23 15:31:55 -0500

t-readyroc gravatar image

I'm getting variations on the above error on several nodes, & I believe it's causing them to not be able to update/apply new classes.

  • puppet 3.7.2
  • facter 2.2.0

The file in the error does in fact exist:

$ sudo ls -alh /var/lib/puppet/lib/facter/
total 64K
drwxr-xr-x 3 root root 4.0K Sep  9 12:48 .
drwxr-xr-x 5 root root 4.0K Aug 27 15:18 ..
-rw-r--r-- 1 root root  390 Aug 27 15:18 apt_package_updates.rb
-rw-r--r-- 1 root root  295 Aug 27 15:18 apt_security_updates.rb
-rw-r--r-- 1 root root  286 Aug 27 15:18 apt_updates.rb
-rw-r--r-- 1 root root  220 Feb 20  2014 concat_basedir.rb
-rw-r--r-- 1 root root 4.6K Sep  9 12:48 facter_dot_d.rb
-rw-r--r-- 1 root root 1.5K Sep  9 12:48 facts.rb
-rw-r--r-- 1 root root  236 Sep  9 12:48 ip6tables_version.rb
-rw-r--r-- 1 root root  444 Sep  9 12:48 iptables_persistent_version.rb
-rw-r--r-- 1 root root  234 Sep  9 12:48 iptables_version.rb
-rw-r--r-- 1 root root 1.2K Feb 20  2014 pe_version.rb
-rw-r--r-- 1 root root  937 Feb 20  2014 puppet_vardir.rb
-rw-r--r-- 1 root root  875 Sep  9 12:48 root_home.rb
drwxr-xr-x 2 root root 4.0K Feb 20  2014 util
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-10-24 02:44:47 -0500

domcleal gravatar image

The facts.rb file (which I think is from the theforeman/foreman module, it was just renamed to something better) is trying to load the ruby-augeas library. Usually Puppet packages depend (RPM) or recommend (deb) it, so it's usually available.

Depending on your OS, install ruby-augeas (RPM) or libaugeas-ruby1.8 or libaugeas-ruby1.9.1 (deb, depending on the output of "ruby --version").

edit flag offensive delete link more

Comments

Hmmmm... ok, well, I just checked 3 of the affected nodes, and they all had libaugeas-ruby installed. Example: http://i.imgur.com/j3zRgxb.png

t-readyroc gravatar imaget-readyroc ( 2014-10-28 13:00:16 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-10-23 15:31:55 -0500

Seen: 682 times

Last updated: Oct 24 '14