I'm running into an intermittent error with my Ruby app and I'm trying to figure out the context. I'm running mod_passenger off of Apache (on Dreamhost, if that matters).
The error I'm getting is:
[ pid=12404 file=ext/apache2/Hooks.cpp:727 time=2012-04-30 02:59:02.949 ]:
Unexpected error in mod_passenger: Could not send data to the ApplicationPool server: write() failed: Bad file descriptor (9)
Backtrace:
in 'virtual boost::shared_ptr<Passenger::Application::Session> Passenger::ApplicationPoolServer::Client::get(const Passenger::PoolOptions&)' (ApplicationPoolServer.h:402)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:523)
(That's how I know I'm running mod_passenger.) I tried to do a gem list | grep passenger
, but that didn't turn up anything. I can see the module in /dh/apache2/template/lib/modules
, I just don't know how to figure out what the version is.
Take a look at your Apache error logs after starting up Apache. There should be a line like the following:
What it says exactly depends on your Apache installation but it should tell you at least which Passenger version you have running. In my case it is 3.0.11, as you can see.