Premature end of script headers

32 views
Skip to first unread message

jason white

unread,
Mar 21, 2011, 8:31:05 PM3/21/11
to rubyonra...@googlegroups.com
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:in `call'
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:in `call'
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:in `process_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:in `main_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:in `send'
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:in `safe_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:in `__send__'
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:in `start_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:in `start'
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:in `lookup_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:in `synchronize'
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:in `spawn_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:in `handle_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:in `server_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

Bryan Crossland

unread,
Mar 21, 2011, 8:49:22 PM3/21/11
to rubyonra...@googlegroups.com
On Mon, Mar 21, 2011 at 7:31 PM, jason white <jasonw...@gmail.com> 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.

jason white

unread,
Mar 21, 2011, 8:55:16 PM3/21/11
to rubyonra...@googlegroups.com
running with no errors in development mode


thanks,
Jason

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

jason white

unread,
Mar 21, 2011, 8:56:39 PM3/21/11
to rubyonra...@googlegroups.com
seems to be working in production now



thanks,
Jason
Reply all
Reply to author
Forward
0 new messages