Issue #16770 has been updated by Patrick Hemmer.

Ok, so I finally took the time to upgrade from 2.7 to 3.1, and I did find the 
cause of this issue.

The cause is a bug in regards to the agent storing the catalog and fact cache. 
It looks like the default caching type changed between 2.7 and 3.0, and both 
catalogs and facts are cached by the agent in a local database. Since my system 
does not have the ActiveRecord or ActiveSupport gems, puppet was failing when 
trying to access the cache.
After adding the following entries to the `routes.yaml` file, everything 
started working.

    agent:
      facts:
        cache: yaml
      catalog:
        cache: json
    

Additionally the man page for `puppet.conf` states that 
`catalog_cache_terminus` controls how the catalog is stored. This is incorrect. 
Changing this parameter has absolutely no effect. `puppet agent --configprint 
catalog_cache_terminus` always shows `store_configs`, even if I set it to 
something else (like json). The only way to update the cache type was using 
`routes.yaml`.
----------------------------------------
Bug #16770: "uninitialized constant ActiveRecord" on puppet 3 w/ storedconfigs
https://projects.puppetlabs.com/issues/16770#change-82999

Author: eric sorenson
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 3.0.0
Keywords: 
Branch: 


Two users on the mailing list reported the same error loading active record on 
Telly: https://groups.google.com/d/topic/puppet-users/3tC0gYg9XA0/discussion

One is on EL6, the other Ubuntu 10.4

<pre>
Yesterday my puppetmaster and nodes got upgraded to puppet-3.0.0. 

Since then, all puppet runs have been failing with this error: 

Error: Could not retrieve catalog from remote server: Error 400 on 
SERVER: Could not autoload puppet/indirector/node/active_record: 
uninitialized constant ActiveRecord 


My colleague and I have put a few hours into trying to work out what's 
wrong. rubygem-activerecord-2.1.1-2.el6.noarch is installed from the 
puppetlabs RPM repo. We've reinstalled all components but made no progress. 
</pre>



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to