Premature end of script headers

after moving my app to production, I am getting the following error in
the
apache error log. I am running on linode with apache and passenger.

any help would be great,

thanks,
Jason

[Tue Mar 22 00:18:04 2011] [error] [client 50.9.211.207] Premature end
of
script headers:
[ pid=23638 thr=3063581552 file=ext/apache2/Hooks.cpp:821
time=2011-03-22
00:18:04.735 ]: The backend application (process 23865) did not send a
valid
HTTP response; instead, it sent nothing at all. It is possible that it
has
crashed; please check whether there are crashing bugs in this
application.
[ pid=23865 thr=-609316648 file=utils.rb:176 time=2011-03-22
00:18:04.742 ]:
*** Exception NoMethodError in application (undefined method
`each_with_index’ for #ActionController::Response:0xb61ba3a8) (process
23865, thread #Thread:0xb75d21b0):

from
/usr/lib/ruby/gems/1.8/gems/hoptoad_notifier-2.4.8/lib/hoptoad_notifier/user_informer.rb:14:in
call' from /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:incall’
from /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in
synchronize' from /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:incall’
from
/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:106:in
call' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_request_handler.rb:513:in
accept_and_process_next_request' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/classic_rails/application_spawner.rb:321:in
start_request_handler' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/classic_rails/application_spawner.rb:275:insend’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in
handle_spawn_application' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/utils.rb:479:insafe_fork’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/classic_rails/application_spawner.rb:270:in
handle_spawn_application' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_server.rb:357:insend
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_server.rb:357:in
server_main_loop' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_server.rb:206:instart_synchronously’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_server.rb:180:in
start' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/classic_rails/application_spawner.rb:149:instart’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/spawn_manager.rb:219:in
spawn_rails_application' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/spawn_manager.rb:214:in
spawn_rails_application' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_server_collection.rb:82:insynchronize’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_server_collection.rb:79:in
synchronize' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/spawn_manager.rb:213:inspawn_rails_application’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/spawn_manager.rb:132:in
spawn_application' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/spawn_manager.rb:275:inhandle_spawn_application’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_server.rb:357:in
__send__' from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously’
from
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/helper-scripts/passenger-spawn-server:99

On Mon, Mar 21, 2011 at 7:31 PM, jason white
[email protected]wrote:

[ pid=23865 thr=-609316648 file=utils.rb:176 time=2011-03-22 00:18:04.742
]: *** Exception NoMethodError in application (undefined method
`each_with_index’ for #ActionController::Response:0xb61ba3a8) (process
23865, thread #Thread:0xb75d21b0):

Looks like Passenger either doesn’t know where Rails is or Rails might
not
be installed properly. If you log onto the server at the command line,
go to
where your app is deployed, start up Mongrel and navigate to port 3000
do
you get the same error?

B.

running with no errors in development mode

http://173.255.204.86:3000

thanks,
Jason

seems to be working in production now

http://turn2.co

thanks,
Jason

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs