I wasn't thinking earlier and I opened a bug before starting a discussion here instead.
http://code.google.com/p/phusion-passenger/issues/detail?id=914Here are my notes inlined. Has anyone seen this?
What steps will reproduce the problem?
Unknown, happens a few times a month.
What is the expected output? What do you see instead?
Successful spawn expected instead of failure.
What version of Phusion Passenger are you using? Which version of Rails? On
what operating system?
* Passenger 4.0.1
* Rails 3.2.11
* Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Please provide any additional information below.
Here is the error log. Let me know if there is additional debug information I should gather.
========= June 22nd ===============
013-06-22 02:35:07.0246 7557/433d7940 Pool2/Spawner.h:739 ]: [App 4855 stdout]
[ 2013-06-22 02:36:36.9501 7557/433d7940 Pool2/Implementation.cpp:762 ]: Could not spawn process for group /var/www/railsapps/app567/current#default: An error occurred while starting up the preloader: it did not write a startup response in time.
in 'void Passenger::ApplicationPool2::SmartSpawner::throwPreloaderSpawnException(const std::string&, Passenger::SpawnException::ErrorKind, boost::shared_ptr<Passenger::ApplicationPool2::Spawner::BackgroundIOCapturer>&, const boost::shared_ptr<Passenger::ApplicationPool2::Spawner::DebugDir>&)' (SmartSpawner.h:149)
in 'std::string Passenger::ApplicationPool2::SmartSpawner::negotiatePreloaderStartup(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:557)
in 'void Passenger::ApplicationPool2::SmartSpawner::startPreloader()' (SmartSpawner.h:205)
in 'virtual Passenger::ApplicationPool2::ProcessPtr Passenger::ApplicationPool2::SmartSpawner::spawn(const Passenger::ApplicationPool2::Options&)' (SmartSpawner.h:743)
in 'void Passenger::ApplicationPool2::Group::spawnThreadRealMain(const Passenger::ApplicationPool2::SpawnerPtr&, const Passenger::ApplicationPool2::Options&, unsigned int)' (Implementation.cpp:695)
[ 2013-06-22 02:36:37.0711 7557/42e39940 agents/HelperAgent/RequestHandler.h:1888 ]: [Client 61] Cannot checkout session. An error occurred while starting up the preloader: it did not write a startup response in time.
Error page: