uninitialized constant Facter::IPAddress (NameError)

674 views
Skip to first unread message

Michael Conigliaro

unread,
Apr 24, 2009, 2:35:08 PM4/24/09
to puppet...@googlegroups.com
I just started getting this error on some machines after a yum update
from centos 5.2 to centos 5.3. Does anyone know what it means? Since
I'm not a ruby person, I'm not sure how to debug this, but it looks to
me like facter is having trouble parsing information about my
interfaces.

# facter
/usr/lib/ruby/site_ruby/1.8/facter/ipmess.rb:19: uninitialized constant
Facter::IPAddress (NameError)
from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:72:in `load'
from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:72:in `load_file'
from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:38:in `load_all'
from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:33:in `each'
from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:33:in `load_all'
from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:30:in `each'
from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:30:in `load_all'
from /usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:90:in
`load_all'
from /usr/lib/ruby/site_ruby/1.8/facter.rb:91:in `to_hash'
from /usr/bin/facter:125

My facter version is 1.5.4.

--
Michael Conigliaro
Computer Analyst
Fuss & O'Neill Technologies
www.fandotech.com

Michael Conigliaro

unread,
Apr 24, 2009, 2:58:13 PM4/24/09
to puppet...@googlegroups.com
I just confirmed this problem on 1.5.5rc1 as well.

--
Michael Conigliaro
Computer Analyst
Fuss & O'Neill Technologies
www.fandotech.com


Michael Conigliaro

unread,
Apr 24, 2009, 3:38:22 PM4/24/09
to puppet...@googlegroups.com
For anyone else who has this problem, here's the fix:

rm /usr/lib/ruby/site_ruby/1.8/facter/ipmess.rb

According to someone in #puppet, this file should have been deleted
during the upgrade...

James Turnbull

unread,
Apr 24, 2009, 10:31:19 PM4/24/09
to puppet...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Conigliaro wrote:
> For anyone else who has this problem, here's the fix:
>
> rm /usr/lib/ruby/site_ruby/1.8/facter/ipmess.rb
>
> According to someone in #puppet, this file should have been deleted
> during the upgrade...

Depends on HOW you upgrade. If you install from source (install.rb)
then no old files are removed.

Regards

James Turnbull

- --
Author of:
* Pro Linux Systems Administration
(http://www.amazon.com/gp/product/1430219122/)
* 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

iD8DBQFJ8nX39hTGvAxC30ARAsDmAJ9DupSYK/mKD66wco7Vds1RaNdZ0wCfUg4L
3b5d0mkwDmXHm/oUCwHQB0U=
=+H89
-----END PGP SIGNATURE-----

Avi Miller

unread,
Apr 24, 2009, 10:39:46 PM4/24/09
to puppet...@googlegroups.com

On 25/04/2009, at 12:31 PM, James Turnbull wrote:

> Depends on HOW you upgrade. If you install from source (install.rb)
> then no old files are removed.

I think this is a problem in the RPM -- I had the same error when I
upgraded Facter via RPM from 1.5.2 to 1.5.4. Though, restarting Puppet
makes it go away. So now I notify the Puppet service from the Facter
package, which neatly solves the problem[1].

cYa,
Avi

[1] At least, it does for me. YMMV.

Reply all
Reply to author
Forward
0 new messages