Hello, I can''t get storedconfigs to work, puppetmaster keeps complaining about "missing Rails". Fact is I do have rails installed, I even have a few rails apps running fine with a mysql backend in passenger. I have tried to localise a possible error by starting puppetmasterd with debug, but nothing obvious there, no help either in the logs. I also tried setting RUBYLIB to the gempath and even the paths to the gems, but that didn''t help either. irb also is quite happy with the active record invocations puppet uses: """ irb(main):001:0> require ''rubygems'' => true irb(main):002:0> require ''active_record'' => true """ Here''s the important part of the puppet.conf: """ storeconfigs = true dbadapter = mysql dbuser = puppet dbpassword = xxxxxxxxxxxxxx dbserver = localhost dbsocket = /var/lib/mysql/mysql.sock """ gem also lists rails and active_record as present: """ *** LOCAL GEMS *** actionmailer (2.3.2, 2.1.2) actionpack (2.3.2, 2.1.2) activerecord (2.3.2, 2.1.2) activeresource (2.3.2, 2.1.2) activesupport (2.3.2, 2.1.2) fastthread (1.0.7, 1.0.1) haml (2.0.9) passenger (2.1.2) rack (1.0.0, 0.9.1) rails (2.3.2, 2.1.2) rake (0.8.5, 0.8.3) """ Both sides are running a suse flavour and have puppet, resp. puppetmaster, at version 0.24.8. Any help to get storedconfigs going would be great, thanks! Felix --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Nigel Kersten
2009-Jun-29 15:52 UTC
[Puppet Users] Re: Unable to get storedconfigs to work
On Mon, Jun 29, 2009 at 8:23 AM, Felix Schäfer<schaefer@cypres-it.com> wrote:> > Hello, > > I can''t get storedconfigs to work, puppetmaster keeps complaining > about "missing Rails". Fact is I do have rails installed, I even have > a few rails apps running fine with a mysql backend in passenger. I > have tried to localise a possible error by starting puppetmasterd with > debug, but nothing obvious there, no help either in the logs. I also > tried setting RUBYLIB to the gempath and even the paths to the gems, > but that didn''t help either. irb also is quite happy with the active > record invocations puppet uses:Do you possibly have multiple versions installed? I ran into that issue, and this comment from this bug offered me a workaround. http://projects.reductivelabs.com/issues/2041#note-22> > """ > irb(main):001:0> require ''rubygems'' > => true > irb(main):002:0> require ''active_record'' > => true > """ > > Here''s the important part of the puppet.conf: > """ > storeconfigs = true > dbadapter = mysql > dbuser = puppet > dbpassword = xxxxxxxxxxxxxx > dbserver = localhost > dbsocket = /var/lib/mysql/mysql.sock > """ > > gem also lists rails and active_record as present: > """ > *** LOCAL GEMS *** > > actionmailer (2.3.2, 2.1.2) > actionpack (2.3.2, 2.1.2) > activerecord (2.3.2, 2.1.2) > activeresource (2.3.2, 2.1.2) > activesupport (2.3.2, 2.1.2) > fastthread (1.0.7, 1.0.1) > haml (2.0.9) > passenger (2.1.2) > rack (1.0.0, 0.9.1) > rails (2.3.2, 2.1.2) > rake (0.8.5, 0.8.3) > """ > > Both sides are running a suse flavour and have puppet, resp. > puppetmaster, at version 0.24.8. > > Any help to get storedconfigs going would be great, thanks! > > Felix > > > >-- Nigel Kersten nigelk@google.com System Administrator Google, Inc. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Felix Schäfer
2009-Jun-29 19:01 UTC
[Puppet Users] Re: Unable to get storedconfigs to work
Hello Nigel, Am 29.06.2009 um 17:52 schrieb Nigel Kersten:> Do you possibly have multiple versions installed?I did, deleted all but the newest, no change. Felix --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Roberto Moral
2009-Jun-30 22:45 UTC
[Puppet Users] Re: Unable to get storedconfigs to work
Puppet gets confused when multiple version of the gem are installed, if I remember correctly you need 2.2.2 version of the gems, 2.3 wont work. On Monday,Jun 29, 2009, at Monday,Jun 29, 20093:01 PM, Felix Schäfer wrote:> > Hello Nigel, > > Am 29.06.2009 um 17:52 schrieb Nigel Kersten: > >> Do you possibly have multiple versions installed? > > I did, deleted all but the newest, no change. > > Felix > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I''ve gotten it working with 2.3.2... But I did have to put in the require lines as was mentioned in a previous message... $ gem list | grep rails rails (2.3.2) Greg On Jul 1, 8:45 am, Roberto Moral <tel...@gmail.com> wrote:> Puppet gets confused when multiple version of the gem are installed, > if I remember correctly you need 2.2.2 version of the gems, 2.3 wont > work. > > On Monday,Jun 29, 2009, at Monday,Jun 29, 20093:01 PM, Felix Schäfer > wrote: > > > > > Hello Nigel, > > > Am 29.06.2009 um 17:52 schrieb Nigel Kersten: > > >> Do you possibly have multiple versions installed? > > > I did, deleted all but the newest, no change. > > > Felix--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Felix Schäfer
2009-Jul-01 07:56 UTC
[Puppet Users] Re: Unable to get storedconfigs to work
Am 01.07.2009 um 03:24 schrieb Greg:> I''ve gotten it working with 2.3.2... But I did have to put in the > require lines > as was mentioned in a previous message...I must say that I''m not very happy with this solution as it seems more hackish than anything, but it does work when adding the few require lines. Anyhow, this should be fixed to work with the current stable rails, shall I reopen #2041 or file a new bug? Felix --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Might as well... Its an easy enough fix... So long as it doesn''t break older versions of rails... Greg On Jul 1, 5:56 pm, Felix Schäfer <schae...@cypres-it.com> wrote:> Am 01.07.2009 um 03:24 schrieb Greg: > > > I''ve gotten it working with 2.3.2... But I did have to put in the > > require lines > > as was mentioned in a previous message... > > I must say that I''m not very happy with this solution as it seems more > hackish than anything, but it does work when adding the few require > lines. Anyhow, this should be fixed to work with the current stable > rails, shall I reopen #2041 or file a new bug? > > Felix--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---