Message from discussion
passenger_pre_start not working on nginx
Received: by 10.50.202.10 with SMTP id ke10mr1308998igc.2.1353019341296;
Thu, 15 Nov 2012 14:42:21 -0800 (PST)
X-BeenThere: phusion-passenger@googlegroups.com
Received: by 10.50.12.166 with SMTP id z6ls461908igb.14.canary; Thu, 15 Nov
2012 14:42:18 -0800 (PST)
Received: by 10.42.62.148 with SMTP id y20mr2301509ich.19.1353019338274;
Thu, 15 Nov 2012 14:42:18 -0800 (PST)
Received: by 10.50.96.228 with SMTP id dv4msigb;
Thu, 15 Nov 2012 14:39:59 -0800 (PST)
Received: by 10.66.81.195 with SMTP id c3mr673338pay.44.1353019199147;
Thu, 15 Nov 2012 14:39:59 -0800 (PST)
Received: by 10.66.81.195 with SMTP id c3mr673337pay.44.1353019199132;
Thu, 15 Nov 2012 14:39:59 -0800 (PST)
Return-Path: <mailtog...@gmail.com>
Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47])
by gmr-mx.google.com with ESMTPS id yl8si21220pbc.1.2012.11.15.14.39.59
(version=TLSv1/SSLv3 cipher=OTHER);
Thu, 15 Nov 2012 14:39:59 -0800 (PST)
Received-SPF: pass (google.com: domain of mailtog...@gmail.com designates 209.85.220.47 as permitted sender) client-ip=209.85.220.47;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of mailtog...@gmail.com designates 209.85.220.47 as permitted sender) smtp.mail=mailtog...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-pa0-f47.google.com with SMTP id fa11so1302450pad.6
for <phusion-passenger@googlegroups.com>; Thu, 15 Nov 2012 14:39:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-type;
bh=mEgTYVnyuYgkYx1jPXLgZRKylMqFlpP7m7Aj5Fb6I0w=;
b=sce6LKI26nEkF19dhOPTOq+kLDF8rNBddIa5wXdu1gUERDmLewN1T1S6g6dZesejd/
gPx6fbbNRKwnKuxtI5upmIMjFvzohsjyRXJI3sofAn0agc7HASzMw2jD8a8G85AYZDxo
XoTEf9FlxJYeZ20flCE5EObMQc+aEKlB1oVnZMsBc+WU4RgbRa01pPja3zbvF6YhMpPT
DtH24/Ch3y6fa059CZLMupQQ2Hok6zFnHnihvhOhXodSX/hVlZ1vkJoEN+Ns6AGhtIfj
9Ge8RD0Z/hp+LP0V3J5CTfmtjWCIyuACujoGfLE5qhddduvhS/CRZWgI6jknAghqpdlV
Bs2g==
Received: by 10.68.237.135 with SMTP id vc7mr3316920pbc.2.1353019198895; Thu,
15 Nov 2012 14:39:58 -0800 (PST)
MIME-Version: 1.0
Received: by 10.66.233.163 with HTTP; Thu, 15 Nov 2012 14:39:38 -0800 (PST)
In-Reply-To: <CAGW=8RpJwQmTEfa60GnVO4hkX4wRZcr2u+6mip20R-X0uz5...@mail.gmail.com>
References: <ca418b49-4671-47d7-899a-dacc6351d...@o7g2000prn.googlegroups.com>
<7be910d9-c4a7-434c-a9fe-ab825dff4...@8g2000prb.googlegroups.com>
<AANLkTike710HVsCkcTCUb6ntGpR-8vC3t8AxLfwUE...@mail.gmail.com>
<c2cb8a54-89d9-42f9-a61e-36d9bf637fb7@googlegroups.com> <CAGW=8RpJwQmTEfa60GnVO4hkX4wRZcr2u+6mip20R-X0uz5...@mail.gmail.com>
From: =?ISO-8859-1?Q?Benjamin_Gr=F6ssing?= <mailtog...@gmail.com>
Date: Thu, 15 Nov 2012 23:39:38 +0100
Message-ID: <CAD4D6rSGwMQX5hQkeTap_pdABzxpifMPqS4J734w3LrokbZ...@mail.gmail.com>
Subject: Re: [phusion-passenger] Re: passenger_pre_start not working on nginx
To: phusion-passenger@googlegroups.com
Content-Type: multipart/alternative; boundary=047d7b339003b976db04ce905411
--047d7b339003b976db04ce905411
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Thanks for your quick response!
I have done exactly what the RVM page suggests and everything works - but
passenger_pre_start. As soon as I define at least one passenger_pre_start
directive the error.log shows that it searches for ruby in the path but
can't find it (however, the rails app starts up normally on the first page
load).
Why is passenger searching for a ruby executable in $PATH as soon as
passenger_pre_start is used (instead of just using the binary provided in
the passenger_ruby directive)?
Regards
Benjamin
2012/11/15 Tinco Andringa <ti...@phusion.nl>
> The rvm guys have an entire page dedicated to integration with RVM,
> they probably know best :)
>
> https://rvm.io/integration/passenger/
>
> Kind regards,
> Tinco
>
> On Thu, Nov 15, 2012 at 11:18 PM, Benjamin Gr=F6ssing
> <mailtog...@gmail.com> wrote:
> > Sorry for digging out that old topic; I just stumbled across the same
> > problem (the error.log even says "/usr/bin/env: ruby: No such file or
> > directory"). Now I could probably just fix it by setting the $PATH to t=
he
> > (current) RVM ruby path as Joshua did, but that feels a bit odd. Just
> > curious, why is that even required in that special case of
> > passenger_pre_start?
> >
> > Is there a recommended way for integration with RVM?
> >
> > Regards
> > Benjamin
> >
> > Am Freitag, 28. Januar 2011 22:01:56 UTC+1 schrieb Hongli Lai:
> >>
> >> On Fri, Jan 28, 2011 at 9:56 PM, Joshua Slayton <josh...@gmail.com>
> wrote:
> >> > /usr/bin/env: ruby: No such file or directory
> >>
> >> passenger_pre_start depends on the existance of a 'ruby' command in
> >> Nginx's $PATH. You need to ensure that that is the case.
> >>
> >> --
> >> Phusion | Ruby & Rails deployment, scaling and tuning solutions
> >>
> >> Web: http://www.phusion.nl/
> >> E-mail: in...@phusion.nl
> >> Chamber of commerce no: 08173483 (The Netherlands)
> >
> > --
> > You received this message because you are subscribed to the Google Grou=
ps
> > "Phusion Passenger Discussions" group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msg/phusion-passenger/-/Ytk2Z4FbRIsJ.
> > To post to this group, send email to phusion-passenger@googlegroups.com=
.
> > To unsubscribe from this group, send email to
> > phusion-passenger+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/phusion-passenger?hl=3Den.
>
>
> --
> Phusion | Ruby & Rails deployment, scaling and tuning solutions
>
> Web: http://www.phusion.nl/
> E-mail: i...@phusion.nl
> Chamber of commerce no: 08173483 (The Netherlands)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To post to this group, send email to phusion-passenger@googlegroups.com.
> To unsubscribe from this group, send email to
> phusion-passenger+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/phusion-passenger?hl=3Den.
>
>
--047d7b339003b976db04ce905411
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Thanks for your quick response!<div><br></div><div>I have done exactly what=
the RVM page suggests and everything works - but passenger_pre_start. As s=
oon as I define at least one passenger_pre_start directive the error.log sh=
ows that it searches for ruby in the path but can't find it (however, t=
he rails app starts up normally on the first page load).</div>
<div><br></div><div>Why is passenger searching for a ruby executable in $PA=
TH as soon as passenger_pre_start is used (instead of just using the binary=
provided in the passenger_ruby directive)?</div><div><br></div><div>Regard=
s</div>
<div>Benjamin</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_q=
uote">2012/11/15 Tinco Andringa <span dir=3D"ltr"><<a href=3D"mailto:tin=
c...@phusion.nl" target=3D"_blank">ti...@phusion.nl</a>></span><br><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex">
The rvm guys have an entire page dedicated to integration with RVM,<br>
they probably know best :)<br>
<br>
<a href=3D"https://rvm.io/integration/passenger/" target=3D"_blank">https:/=
/rvm.io/integration/passenger/</a><br>
<br>
Kind regards,<br>
Tinco<br>
<div><div class=3D"h5"><br>
On Thu, Nov 15, 2012 at 11:18 PM, Benjamin Gr=F6ssing<br>
<<a href=3D"mailto:mailtog...@gmail.com">mailtog...@gmail.com</a>> wr=
ote:<br>
> Sorry for digging out that old topic; I just stumbled across the same<=
br>
> problem (the error.log even says "/usr/bin/env: ruby: No such fil=
e or<br>
> directory"). Now I could probably just fix it by setting the $PAT=
H to the<br>
> (current) RVM ruby path as Joshua did, but that feels a bit odd. Just<=
br>
> curious, why is that even required in that special case of<br>
> passenger_pre_start?<br>
><br>
> Is there a recommended way for integration with RVM?<br>
><br>
> Regards<br>
> Benjamin<br>
><br>
> Am Freitag, 28. Januar 2011 22:01:56 UTC+1 schrieb Hongli Lai:<br>
>><br>
>> On Fri, Jan 28, 2011 at 9:56 PM, Joshua Slayton <<a href=3D"mai=
lto:josh...@gmail.com">josh...@gmail.com</a>> wrote:<br>
>> > /usr/bin/env: ruby: No such file or directory<br>
>><br>
>> passenger_pre_start depends on the existance of a 'ruby' c=
ommand in<br>
>> Nginx's $PATH. You need to ensure that that is the case.<br>
>><br>
>> --<br>
>> Phusion | Ruby & Rails deployment, scaling and tuning solution=
s<br>
>><br>
>> Web: <a href=3D"http://www.phusion.nl/" target=3D"_blank">http://w=
ww.phusion.nl/</a><br>
>> E-mail: <a href=3D"mailto:in...@phusion.nl">in...@phusion.nl</a><b=
r>
>> Chamber of commerce no: 08173483 (The Netherlands)<br>
><br>
> --<br>
> You received this message because you are subscribed to the Google Gro=
ups<br>
> "Phusion Passenger Discussions" group.<br>
> To view this discussion on the web visit<br>
> <a href=3D"https://groups.google.com/d/msg/phusion-passenger/-/Ytk2Z4F=
bRIsJ" target=3D"_blank">https://groups.google.com/d/msg/phusion-passenger/=
-/Ytk2Z4FbRIsJ</a>.<br>
> To post to this group, send email to <a href=3D"mailto:phusion-passeng=
er@googlegroups.com">phusion-passenger@googlegroups.com</a>.<br>
> To unsubscribe from this group, send email to<br>
> <a href=3D"mailto:phusion-passenger%2Bunsubscribe@googlegroups.com">ph=
usion-passenger+unsubscribe@googlegroups.com</a>.<br>
> For more options, visit this group at<br>
> <a href=3D"http://groups.google.com/group/phusion-passenger?hl=3Den" t=
arget=3D"_blank">http://groups.google.com/group/phusion-passenger?hl=3Den</=
a>.<br>
<br>
<br>
--<br>
Phusion | Ruby & Rails deployment, scaling and tuning solutions<br>
<br>
Web: <a href=3D"http://www.phusion.nl/" target=3D"_blank">http://www.phusio=
n.nl/</a><br>
</div></div>E-mail: <a href=3D"mailto:i...@phusion.nl">i...@phusion.nl</a><=
br>
<div class=3D"im HOEnZb">Chamber of commerce no: 08173483 (The Netherlands)=
<br>
<br>
--<br>
You received this message because you are subscribed to the Google Groups &=
quot;Phusion Passenger Discussions" group.<br>
</div><div class=3D"HOEnZb"><div class=3D"h5">To post to this group, send e=
mail to <a href=3D"mailto:phusion-passenger@googlegroups.com">phusion-passe=
nger@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:phusion-pas=
senger%2Bunsubscribe@googlegroups.com">phusion-passenger+unsubscribe@google=
groups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/phusion-passenger?hl=3Den" target=3D"_blank">http://groups.google.com/=
group/phusion-passenger?hl=3Den</a>.<br>
<br>
</div></div></blockquote></div><br></div>
--047d7b339003b976db04ce905411--