[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: PassengerRoot value seems to be ignored in our gears

+++ Troy Dawson [23/07/13 10:56 -0500]:
Hi Brenton,
You get a big +1 from me.

Mind giving this a [merge]?

I'm sorry I didn't speak up about this new "feature" of passenger, but I noticed it when doing the security updates for rubygem-passenger, which was a bump up to version 3.0.21.

Another nifty change in the ResourceLocator.h file is that if you have a Rakefile in your normal gem area, it assumes that it is nativity compiles AND that the resultant binary is in that directory (which it isn't). Some people will notice that the Rakefile is no longer in the -devel package due to this "feature". If you feel slighted by that, be comforted in knowing that the only thing the Rakefile did was build the binary, there was no testing or anything else in it.


On 07/23/2013 09:40 AM, Brenton Leanhardt wrote:
Recently I've been upgrading passenger for my cartridges and I'm
interested to
know if others have noticed that the value for PassengerRoot in our gears
appears to be completely ignored.  I've found this true for all flavors of

In my gear's ruby/etc/conf.d/openshift.conf:

* PassengerRoot was originally set to
  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.2.  This directory has not
  existed for a long time in OpenShift Enterprise.

* I set the value to 'NotUsed' and after stopping and starting my
  application it still worked

* I removed the PassengerRoot setting altogether and after
  stop/starting my application it no longer worked.  The error in the
  gear log stated that PassengerRoot was missing.

I've found no documentation stating that passenger should work like this.
However ext/common/ResourceLocator.h does show why this is working.  We
use the
rubygem-passenger-native and we're hitting the logic in
ResourceLocator.h that
defaults to using the files it was built with.

I see no reason for us to go through the trouble of migrating gear
configuration for this but I'd like to change the value for
PassengerRoot to
something like "NativelyPackaged".  I'll have a pull request shortly.  If
anyone has concerns please let me know.


dev mailing list
dev lists openshift redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]