Problem with Passenger

60 views
Skip to first unread message

Marcelo Frota

unread,
Nov 18, 2013, 3:52:27 PM11/18/13
to puppet...@googlegroups.com
Hi. 

I am running puppet with puppet version  3.3.2-1, apache 2.2.22-1ubuntu1.4 and passenger module 2.2.11debian-2.

I having problem with passenger module, i create the config file /usr/share/puppet/rack/puppetmasterd/config.ru  but 
the process master the puppet is not running . 

For what seems apache is not recognizing the file config.ru

Example in other machine running puppet version 2.6 i have the result in ps -aux :

puppet   16874  ***  ****  ***** **** *****        S    18:24   0:00 master       

My config.ru

ARGV << "--debug"
ARGV << "--rack"

# Rack applications typically don't start as root.  Set --confdir and --vardir
# to prevent reading configuration from ~puppet/.puppet/puppet.conf and writing
# to ~puppet/.puppet
ARGV << "--trace"
ARGV << "--vardir"  << "/var/lib/puppet"
ARGV << "--config" << "/etc/puppet/puppet.conf"

require 'puppet/util/command_line'
# we're usually running inside a Rack::Builder.new {} block,
# therefore we need to call run *here*.
run Puppet::Util::CommandLine.new.execute
#run Puppet::Application[:master].run

Permissions: 

-rwxr-xr-x 1 puppet puppet 1618 Nov 18 17:31 /usr/share/puppet/rack/puppetmasterd/config.ru

Someone help me?

Regards,
Marcelo Frota

Felix Frank

unread,
Nov 21, 2013, 6:09:03 AM11/21/13
to puppet...@googlegroups.com
Hi,

is that config.ru from the ubuntu package?

It looks odd and seems to miss the vital '$0 = "master"' line. For
reference:
https://github.com/puppetlabs/puppet/blob/master/ext/rack/config.ru

HTH,
Felix

On 11/18/2013 09:52 PM, Marcelo Frota wrote:
> I am running puppet with puppet version 3.3.2-1, apache
> 2.2.22-1ubuntu1.4 and passenger module 2.2.11debian-2.
>
> My config.ru :

--
MPeX.net GmbH / Werner-Vo�-Damm 62 / D-12101 Berlin / Germany
MPeXnetworks / www.mpexnetworks.de
Tel: ++49-30-78097 180 / Fax: ++49-30-78097 181

Sitz, Registergericht: Berlin, Amtsgericht Charlottenburg, HRB 76688
Gesch�ftsf�hrer: Lars Br�uer, Gregor Rex-Lawatscheck

Marcelo Frota

unread,
Nov 21, 2013, 8:07:37 AM11/21/13
to puppet...@googlegroups.com
Hi Felix, 

My archive config.ru is equal to the file that you spoke. 

Do you have other sugestion, for the my problem ? 

Regards
Marcelo Frota


Em quinta-feira, 21 de novembro de 2013 09h09min03s UTC-2, Felix.Frank escreveu:
Hi,

is that config.ru from the ubuntu package?

It looks odd and seems to miss the vital '$0 = "master"' line. For
reference:
https://github.com/puppetlabs/puppet/blob/master/ext/rack/config.ru

HTH,
Felix

On 11/18/2013 09:52 PM, Marcelo Frota wrote:
> I am running puppet with puppet version  3.3.2-1, apache
> 2.2.22-1ubuntu1.4 and passenger module 2.2.11debian-2.
>
> My config.ru :

--
MPeX.net GmbH / Werner-Vo�-Damm 62 / D-12101 Berlin / Germany
MPeXnetworks / www.mpexnetworks.de
Tel: ++49-30-78097 180 / Fax: ++49-30-78097 181

Sitz, Registergericht: Berlin, Amtsgericht Charlottenburg, HRB 76688
Gesch�ftsf�hrer: Lars Br�uer, Gregor Rex-Lawatscheck

Felix Frank

unread,
Nov 21, 2013, 8:12:18 AM11/21/13
to puppet...@googlegroups.com
Marcelo,

well, have you made sure that apache is configured correctly according
to the documentation?

I.e. http://docs.puppetlabs.com/guides/passenger.html

I advise to restart apache and keep an eye on its log files.

HTH,
Felix

Jo Rhett

unread,
Nov 21, 2013, 4:33:49 PM11/21/13
to puppet...@googlegroups.com
On Nov 18, 2013, at 12:52 PM, Marcelo Frota <infr...@gmail.com> wrote:
> I having problem with passenger module, i create the config file /usr/share/puppet/rack/puppetmasterd/config.ru but
> the process master the puppet is not running .
> For what seems apache is not recognizing the file config.ru

I don't believe that this directory is an expected path for apache, is it? That's an example file you copy to the apache config directory...

--
Jo Rhett
Net Consonance : net philanthropy to improve open source and internet projects.

Author of Instant Puppet 3 Starter: http://www.netconsonance.com/instant-puppet-3-starter-book/



Felix Frank

unread,
Nov 22, 2013, 11:25:28 AM11/22/13
to puppet...@googlegroups.com
On 11/21/2013 10:33 PM, Jo Rhett wrote:
> On Nov 18, 2013, at 12:52 PM, Marcelo Frota <infr...@gmail.com> wrote:
>> > I having problem with passenger module, i create the config file /usr/share/puppet/rack/puppetmasterd/config.ru but
>> > the process master the puppet is not running .
>> > For what seems apache is not recognizing the file config.ru
> I don't believe that this directory is an expected path for apache, is it? That's an example file you copy to the apache config directory...

One might think that, but that's indeed the location suggested by the
puppetlabs passenger docs.
Reply all
Reply to author
Forward
0 new messages