Recently while patching some CentOS boxes in my lab, I noticed the following error.
May 5 13:48:38 puppet-agent[19924]: Could not run Puppet
configuration client: Could not retrieve local facts: undefined method
`kernel_fact_value' for Facter::Util::Processor:Module
This was a bit odd as one of the things that I will typically do when I see puppet or facter updates in my update list is to run the agent manually with a
Since that came back clean, I was a little surprised when I checked into the dashboard later in the day to see nodes failing on me.
Doing a little research into the error led me to the following bug report. The fix for me is pretty simple, restart the agent on the node and everything works itself out. If you had a large environment, this could be really damn annoying having to log into every box since puppet no longer works for you.
Share this:
<div class="sd-content">
<ul>
<li class="share-facebook">
<a rel="nofollow" data-shared="sharing-facebook-2247" class="share-facebook sd-button share-icon no-text" href="http://usrlocal.com/2013/05/puppet-error-could-not-retrieve-local-facts-undefined-method-kernel_fact_value/?share=facebook" target="_blank" title="Click to share on Facebook"><span></span><span class="sharing-screen-reader-text">Click to share on Facebook (Opens in new window)</span></a>
</li>
<li class="share-linkedin">
<a rel="nofollow" data-shared="sharing-linkedin-2247" class="share-linkedin sd-button share-icon no-text" href="http://usrlocal.com/2013/05/puppet-error-could-not-retrieve-local-facts-undefined-method-kernel_fact_value/?share=linkedin" target="_blank" title="Click to share on LinkedIn"><span></span><span class="sharing-screen-reader-text">Click to share on LinkedIn (Opens in new window)</span></a>
</li>
<li class="share-google-plus-1">
<a rel="nofollow" data-shared="sharing-google-2247" class="share-google-plus-1 sd-button share-icon no-text" href="http://usrlocal.com/2013/05/puppet-error-could-not-retrieve-local-facts-undefined-method-kernel_fact_value/?share=google-plus-1" target="_blank" title="Click to share on Google+"><span></span><span class="sharing-screen-reader-text">Click to share on Google+ (Opens in new window)</span></a>
</li>
<li class="share-pinterest">
<a rel="nofollow" data-shared="sharing-pinterest-2247" class="share-pinterest sd-button share-icon no-text" href="http://usrlocal.com/2013/05/puppet-error-could-not-retrieve-local-facts-undefined-method-kernel_fact_value/?share=pinterest" target="_blank" title="Click to share on Pinterest"><span></span><span class="sharing-screen-reader-text">Click to share on Pinterest (Opens in new window)</span></a>
</li>
<li class="share-twitter">
<a rel="nofollow" data-shared="sharing-twitter-2247" class="share-twitter sd-button share-icon no-text" href="http://usrlocal.com/2013/05/puppet-error-could-not-retrieve-local-facts-undefined-method-kernel_fact_value/?share=twitter" target="_blank" title="Click to share on Twitter"><span></span><span class="sharing-screen-reader-text">Click to share on Twitter (Opens in new window)</span></a>
</li>
<li class="share-email">
<a rel="nofollow" data-shared="" class="share-email sd-button share-icon no-text" href="http://usrlocal.com/2013/05/puppet-error-could-not-retrieve-local-facts-undefined-method-kernel_fact_value/?share=email" target="_blank" title="Click to email this to a friend"><span></span><span class="sharing-screen-reader-text">Click to email this to a friend (Opens in new window)</span></a>
</li>
<li class="share-end">
</li>
</ul>
</div>