Read more

How to fix Passenger "Unexpected end-of-file detected" error

Arne Hartherz
April 19, 2012Software engineer at makandra GmbH

This is for you if Passenger gives you the following useless error message.

Passenger encountered the following error:\
The application spawner server exited unexpectedly: Unexpected end-of-file detected.

Exception class:
: PhusionPassenger::Rack::ApplicationSpawner::Error

Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot

Most often this happens because you are missing a gem. Usually Passenger would tell you about that but in some cases it can't.

To resolve this issue, run:

bundle install

If this does not do the trick for you, take a look at the Apache log files for details.

Posted by Arne Hartherz to makandra dev (2012-04-19 19:22)