Issue #16770 has been updated by aric gardner.
Status changed from Closed to Re-opened
Same error here, fresh install of puppet master on a virtual machine (for the
purpose of testing 3.0.x) Just running puppetmaster from webrick as there is no
need for scale while testing
Note: Puppet runs as expected if I disable storeconfigs
root@puppet:/etc/puppet# puppet master --debug --no-daemonize --verbose
<snip>
Error: Cached catalog for pgmaster failed: Could not autoload
puppet/indirector/catalog/active_record: uninitialized constant ActiveRecord
Error: Could not autoload puppet/indirector/facts/active_record:
uninitialized constant ActiveRecord
<snip>
OS
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"
Sources.list
# Puppetlabs products
deb http://apt.puppetlabs.com precise main
deb-src http://apt.puppetlabs.com precise main
Installed packages
ii facter 1.6.13-1puppetlabs1 Ruby
module for collecting simple facts about a host operating system
ii hiera 1.1.0-1puppetlabs1 A simple
pluggable Hierarchical Database.
ii puppet 3.0.1-1puppetlabs1
Centralized configuration management - agent startup and compatibility scripts
ii puppet-common 3.0.1-1puppetlabs1
Centralized configuration management
ii puppetlabs-release 1.0-5 "Package
to install Puppet Labs gpg key and apt repo"
ii puppetmaster 3.0.1-1puppetlabs1
Centralized configuration management - master startup and compatibility scripts
ii puppetmaster-common 3.0.1-1puppetlabs1 Puppet
master common scripts
ii libaugeas-ruby1.8 0.3.0-1.1ubuntu4 Augeas
bindings for the Ruby language
ii libjson-ruby 1.6.3-1
Transitional package for ruby-json
ii libruby 4.8
Transitional package for libruby1.8
ii libruby1.8 1.8.7.352-2ubuntu1.1 Libraries
necessary to run Ruby 1.8
ii libshadow-ruby1.8 1.4.1-8build1 Interface
of shadow password for Ruby 1.8
ii ruby 4.8
Transitional package for ruby1.8
ii ruby-json 1.6.3-1 JSON
library for Ruby
ii ruby1.8 1.8.7.352-2ubuntu1.1
Interpreter of object-oriented scripting language Ruby 1.8
Installing libactiverecord-ruby
root@puppet:/# apt-get install libactiverecord-ruby
root@puppet:/etc/puppet# puppet master --debug --no-daemonize --verbose
<snip>
Error: no such file to load -- mysql
Debug: No plugins found in subpath '/etc/puppet/modules/rabbitmq/lib' (file
/ directory does not exist)
Debug: No plugins found in subpath
'/etc/puppet/modules/auto_update_security/lib' (file / directory does not exist)
Debug: No plugins found in subpath '/etc/puppet/modules/redis/lib' (file /
directory does not exist)
Debug: No plugins found in subpath
'/etc/puppet/modules/standardize_admin_environment/lib' (file / directory does
not exist)
Debug: No plugins found in subpath '/etc/puppet/modules/iptables/lib' (file
/ directory does not exist)
Debug: No plugins found in subpath '/etc/puppet/modules/keepalived/lib'
(file / directory does not exist)
Info: Connecting to mysql database: puppet
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql.
<snip>
So...
apt-get install ruby gems
88MB later
root@puppet:/etc/puppet# gem install mysql
Fetching: mysql-2.8.1.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcclib
--without-mygcclib
--with-mysqlclientlib
--without-mysqlclientlib
Gem files will remain installed in /var/lib/gems/1.8/gems/mysql-2.8.1 for
inspection.
Results logged to
/var/lib/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
Being friday afternoon, I'm going to commit this report and pick it up again on
monday.
----------------------------------------
Bug #16770: "uninitialized constant ActiveRecord" on puppet 3 w/ storedconfigs
https://projects.puppetlabs.com/issues/16770#change-75072
Author: eric sorenson
Status: Re-opened
Priority: Normal
Assignee:
Category:
Target version: 3.0.x
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 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.