Skip to content

Failsafe Error: Using Ruby 1.9.1 + Rails 2.3.5 #77

Closed
bgetting opened this Issue Dec 2, 2009 · 6 comments

5 participants

@bgetting
bgetting commented Dec 2, 2009

I am running Ruby 1.9.1p243 and Rails 2.3.5 on Snow Leopard. The app seems to run fine, until I try and log in using Authlogic. I then get a failsafe error:

Processing UserSessionsController#new (for 127.0.0.1 at 2009-12-02 14:28:11) [GET]
...
/!\ FAILSAFE /!\  Wed, 02 Dec 2009 14:35:55 -0800
  Status: 500 Internal Server Error
  closed stream
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/vendor/rack-1.0.0-git/lib/rack/rewindable_input.rb:86:in `make_rewindable'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/vendor/rack-1.0.0-git/lib/rack/rewindable_input.rb:26:in `read'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/vendor/rack-1.0.0-git/lib/rack/request.rb:136:in `POST'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/vendor/rack-1.0.0-git/lib/rack/methodoverride.rb:15:in `call'
    /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15:in `call'
    /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/session/cookie_store.rb:93:in `call'
    /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/reloader.rb:29:in `call'
    /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26:in `call'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `block in call'
    :8:in `synchronize'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `call'
    /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106:in `call'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/railz/application_spawner.rb:374:in `start_request_handler'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/railz/application_spawner.rb:332:in `block in handle_spawn_application'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/utils.rb:184:in `safe_fork'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/railz/application_spawner.rb:330:in `handle_spawn_application'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:163:in `start'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/railz/application_spawner.rb:209:in `start'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/spawn_manager.rb:262:in `block (2 levels) in spawn_rails_application'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/spawn_manager.rb:256:in `block in spawn_rails_application'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server_collection.rb:80:in `block in synchronize'
    :8:in `synchronize'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    /usr/local/lib/ruby/gems/1.9.1/gems/passenger-2.2.7/bin/passenger-spawn-server:61:in `'

The best that I have been able to figure out is that Authlogic doesn't work with Ruby 1.9. Is anyone else able to use Authlogic with Rails 2.3.5 and Ruby 1.9? I could use any help available to try and get these apps running smooth again locally.

They work fine on the server, which is using REE. Thanks.

@rrouse
rrouse commented Dec 3, 2009

I don't believe that is Authlogic. Rails is supposed to be using Rack 1.0.1 at least, but this shows that Passenger is injecting an earlier version. It looks like something to do with Passenger.

@darthdeus

I'm having the same problem with Ruby 1.9.1 and Rails 2.3.5 using authlogic 2.1.3. Is there any workaround?

@bgetting
bgetting commented Dec 6, 2009

I reverted to Ruby 1.8.7 with Rails 2.3.5 and it works fine.

@rrouse
rrouse commented Dec 6, 2009

The other option is to host the application on something other than passenger. You'll find that your app works fine under script/server. It probably works under something like Unicorn as well. I am inclined to think this is related to Passenger itself. You should file an issue on their Google Code project.

@assaf
assaf commented Dec 11, 2009

It's a bug in Ruby 1.9.1 that shows under Passenger. Easy to fix, see here:
http://blog.labnotes.org/2009/09/01/ruby-1-9-1-p234passenger-2-2-5-tempfile-rb-fix/

@tiegz
Collaborator
tiegz commented Jun 20, 2014
@tiegz tiegz closed this Jun 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.