Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'

89 views
Skip to first unread message

Andreas Dvorak

unread,
Oct 23, 2014, 12:52:11 PM10/23/14
to puppet...@googlegroups.com
Dear all,

since today the puppet agent does not work anymore if it is executed by service.
I prints out:
Could not retrieve local facts: Could not find fact 'define_fact'

If I run puppet agent -t I do not get the message.
I have updated facter from 1.7.1 to 2.1 and hiera from 1.2.1 to 1.3.4

I have
Linux RedHat 5 and 6
puppet 3.3.1
facter 2.1.0
hiera 1.3.4
ruby 1.8.7

Does any have an idea?

Thanks
Andreas

Andreas Dvorak

unread,
Oct 24, 2014, 8:43:31 AM10/24/14
to puppet...@googlegroups.com
After downgrade facter to 1.7.1 the error is gone.
Then I did the update again and the error was back again.

I have many server that already have the version 2.1, without an update.

I don't understand why the update does not work.

Kylo Ginsberg

unread,
Oct 24, 2014, 10:07:36 AM10/24/14
to puppet...@googlegroups.com
On Fri, Oct 24, 2014 at 5:43 AM, Andreas Dvorak <andreas...@gmail.com> wrote:
After downgrade facter to 1.7.1 the error is gone.
Then I did the update again and the error was back again.

Can you double-check that this server doesn't have multiple versions of facter installed? E.g. this can happen with one installed from packages and one from gem, etc.

Kylo
 

I have many server that already have the version 2.1, without an update.

I don't understand why the update does not work.

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e6383291-1fee-4fe1-abf0-73f9e627e737%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Kylo Ginsberg | ky...@puppetlabs.com | irc: kylo | twitter: @kylog

Join us at PuppetConf 2015, October 5-9 in Portland, OR - http://2015.puppetconf.com.  
Register early to save 40%!

Andreas Dvorak

unread,
Oct 24, 2014, 12:34:16 PM10/24/14
to puppet...@googlegroups.com
Hi,

thank you for the answer.
No I don't have multiple facter installed.
find / -name facter
/usr/bin/facter
/usr/lib/ruby/site_ruby/1.8/facter
/var/lib/puppet/lib/facter

Andreas

Wil Cooley

unread,
Oct 24, 2014, 12:49:00 PM10/24/14
to puppet-users group
On Thu, Oct 23, 2014 at 9:52 AM, Andreas Dvorak <andreas...@gmail.com> wrote:
Dear all,

since today the puppet agent does not work anymore if it is executed by service.
I prints out:
Could not retrieve local facts: Could not find fact 'define_fact'

If I run puppet agent -t I do not get the message.
I have updated facter from 1.7.1 to 2.1 and hiera from 1.2.1 to 1.3.4

Did you restart the Puppet Agent after the upgrade?

Wil 

Andreas Dvorak

unread,
Oct 27, 2014, 6:55:47 AM10/27/14
to puppet...@googlegroups.com
Hi Wil,

thank you. The restart was missing.
So easy but I did not think about that.

Andreas
Reply all
Reply to author
Forward
0 new messages