Robin Lee Powell
2009-Mar-23 21:54 UTC
[Puppet Users] Can anyone else suggest things to do WRT bug 2041?
I''ve been unable to use storeconfigs for A While Now, and it''s not just me anymore; see http://projects.reductivelabs.com/issues/2041 Does anyone have any suggestions of what to try next? -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
James Turnbull
2009-Mar-24 08:52 UTC
[Puppet Users] Re: Can anyone else suggest things to do WRT bug 2041?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robin Lee Powell wrote:> > I''ve been unable to use storeconfigs for A While Now, and it''s not > just me anymore; see http://projects.reductivelabs.com/issues/2041 > > Does anyone have any suggestions of what to try next?Robin I presume you''ve read: http://projects.reductivelabs.com/issues/2102 Regards James Turnbull - -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJyJ9o9hTGvAxC30ARArz8AJwJeMXUDPTJNoyFIdgqjPb96OBjmwCbBAHS lT51awR1y63E1pwyOyGri0k=tSyJ -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brice Figureau
2009-Mar-24 08:57 UTC
[Puppet Users] Re: Can anyone else suggest things to do WRT bug 2041?
On Mon, 2009-03-23 at 14:54 -0700, Robin Lee Powell wrote:> > I''ve been unable to use storeconfigs for A While Now, and it''s not > just me anymore; see http://projects.reductivelabs.com/issues/2041 > > Does anyone have any suggestions of what to try next?Are you sure you are running Rails 2.0 or 2.1 ? IMHO, the "synchronize" error you get is not possible with those versions of rails, since ActiveRecord::ConnectionAdapters::ConnectionPool is a class that appeared in Rails since version 2.2. I think you have Rails > 2.1 (ie 2.2 or 2.3) installed as gems and that might be part of your issue. I once tested storedconfigs with rails 2.2 on macosx and it was working. Maybe puppet is not (yet) compatible with 2.3 (I''ll do some tests later this week). My advise would be for you to check exactly what rails version you are really using (ie gem, package and so on), and from there take the necessary steps to remove the incompatbile versions (and on debian lenny use the rails package). Hope that helps, -- Brice Figureau My Blog: http://www.masterzen.fr/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Robin Lee Powell
2009-Mar-24 17:18 UTC
[Puppet Users] Re: Can anyone else suggest things to do WRT bug 2041?
On Tue, Mar 24, 2009 at 07:52:56PM +1100, James Turnbull wrote:> > Robin Lee Powell wrote: > > > > I''ve been unable to use storeconfigs for A While Now, and it''s > > not just me anymore; see > > http://projects.reductivelabs.com/issues/2041 > > > > Does anyone have any suggestions of what to try next? > > Robin > > I presume you''ve read: > > http://projects.reductivelabs.com/issues/2102I had not, no. I''m not on Ubuntu, though, so I have no idea how that helps me? -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Robin Lee Powell
2009-Mar-24 17:23 UTC
[Puppet Users] Re: Can anyone else suggest things to do WRT bug 2041?
On Tue, Mar 24, 2009 at 10:18:12AM -0700, Robin Lee Powell wrote:> > On Tue, Mar 24, 2009 at 07:52:56PM +1100, James Turnbull wrote: > > > > Robin Lee Powell wrote: > > > > > > I''ve been unable to use storeconfigs for A While Now, and it''s > > > not just me anymore; see > > > http://projects.reductivelabs.com/issues/2041 > > > > > > Does anyone have any suggestions of what to try next? > > > > Robin > > > > I presume you''ve read: > > > > http://projects.reductivelabs.com/issues/2102 > > I had not, no. I''m not on Ubuntu, though, so I have no idea how > that helps me?To expand on that, the patch affects a line like the following, adding Ubuntu to it. My /usr/local/lib/site_ruby/1.8/puppet/feature/rails.rb has such a line (that''s where I''m copying it from). if Facter["operatingsystem"].value == "Debian" and FileTest.exists?("/usr/share/rails") count = 0 Dir.entries("/usr/share/rails").each do |dir| -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Robin Lee Powell
2009-Mar-24 17:25 UTC
[Puppet Users] Re: Can anyone else suggest things to do WRT bug 2041?
On Tue, Mar 24, 2009 at 09:57:31AM +0100, Brice Figureau wrote:> > On Mon, 2009-03-23 at 14:54 -0700, Robin Lee Powell wrote: > > > > I''ve been unable to use storeconfigs for A While Now, and it''s > > not just me anymore; see > > http://projects.reductivelabs.com/issues/2041 > > > > Does anyone have any suggestions of what to try next? > > Are you sure you are running Rails 2.0 or 2.1 ?As I said in the ticket, I know almost nothing about Ruby, so I don''t know how to tell. All I know is: $ dpkg -l | grep -i rails ii rails 2.0.1-2 MVC ruby based framework geared for web application developme> I think you have Rails > 2.1 (ie 2.2 or 2.3) installed as gems and that > might be part of your issue.gem list | grep -i rails gives no output at all.> My advise would be for you to check exactly what rails version you > are really using (ie gem, package and so on), and from there take > the necessary steps to remove the incompatbile versions (and on > debian lenny use the rails package).I''m actually using an older-than-lenny package. If you have any other suggestions as to how I can look for a new rails, I''d love to hear them. -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Robin Lee Powell
2009-Mar-24 17:28 UTC
[Puppet Users] Re: Can anyone else suggest things to do WRT bug 2041?
On Mon, Mar 23, 2009 at 02:54:10PM -0700, Robin Lee Powell wrote:> > > I''ve been unable to use storeconfigs for A While Now, and it''s not > just me anymore; see http://projects.reductivelabs.com/issues/2041 > > Does anyone have any suggestions of what to try next?Shortly after I sent this, the following was added to the ticket: I upgraded to 0.24.8 but it made no difference. But adding this to the top of lib/puppet/rails.rb fixed it. (I know pretty much no Ruby, so this was hacking at its rawest). require ''active_record'' require ''active_support'' require ''active_record/base'' require ''active_record/associations'' I''m still on 0.24.7 (I don''t have time to do the upgrade today), but adding those require lines to /usr/local/lib/site_ruby/1.8/puppet/feature/rails.rb /usr/local/lib/site_ruby/1.8/puppet/rails.rb did *NOT* help me; I still get: Restarting puppet configuration management tool master server/usr/lib/ruby/1.8/active_record/connection_adapters/abstract/connection_pool.rb:218: undefined method `synchronize'' for ActiveRecord::ConnectionAdapters::ConnectionPool:Class (NoMethodError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' from /usr/lib/ruby/1.8/active_support/dependencies.rb:509:in `require'' [snip] when I try to start the master, and it doesn''t start. -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Robin Lee Powell
2009-Mar-24 17:30 UTC
[Puppet Users] Re: Can anyone else suggest things to do WRT bug 2041?
On Tue, Mar 24, 2009 at 10:28:28AM -0700, Robin Lee Powell wrote:> > On Mon, Mar 23, 2009 at 02:54:10PM -0700, Robin Lee Powell wrote: > > > > > > I''ve been unable to use storeconfigs for A While Now, and it''s not > > just me anymore; see http://projects.reductivelabs.com/issues/2041 > > > > Does anyone have any suggestions of what to try next? > > Shortly after I sent this, the following was added to the ticket: > > I upgraded to 0.24.8 but it made no difference. But adding this > to the top of lib/puppet/rails.rb fixed it. (I know pretty much > no Ruby, so this was hacking at its rawest). > > require ''active_record'' > require ''active_support'' > require ''active_record/base'' > require ''active_record/associations'' > > I''m still on 0.24.7 (I don''t have time to do the upgrade today), but > adding those require lines to > > /usr/local/lib/site_ruby/1.8/puppet/feature/rails.rb > /usr/local/lib/site_ruby/1.8/puppet/rails.rb > > did *NOT* help me; I still get: > > Restarting puppet configuration management tool master server/usr/lib/ruby/1.8/active_record/connection_adapters/abstract/connection_pool.rb:218: undefined method `synchronize'' for ActiveRecord::ConnectionAdapters::ConnectionPool:Class (NoMethodError) > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > from /usr/lib/ruby/1.8/active_support/dependencies.rb:509:in `require'' > [snip] > > when I try to start the master, and it doesn''t start.Erm, sorry, to be specific: that''s *with* "storedconfigs = true". With it =false, I get: Restarting puppet configuration management tool master serverFailed to load feature test for rails: undefined method `synchronize'' for ActiveRecord::ConnectionAdapters::ConnectionPool:Class but it runs. -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brice Figureau
2009-Mar-24 18:33 UTC
[Puppet Users] Re: Can anyone else suggest things to do WRT bug 2041?
On 24/03/09 18:28, Robin Lee Powell wrote:> On Mon, Mar 23, 2009 at 02:54:10PM -0700, Robin Lee Powell wrote: >> >> I''ve been unable to use storeconfigs for A While Now, and it''s not >> just me anymore; see http://projects.reductivelabs.com/issues/2041 >> >> Does anyone have any suggestions of what to try next?[snipped]> > did *NOT* help me; I still get: > > Restarting puppet configuration management tool master server/usr/lib/ruby/1.8/active_record/connection_adapters/abstract/connection_pool.rb:218: undefined method `synchronize'' for ActiveRecord::ConnectionAdapters::ConnectionPool:Class (NoMethodError) > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > from /usr/lib/ruby/1.8/active_support/dependencies.rb:509:in `require''Note: /usr/lib/ruby/1.8/active_record is not where debian rails package installs its files. The debian rails package installs into: /usr/share/rails I maintain your box has several rails version installed and that certainly is the source of your issues. This means to me that the current rails version (certainly a 2.2) that your puppetmaster is using is badly installed or corrupted. synchronize is a Module method that is "installed" by active support v2.2. I _think_ your ruby installation contains a mix and match of different version of the vairous active_ components. I''ll tend to suggest you to rm -rf /usr/lib/ruby/1.8/active_* just to see if that helps (take a backup before of course). Warning: I''m not responsible of any damage to your server or any other application running on this server. Hope that helps, -- Brice Figureau Days of Wonder http://www.daysofwonder.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Robin Lee Powell
2009-Mar-24 18:40 UTC
[Puppet Users] Re: Can anyone else suggest things to do WRT bug 2041?
On Tue, Mar 24, 2009 at 07:33:50PM +0100, Brice Figureau wrote:> I''ll tend to suggest you to rm -rf /usr/lib/ruby/1.8/active_* just > to see if that helps (take a backup before of course). Warning: > I''m not responsible of any damage to your server or any other > application running on this server.I mv''d it, actually, and that seems to have done the trick. Thank you so much! -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brice Figureau
2009-Mar-24 18:50 UTC
[Puppet Users] Re: Can anyone else suggest things to do WRT bug 2041?
On 24/03/09 19:40, Robin Lee Powell wrote:> On Tue, Mar 24, 2009 at 07:33:50PM +0100, Brice Figureau wrote: >> I''ll tend to suggest you to rm -rf /usr/lib/ruby/1.8/active_* just >> to see if that helps (take a backup before of course). Warning: >> I''m not responsible of any damage to your server or any other >> application running on this server. > > I mv''d it, actually, and that seems to have done the trick. Thank > you so much!Cool! Welcome to storedconfigs-land :-) -- Brice Figureau Days of Wonder http://www.daysofwonder.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Robin Lee Powell
2009-Apr-14 18:46 UTC
[Puppet Users] libactiverecord-ruby1.8 on Debian makes fail.
On Tue, Mar 24, 2009 at 07:50:10PM +0100, Brice Figureau wrote:> > On 24/03/09 19:40, Robin Lee Powell wrote: > > On Tue, Mar 24, 2009 at 07:33:50PM +0100, Brice Figureau wrote: > >> I''ll tend to suggest you to rm -rf /usr/lib/ruby/1.8/active_* > >> just to see if that helps (take a backup before of course). > >> Warning: I''m not responsible of any damage to your server or > >> any other application running on this server. > > > > I mv''d it, actually, and that seems to have done the trick. > > Thank you so much! > > Cool! > Welcome to storedconfigs-land :-)And now it''s broken again. 0.o On the client: info: Retrieving plugins err: Could not retrieve catalog: Rails is missing; cannot store configurations warning: Not using cache on failed catalog On the master, in debug mode: err: Rails is missing; cannot store configurations err: Rails is missing; cannot store configurations No other information is given. Looks like the problem was that I have the package "libactiverecord-ruby1.8" installed. If I remove that, it wants to remove libsqlite3-ruby1.8 , which isn''t a problem for me; just mentioning in case someone else hits this problem. It seems to me that puppet should be able to still work with libactiverecord-ruby1.8 , though. -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---