Error 400 on SERVER: Could not autoload active_record: uninitialized constant ActiveRecord

4,072 views
Skip to first unread message

Joehillen

unread,
Dec 21, 2011, 1:17:11 PM12/21/11
to puppet...@googlegroups.com
I'm trying to setup a new puppet setup (master and clients). I installed puppet v2.7.9 from the apt.puppetlabs.com repo. I setup async_storeconfigs with mysql and stompserver.

When I try to run, puppet agent --test --noop, on the client I get this message.

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not autoload active_record: uninitialized constant ActiveRecord

There are on actual storeconfigs written yet.

I saw a similar error to this on the mailing list, but that was from someone who installed from gems.

Thanks,

-Joe

Joehillen

unread,
Dec 21, 2011, 1:26:13 PM12/21/11
to puppet...@googlegroups.com
Btw, this is Ubuntu Server 10.04.3 LTS
Message has been deleted

Joehillen

unread,
Dec 21, 2011, 2:53:55 PM12/21/11
to puppet...@googlegroups.com
Ok, I solved the issue.

It took some doing because apparently puppet doesn't work with the newest version of activerecord.

http://projects.puppetlabs.com/issues/867

Here are the steps that ended up working:

apt-get install rubygems
gem install activerecord --version 3.0.11
apt-get install libmysqlclient15-dev
gem install mysql

I had to disable async_storeconfig because stomp gave an error and I had never used it before:

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not write ***** to queue: undefined method `publish' for #<Stomp::Client:0x7f86042f8280>
Instance::#<Puppet::Resource::Catalog:0x7f8604546618>
client : #<Puppet::Util::Queue::Stomp:0x7f860447b080>

Ryan Bowlby

unread,
Feb 8, 2012, 6:28:49 PM2/8/12
to puppet...@googlegroups.com
Thank you, you just added hours to my life! 3.0.11 works perfect. Perhaps the puppetlabs docs should make note of this?

Sam Kottler

unread,
Aug 21, 2012, 7:34:47 AM8/21/12
to puppet...@googlegroups.com
Storeconfigs use activerecord as an ORM.

-Sama

On Tue, Aug 21, 2012 at 7:30 AM, NewpTone <yux...@gmail.com> wrote:

Thx,this really helps me ,but I wonder why  storeconfig setting will cause the error ?
在 2011年12月22日星期四UTC+8上午3时53分55秒,Joehillen写道:

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/zmMWfOpsodcJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Peter Romfeld

unread,
Jan 15, 2014, 12:20:53 AM1/15/14
to puppet...@googlegroups.com
THANKS so much :)
Reply all
Reply to author
Forward
0 new messages