# Strange Passenger behavior on OS X

**URL:** <https://www.ruby-forum.com/t/strange-passenger-behavior-on-os-x/172379>\
**Category:** Rails\
**Created:** [July 20, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/strange-passenger-behavior-on-os-x/172379 "2009-07-20T19:22:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rykkers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Post date:** [July 20, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/strange-passenger-behavior-on-os-x/172379/1 "2009-07-20T19:22:49Z")

</div>

I’ve just spent several days intermittently trying to get a  
development rails app working again under passenger on OS X.

I still don’t understand what happened.

This app was working fine until a few days ago. All of a sudden it  
would fail to initialize. The backtrace in the apache error log  
showed that a vendored gem (aws-s3) was not finding something it  
needed from a non-vendored gem (mime-types).

The same app would come up find under script/server

After much head-scratching I finally noticed that passenger (which had  
been started using a darwinports installed ruby in /opt/local) and  
which had the darwinports paths set in the apache configuration, was  
spawning daemons using /System/Library/Frameworks/Ruby.framework/Ruby  
instead of /opt/local/bin/ruby, and the system installation of ruby  
was looking for gems in the wrong place, among other things.

I can’t think of anything which I’d done to cause this.

I tried reinstalling the passenger apache module and restarting  
apache, but no joy.

I then updated the passenger gem to the latest version, reinstalled  
the passenger apache module, and restarted apache, same thing.

Then I rebooted the MacBook and it seems to be working again, but  
since I don’t know what caused this the first time, I’m not sure it  
won’t come back.

Does anyone have any insight about this?

–  
Rick DeNatale

Blog: [http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)  
Twitter: [http://twitter.com/RickDeNatale](http://twitter.com/RickDeNatale)  
WWR: [http://www.workingwithrails.com/person/9021-rick-denatale](http://www.workingwithrails.com/person/9021-rick-denatale)  
LinkedIn: [http://www.linkedin.com/in/rickdenatale](http://www.linkedin.com/in/rickdenatale)

---

<div class="post-metadata">

**Author:** ![rykkers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Post date:** [July 20, 2009, 11:26pm UTC](https://www.ruby-forum.com/t/strange-passenger-behavior-on-os-x/172379/2 "2009-07-20T23:26:01Z")

</div>

Hi Rick,

On Mon, Jul 20, 2009 at 10:22 AM, Rick DeNatale[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I’ve just spent several days intermittently trying to get a  
> development rails app working again under passenger on OS X.
> 
> After much head-scratching I finally noticed that passenger (which had  
> been started using a darwinports installed ruby in /opt/local) and  
> which had the darwinports paths set in the apache configuration, was  
> spawning daemons using /System/Library/Frameworks/Ruby.framework/Ruby  
> instead of /opt/local/bin/ruby, and the system installation of ruby  
> was looking for gems in the wrong place, among other things.

What’s the value of PassengerRuby in your Apache config?

~ j.

---

<div class="post-metadata">

**Author:** ![rykkers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Post date:** [July 21, 2009, 12:23am UTC](https://www.ruby-forum.com/t/strange-passenger-behavior-on-os-x/172379/3 "2009-07-21T00:23:53Z")

</div>

On Mon, Jul 20, 2009 at 5:25 PM, John B.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > spawning daemons using /System/Library/Frameworks/Ruby.framework/Ruby  
> > instead of /opt/local/bin/ruby, and the system installation of ruby  
> > was looking for gems in the wrong place, among other things.
> 
> What’s the value of PassengerRuby in your Apache config?

Well, as I implied, I think it was and is /opt/local/bin/ruby

## For some reason it seemed to be ignored.

Rick DeNatale

Blog: [http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)  
Twitter: [http://twitter.com/RickDeNatale](http://twitter.com/RickDeNatale)  
WWR: [http://www.workingwithrails.com/person/9021-rick-denatale](http://www.workingwithrails.com/person/9021-rick-denatale)  
LinkedIn: [http://www.linkedin.com/in/rickdenatale](http://www.linkedin.com/in/rickdenatale)

---

<div class="post-metadata">

**Author:** ![rykkers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Post date:** [July 21, 2009, 12:25am UTC](https://www.ruby-forum.com/t/strange-passenger-behavior-on-os-x/172379/4 "2009-07-21T00:25:03Z")

</div>

On Mon, Jul 20, 2009 at 6:22 PM, Rick DeNatale[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Well, as I implied, I think it was and is /opt/local/bin/ruby

And just to be perfectly clear that was supposed to be “as I implied,  
I think,…” the missing comma changes the sense of the sentence.

It definitely WAS and IS /opt/local/bin/ruby and never changed.

–  
Rick DeNatale

Blog: [http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)  
Twitter: [http://twitter.com/RickDeNatale](http://twitter.com/RickDeNatale)  
WWR: [http://www.workingwithrails.com/person/9021-rick-denatale](http://www.workingwithrails.com/person/9021-rick-denatale)  
LinkedIn: [http://www.linkedin.com/in/rickdenatale](http://www.linkedin.com/in/rickdenatale)
