An error occurred while starting up the preloader: it did not write a startup response in time.

2,529 views
Skip to first unread message

Tony Primerano

unread,
Jun 27, 2013, 3:17:25 PM6/27/13
to phusion-...@googlegroups.com
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=914

Here 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:



Avishai Weiss

unread,
Aug 14, 2013, 1:21:45 PM8/14/13
to phusion-...@googlegroups.com
I've been having a similar issue, but the app can't load up at all to begin with. It's a fresh Ubuntu install with brand new Passenger/Nginx. Has anyone found a solution yet?

Hongli Lai

unread,
Aug 14, 2013, 4:38:33 PM8/14/13
to phusion-passenger
Can you try following this guide?
https://github.com/FooBarWidget/passenger/wiki/Debugging-application-startup-problems
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages