Issue #4028 has been updated by Brian Pitts.

I am also experiencing this issue on RHEL4

with the rpms
ruby-1.8.5-5.8
puppet 0.24.8-4
sqlite-3.3.6-0.3

and the gems
activerecord (2.2.2)
sqlite3-ruby (1.2.4).

The exact error is

/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/sqlite3_adapter.rb:29:in
 `table_structure': Could not find table 'hosts' 
(ActiveRecord::StatementInvalid)

I tried upgrading to activerecord (2.3.8) but now have a different error.

DEPRECATION WARNING: metaclass is deprecated and will be removed from Rails 2.3 
(use singleton_class instead). (called from meta_eval at 
/usr/lib64/site_ruby/1.8/puppet/util/metaid.rb:4)
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:1994:in
 `method_missing': undefined method `establish_connection' for 
ActiveRecord::Base:Class (NoMethodError)
        from /usr/share/puppet/ext/puppetstoredconfigclean.rb:75

I cannot upgrade sqlite3-ruby because 1.3.4 is the latest version that works 
with ruby 1.8.5.
----------------------------------------
Bug #4028: puppetstoredconfigclean not working with sqlite3
http://projects.puppetlabs.com/issues/4028

Author: Gonçalo Queirós
Status: Investigating
Priority: Normal
Assigned to: Brice Figureau
Category: 
Target version: 
Affected version: 0.25.5
Keywords: 
Branch: 


Hi there. I've tried to use the puppet/ext/puppetstoredconfigclean.rb file to 
clean some exported resources but i got the following error:

/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:29:in
 `table_structure': Could not find table 'hosts' 
(ActiveRecord::StatementInvalid)

I don't understand much of ruby, but looking at the script provided on 
http://projects.puppetlabs.com/issues/1886, i noted that the line 
"args[:database] = "puppet" unless not args[:database].to_s.empty?" is the main 
big difference.

If i comment this line on the puppetstoredconfigclean.rb file the scripts 
executes fine.
Thanks


-- 
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