russellneufeld
2010-Mar-04 21:26 UTC
[Puppet Users] Exception in puppetstoredconfigclean.rb
Hi all, I need to decommission two machines which are configured under puppet. I attempted to use the puppetstoredconfigclean.rb script provided in the ext dir, and got the following exception. Any suggestions? Thanks in advance, Russ root@monitor:~# ./puppetstoredconfigclean.rb www3.example.com /var/lib/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) from /var/lib/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ core_ext/object/misc.rb:39:in `returning'' from /var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ connection_adapters/sqlite3_adapter.rb:28:in `table_structure'' from /var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ connection_adapters/sqlite_adapter.rb:189:in `columns'' from /var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1220:in `columns'' from /var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1233:in `column_names'' from /var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1246:in `column_methods_hash'' from /var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1860:in `all_attributes_exists?'' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `all?'' from /var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1860:in `each'' from /var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1860:in `all?'' from /var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1860:in `all_attributes_exists?'' from /var/lib/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ base.rb:1778:in `method_missing'' from ./puppetstoredconfigclean.rb:78 from ./puppetstoredconfigclean.rb:77:in `each'' from ./puppetstoredconfigclean.rb:77 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
russellneufeld
2010-Mar-04 22:19 UTC
[Puppet Users] Re: Exception in puppetstoredconfigclean.rb
Found this: http://pastie.org/192264 Seems to work. I''m all set. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.