Hi all, my pre-commit script (copied from http://www.reductivelabs.com/trac/puppet/wiki/PuppetVersionControl) fails with error: $ svn ci -m "nodo td007 a prod" Sending manifests/nodes.pp Transmitting file data .svn: Commit failed (details follow): svn: ''pre-commit'' hook failed with error output: /usr/lib/ruby/site_ruby/1.8/puppet/defaults.rb:102:in `handle'': private method `split'' called for nil:NilClass (NoMethodError) which is a know issue according to same link mentioned above: If you get errors like this when committing: /usr/lib/ruby/site_ruby/1.8/puppet/defaults.rb:102:in `handle'': private method `split'' called for nil:NilClass (NoMethodError) It''s because the PATH environmental variable doesn''t exist. It doesn''t matter what it is, but puppet wants it to be there. Try adding PATH="" somewhere in the top of the pre-commit script. So, I''ve defined PATH var in both pre-commit and manifestch scripts but the errors is still there. Anyone knows how to solved this issue? is PATH var the only problem? TIA, Arnau --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Thu, Jul 2, 2009 at 7:32 AM, Arnau Bria<arnaubria@pic.es> wrote:> > Hi all, > > my pre-commit script (copied from > http://www.reductivelabs.com/trac/puppet/wiki/PuppetVersionControl) > fails with error: > > > $ svn ci -m "nodo td007 a prod" > Sending manifests/nodes.pp > Transmitting file data .svn: Commit failed (details follow): > svn: ''pre-commit'' hook failed with error output: > /usr/lib/ruby/site_ruby/1.8/puppet/defaults.rb:102:in `handle'': private method `split'' called for nil:NilClass (NoMethodError) > > > which is a know issue according to same link mentioned above:FWIW, it''s also just been patched recently: http://projects.reductivelabs.com/issues/2369> > If you get errors like this when committing: > > /usr/lib/ruby/site_ruby/1.8/puppet/defaults.rb:102:in `handle'': private method `split'' called for nil:NilClass (NoMethodError) > > It''s because the PATH environmental variable doesn''t exist. It doesn''t matter what it is, but puppet wants it to be there. Try adding PATH="" somewhere in the top of the pre-commit script. > > So, I''ve defined PATH var in both pre-commit and manifestch scripts but > the errors is still there. > > > Anyone knows how to solved this issue? is PATH var the only problem? > > TIA, > Arnau > > > >-- 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 -~----------~----~----~----~------~----~------~--~---
On Thu, 2 Jul 2009 07:54:44 -0700 Nigel Kersten wrote: Hi Nigel, [...]> FWIW, it''s also just been patched recently: > > http://projects.reductivelabs.com/issues/2369Bug is about Puppet 0.25, I''m on puppet-server-0.24.8-1.el5.1 x86_64. It stopped working when I migrate my server from 386 to CentOS 5.2 x86_64, maybe arch related? Thanks for your reply, Cheers, Arnau --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Thu, Jul 2, 2009 at 8:13 AM, Arnau Bria<arnaubria@pic.es> wrote:> > On Thu, 2 Jul 2009 07:54:44 -0700 > Nigel Kersten wrote: > > Hi Nigel, > > [...] >> FWIW, it''s also just been patched recently: >> >> http://projects.reductivelabs.com/issues/2369 > > Bug is about Puppet 0.25, I''m on puppet-server-0.24.8-1.el5.1 x86_64. > > It stopped working when I migrate my server from 386 to CentOS 5.2 > x86_64, maybe arch related?I''m not sure how your distro change may have affected your PATH, but the same patch will apply cleanly to 0.24.x as well if you wish to implement it. The bug also applies to 0.24.x, it''s just that we''re supposedly not getting any more 0.24.x releases, so future patches are being applied to 0.25.x> > Thanks for your reply, > Cheers, > Arnau > > > >-- 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 -~----------~----~----~----~------~----~------~--~---
On Thu, 2 Jul 2009 08:21:41 -0700 Nigel Kersten wrote: Hi, [...]> I''m not sure how your distro change may have affected your PATH, but > the same patch will apply cleanly to 0.24.x as well if you wish to > implement it.ok, thanks.> The bug also applies to 0.24.x, it''s just that we''re supposedly not > getting any more 0.24.x releases, so future patches are being applied > to 0.25.xThanks for the explanation, going to try. Cheers, Arnau --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Thu, 2 Jul 2009 08:21:41 -0700 Nigel Kersten wrote:> I''m not sure how your distro change may have affected your PATH, but > the same patch will apply cleanly to 0.24.x as well if you wish to > implement it.worked fine. Many thanks, Arnau --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---