I am getting the following error in my Apache error log when trying to
run my puppetmaster as a rack app with Passenger:

*** Exception LoadError in PhusionPassenger::Rack::ApplicationSpawner
(no such file to load -- rack) (process 32373):

Apache will start up without error, but as soon as a puppet client
connects, the error is thrown.

Passenger is dying at a "require 'rack'" statement in the rack
application spawner code.  In older versions of Passenger, I noticed
this require statement included rack at the very top of
application_spawner.rb.  Just before the require statement it added a
passenger-distributed rack to the ruby lib.  In later versions of
passenger, the require statement appears farther down
application_spawner.rb in some function and does not add any
"vendor'ed" rack path to the rubylib, and it cannot find Rack.

Sorry if that's a bit of detail, but I'm about to pull my hair out
over this.  Why can't Passenger find Rack?

The gems I have installed:

*** LOCAL GEMS ***

daemon_controller (0.2.5)
fastthread (1.0.7)
file-tail (1.0.5)
git (1.2.5)
god (0.11.0)
passenger (2.2.15)
rack (1.1.0)
rake (0.8.7)
spruz (0.2.0)
stomp (1.1.6)

By the way, I am on RHEL5 and am using Ruby 1.8.5 (I know it is old)

I have tried this with many versions of Passenger and all of the more
recent versions cannot find Rack. As I said, the older versions didn't
have this problem but there was something else up with them (I confess
I no longer remember what it was). I figure most Puppet users are
using the later versions without the issue I'm having, so I might as
well work it out and use the most vetted versions of gems that I can.

There must be something I am not understanding about how Gems work or
RUBYLIB or something.

Anyone got any ideas?

Thanks in advance!

-Kent

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to