Phusion Passenger and the Rails OpenID plugin

30 views
Skip to first unread message

Hongli Lai

unread,
Sep 15, 2008, 4:51:07 PM9/15/08
to Phusion Passenger Discussions
Today I ran into a problem related to the Rails OpenID plugin. Upon
logging in with OpenID, I get an error backtrace that looks like this:

IOError (closed stream):
(eval):3:in `write'
/opt/r8ee/lib/ruby/1.8/logger.rb:504:in `write'
/opt/r8ee/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/opt/r8ee/lib/ruby/1.8/logger.rb:496:in `write'
/opt/r8ee/lib/ruby/1.8/logger.rb:326:in `add'
/opt/r8ee/lib/ruby/1.8/logger.rb:374:in `info'

/opt/r8ee/lib/ruby/gems/1.8/gems/ruby-openid-2.1.2/lib/openid/util.rb:88:in
`log'

/opt/r8ee/lib/ruby/gems/1.8/gems/ruby-openid-2.1.2/lib/openid/consumer/checkid_request.rb:131:in
`get_message'

/opt/r8ee/lib/ruby/gems/1.8/gems/ruby-openid-2.1.2/lib/openid/consumer/checkid_request.rb:145:in
`redirect_url'

/vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:146:in
`open_id_redirect_url'

/vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:97:in
`begin_open_id_authentication'

/vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:86:in
`authenticate_with_open_id'
/app/controllers/sessions_controller.rb:49:in `openid_verify'
...


This turns out to be a logger problem. Add this to your environment.rb
and it'll be solved:

OpenID::Util.logger = RAILS_DEFAULT_LOGGER

--
Phusion | The Computer Science Company

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