Juri Rischel Jensen
2009-May-05 08:28 UTC
[Puppet Users] Help with Passenger-based puppetmaster....
Hi eveyone, I''m struggling with setting up a Passengerbased Puppetmaster. I''ve followed the guidelines on http://reductivelabs.com/trac/puppet/wiki/UsingPassenger and doublechecked the config, but I can''t get it to work properly :-( I''m using Puppet 0.24.8 installed as .deb packages, rack version 0.4.0 (as specified in the UsingPassenger guideline) and Passenger v. 2.1.2. When I launch Apache, it starts up fine, but I can see in my process list, and in my logs, that Rack starts the app, but dies immediately after startup. The only thing I get in my syslog is: [29500]: Starting Rack server for puppet version 0.24.8 In my Apache error.log I get this: [ pid=14946 file=Hooks.cpp:762 time=2009-05-05 10:06:55.992 ]: Initializing Phusion Passenger... [Tue May 05 10:06:56 2009] [notice] Apache/2.2.9 (Debian) mod_ssl/ 2.2.9 OpenSSL/0.9.8g Phusion_Passenger/2.1.2 configured -- resuming normal operations I''ve tried to get some more debug information by setting loglevel to debug in config.ru: Puppet::Util::Log.level = :debug But that doesn''t change a thing. :-( Do any of you have an idea about what could be wrong...? -- Med venlig hilsen/Best regards Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: +45 70 202 407 www.fab-it.dk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Juri Rischel Jensen
2009-May-05 10:00 UTC
[Puppet Users] Re: Help with Passenger-based puppetmaster....
Hi, Just to add some more info, I get this when I visit https://puppet: 8140/: 0 /usr/lib/ruby/1.8/puppet/network/http_server/rack.rb 62 in `initialize'' 1 config.ru 32 in `new'' 2 config.ru 32 3 /var/lib/gems/1.8/gems/passenger-2.1.2/vendor/rack-0.9.1/lib/rack/ builder.rb 29 in `instance_eval'' 4 /var/lib/gems/1.8/gems/passenger-2.1.2/vendor/rack-0.9.1/lib/rack/ builder.rb 29 in `initialize'' 5 config.ru 1 in `new'' 6 config.ru And after changing PassengerLogLevel to 3 I get this in my apache error.log: [ pid=6987 file=ApplicationPoolServerExecutable.cpp:392 time=2009-05-05 11:57:35.26 ]: Client 0x8096fb0: SpawnException occured (with error page) Hmm, I simply can''t figure out what I''m doing wrong... On May 5, 2009, at 10:28 , Juri Rischel Jensen wrote:> Hi eveyone, > > I''m struggling with setting up a Passengerbased Puppetmaster. I''ve > followed the guidelines on http://reductivelabs.com/trac/puppet/wiki/UsingPassenger > and doublechecked the config, but I can''t get it to work properly :-( > > I''m using Puppet 0.24.8 installed as .deb packages, rack version > 0.4.0 (as specified in the UsingPassenger guideline) and Passenger > v. 2.1.2. > > When I launch Apache, it starts up fine, but I can see in my process > list, and in my logs, that Rack starts the app, but dies immediately > after startup. The only thing I get in my syslog is: > > [29500]: Starting Rack server for puppet version 0.24.8 > > In my Apache error.log I get this: > > [ pid=14946 file=Hooks.cpp:762 time=2009-05-05 10:06:55.992 ]: > Initializing Phusion Passenger... > [Tue May 05 10:06:56 2009] [notice] Apache/2.2.9 (Debian) mod_ssl/ > 2.2.9 OpenSSL/0.9.8g Phusion_Passenger/2.1.2 configured -- resuming > normal operations > > I''ve tried to get some more debug information by setting loglevel to > debug in config.ru: > > Puppet::Util::Log.level = :debug > > But that doesn''t change a thing. :-( > > Do any of you have an idea about what could be wrong...? > > > -- > Med venlig hilsen/Best regards > Juri Rischel Jensen > > Fab:IT ApS > Vesterbrogade 50 > DK-1620 København > Tlf: +45 70 202 407 > www.fab-it.dk > > > >-- Med venlig hilsen/Best regards Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: +45 70 202 407 www.fab-it.dk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Juri Rischel Jensen
2009-May-10 11:30 UTC
[Puppet Users] Re: Help with Passenger-based puppetmaster....
Hi everyone, I''m sorry to push for a solution to this problem, but I simply can''t see my way out of this. I know there''s some of you out there running a Passengerbased setup - can you tell me what I do wrong here...? On May 5, 2009, at 10:28 , Juri Rischel Jensen wrote:> Hi eveyone, > > I''m struggling with setting up a Passengerbased Puppetmaster. I''ve > followed the guidelines on http://reductivelabs.com/trac/puppet/wiki/UsingPassenger > and doublechecked the config, but I can''t get it to work properly :-( > > I''m using Puppet 0.24.8 installed as .deb packages, rack version > 0.4.0 (as specified in the UsingPassenger guideline) and Passenger > v. 2.1.2. > > When I launch Apache, it starts up fine, but I can see in my process > list, and in my logs, that Rack starts the app, but dies immediately > after startup. The only thing I get in my syslog is: > > [29500]: Starting Rack server for puppet version 0.24.8 > > In my Apache error.log I get this: > > [ pid=14946 file=Hooks.cpp:762 time=2009-05-05 10:06:55.992 ]: > Initializing Phusion Passenger... > [Tue May 05 10:06:56 2009] [notice] Apache/2.2.9 (Debian) mod_ssl/ > 2.2.9 OpenSSL/0.9.8g Phusion_Passenger/2.1.2 configured -- resuming > normal operations > > I''ve tried to get some more debug information by setting loglevel to > debug in config.ru: > > Puppet::Util::Log.level = :debug > > But that doesn''t change a thing. :-( > > Do any of you have an idea about what could be wrong...? > > > -- > Med venlig hilsen/Best regards > Juri Rischel Jensen > > Fab:IT ApS > Vesterbrogade 50 > DK-1620 København > Tlf: +45 70 202 407 > www.fab-it.dk > > > >-- Med venlig hilsen/Best regards Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: +45 70 202 407 www.fab-it.dk --~--~---------~--~----~------------~-------~--~----~ 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-May-10 23:15 UTC
[Puppet Users] Re: Help with Passenger-based puppetmaster....
How did you install Passenger? What Debian based OS are you on? Are you running Apache worker or prefork mpm? I''ve had some issues getting Passenger 2.1.2 to work with some of these variants where 2.1.1 worked fine. I''ve yet to have time to dig into it properly though. On Sun, May 10, 2009 at 4:30 AM, Juri Rischel Jensen <juri@fab-it.dk> wrote:> Hi everyone, > I''m sorry to push for a solution to this problem, but I simply can''t see my > way out of this. I know there''s some of you out there running a > Passengerbased setup - can you tell me what I do wrong here...? > On May 5, 2009, at 10:28 , Juri Rischel Jensen wrote: > > Hi eveyone, > I''m struggling with setting up a Passengerbased Puppetmaster. I''ve followed > the guidelines on http://reductivelabs.com/trac/puppet/wiki/UsingPassenger > and doublechecked the config, but I can''t get it to work properly :-( > I''m using Puppet 0.24.8 installed as .deb packages, rack version 0.4.0 (as > specified in the UsingPassenger guideline) and Passenger v. 2.1.2. > When I launch Apache, it starts up fine, but I can see in my process list, > and in my logs, that Rack starts the app, but dies immediately after > startup. The only thing I get in my syslog is: > [29500]: Starting Rack server for puppet version 0.24.8 > In my Apache error.log I get this: > [ pid=14946 file=Hooks.cpp:762 time=2009-05-05 10:06:55.992 ]: > Initializing Phusion Passenger... > [Tue May 05 10:06:56 2009] [notice] Apache/2.2.9 (Debian) mod_ssl/2.2.9 > OpenSSL/0.9.8g Phusion_Passenger/2.1.2 configured -- resuming normal > operations > I''ve tried to get some more debug information by setting loglevel to debug > in config.ru: > Puppet::Util::Log.level = :debug > But that doesn''t change a thing. :-( > Do any of you have an idea about what could be wrong...? > > -- > Med venlig hilsen/Best regards > Juri Rischel Jensen > > Fab:IT ApS > Vesterbrogade 50 > DK-1620 København > Tlf: +45 70 202 407 > www.fab-it.dk > > > > > > -- > Med venlig hilsen/Best regards > Juri Rischel Jensen > > Fab:IT ApS > Vesterbrogade 50 > DK-1620 København > Tlf: +45 70 202 407 > www.fab-it.dk > > > > >-- 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 -~----------~----~----~----~------~----~------~--~---
Juri Rischel Jensen
2009-May-11 11:20 UTC
[Puppet Users] Re: Help with Passenger-based puppetmaster....
Hi Nigel Thank you for answering. I''m running Passenger 2.1.2 installed as a gem, on Debian Lenny. I''m using the Apache worker mpm. I''ve tried to get a Passenger setup running once before, around new year, and I couldn''t get it to work then either. I don''t recall what version of Passenger I used unfortunately... Should I try to downgrade my passenger...? All I get in the apache error log right now is: [ pid=6521 file=ApplicationPoolServerExecutable.cpp:392 time=2009-05-11 13:13:13.934 ]: Client 0x8096ec0: SpawnException occured (with error page) And if I visit https://puppet:8140/ manually I get: Error message:private method `warn'' called for Puppet:ModuleException class:NoMethodErrorApplication root:/srv/www/puppet.fab-it.dkBacktrace: # File Line Location 0 /usr/lib/ruby/1.8/puppet/network/http_server/rack.rb 62 in `initialize'' 1 config.ru 32 in `new'' 2 config.ru 32 3 /var/lib/gems/1.8/gems/passenger-2.1.2/vendor/rack-0.9.1/lib/rack/ builder.rb 29 in `instance_eval'' 4 /var/lib/gems/1.8/gems/passenger-2.1.2/vendor/rack-0.9.1/lib/rack/ builder.rb 29 in `initialize'' 5 config.ru 1 in `new'' 6 config.ru It seems like Passenger can''t spawn the Rack application. I''m using rack v. 0.4.0 as described in the UsingPassenger doc. My config.ru is exactly the same as in the doc, so I won''t bother pasting it in here. Do you have any clue to what''s wrong or can you give me some troubleshooting hints...? Thanks in advance. On May 11, 2009, at 01:15 , Nigel Kersten wrote:> How did you install Passenger? > > What Debian based OS are you on? > > Are you running Apache worker or prefork mpm? > > > I''ve had some issues getting Passenger 2.1.2 to work with some of > these variants where 2.1.1 worked fine. I''ve yet to have time to dig > into it properly though.-- Med venlig hilsen/Best regards Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: +45 70 202 407 www.fab-it.dk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ch+git@zeha.at
2009-May-11 22:03 UTC
[Puppet Users] Re: Help with Passenger-based puppetmaster....
Juri, On May 11, 1:20 pm, Juri Rischel Jensen <j...@fab-it.dk> wrote:> And if I visithttps://puppet:8140/manually I get: > > Error message:private method `warn'' called for Puppet:ModuleException > class:NoMethodErrorApplication root:/srv/www/puppet.fab-it.dkBacktrace: > # File Line Location > 0 /usr/lib/ruby/1.8/puppet/network/http_server/rack.rb 62 in > `initialize'' > 1 config.ru 32 in `new'' > 2 config.ru 32 > 3 /var/lib/gems/1.8/gems/passenger-2.1.2/vendor/rack-0.9.1/lib/rack/ > builder.rb 29 in `instance_eval'' > 4 /var/lib/gems/1.8/gems/passenger-2.1.2/vendor/rack-0.9.1/lib/rack/ > builder.rb 29 in `initialize'' > 5 config.ru 1 in `new'' > 6 config.ruSeems like you''ve triggered a bug here. Puppet is trying to tell you that the puppetmaster process is not called "puppetmasterd", but printing the warning fails (because of the bug). You should probably rename the directory which contains config.ru to "puppetmasterd". Christian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Juri Rischel Jensen
2009-May-11 22:13 UTC
[Puppet Users] Re: Help with Passenger-based puppetmaster....
Thank you, Christian - that did it! How the h**l did you guess that, out of that vague error message..? Thanks again, man. Now I can get on with my new setup... On May 12, 2009, at 24:03 , ch+git@zeha.at wrote:> Seems like you''ve triggered a bug here. Puppet is trying to tell you > that the puppetmaster process is not called "puppetmasterd", but > printing the warning fails (because of the bug). You should probably > rename the directory which contains config.ru to "puppetmasterd".-- Med venlig hilsen/Best regards Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: +45 70 202 407 www.fab-it.dk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---