Issue #4413 has been updated by Gary Larizza.

I will pull down a copy of this branch and test it out.  It looks like a pretty 
easy fix.  Thanks guys.


----------------------------------------
Bug #4413: Cannot save facts to the code store
http://projects.puppetlabs.com/issues/4413

Author: Gary Larizza
Status: Ready for Testing
Priority: Normal
Assigned to: 
Category: 
Target version: 0.25.6
Affected version: 0.25.5
Keywords: 
Branch: bug/0.25.x/4413


I've got a puppetmaster running .25.4 on a G5 Xserve (running 10.5.8 Server) 
and tried to update it to .25.5 today.  When I do that, I get a message 
whenever a client tries to make a puppet run:

"err: Could not retrieve catalog from remote server: Error 400 on SERVER: You 
cannot save facts to the code store; it is only used for getting facts from 
Facter
err: Could not retrieve catalog; skipping run"

The full run is here --> http://pastie.org/1067398

The message comes in right after custom facts are loaded.  It appears to come 
from the following code in lib/puppet/indirector/facts/facter.rb --> 

    def save(facts)
      raise Puppet::DevError, "You cannot save facts to the code store; it is 
only used for getting facts from Facter"
    end

If I revert the machine back to .25.4 (remove everything in 
/Library/Ruby/Site/1.8/puppet along with the puppet.rb file, and all puppet 
binaries in /usr/bin and /usr/sbin), puppet runs work fine.

The puppet.conf on my server looks like this:

    [main]
    external_nodes = /usr/bin/rubyexternalnode.rb
    node_terminus = exec
    pluginsync = true
    libdir = $vardir/lib

    [puppetmasterd]
    ssl_client_header = SSL_CLIENT_S_DN
    ssl_client_verify_header = SSL_CLIENT_VERIFY
    reports = puppet_dashboard
    autosign = true

I'm running Passenger, but I get the same message if I flip back to Webrick 
running puppetmasterd from the command line.  All my custom facts are in 
/etc/puppet/modules/custom/lib/facter.  I've even tried removing all custom 
facts, but that doesn't change anything.  

Finally, I tried setting up a 10.6.4 box running .25.5 - I get the same error 
with a minimal setup (single class file in a manifest that installs a single 
package).  If I revert this new demo box back to .25.4 it runs fine.  

Ruby Versions on both boxes:

10.5.8 Server Machine: 
    bash-3.2# ruby --version
    ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]

10.6.4 Server Machine:
    bash-3.2# ruby --version
    ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to