Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Troubleshooting  >  Thread
   
 
After update to latest cannot login with OpenID
 
Dentharg
Posted: 07 April 2009 04:34 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  20
Joined  2008-07-11

Hi!

I’ve updated my Tracks installation (Dreamhost w/Passenger) to commit 239b38cb1541b554af114b4bc1dfdc2865c419b8.

When I try to log in with OpenID (my only user is configure to log with it) I get:

Application error (Apache)

Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html 


After git pull I did the usual migration and openid db upgrade.

Profile
 
Reinier Balt
Posted: 07 April 2009 07:05 AM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

there should be an error message in your logs too. Could you post it?

Profile
 
Dentharg
Posted: 07 April 2009 08:50 AM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  20
Joined  2008-07-11

Processing LoginController#login (for 83.20.41.207 at 2009-04-06 21:31:17) [POST]
  Session ID: e32b9e8b6206700957c651ee71759ad9
  Parameters: {“openid_url”=>“id.gilowie.pl/marcin”, “action”=>“login”, “authenticity_token”=>“016386891dc4b157efd124c86ff8b6586e5e3473”, “controller”=>“login”, “user_noexpiry”=>“on”, “login”=>“Sign In ยป”}


IOError (closed stream):
  /usr/lib/ruby/1.8/logger.rb:504:in `write’
  /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize’
  /usr/lib/ruby/1.8/logger.rb:496:in `write’
  /usr/lib/ruby/1.8/logger.rb:326:in `add’
  /usr/lib/ruby/1.8/logger.rb:374:in `info’
  /vendor/gems/ruby-openid-2.1.2/lib/openid/util.rb:87:in `log’
  /vendor/gems/ruby-openid-2.1.2/lib/openid/consumer/checkid_request.rb:131:in `get_message’
  /vendor/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:153:in `open_id_redirect_url’
  /vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:112:in `begin_open_id_authentication’
  /vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:98:in `authenticate_with_open_id’
  /app/controllers/login_controller.rb:97:in `login_openid’
  /app/controllers/login_controller.rb:12:in `login’
  /vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send’
  /vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `perform_action_without_filters’
  /vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters’
  /vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark’
  /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue’
  /usr/lib/ruby/1.8/benchmark.rb:293:in `measure’
  /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue’
  /vendor/rails/actionpack/lib/action_controller/rescue.rb:136:in `perform_action_without_caching’
  /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action’
  /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache’
  /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache’
  /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action’
  /dh/passenger/lib/phusion_passenger/railz/request_handler.rb:53:in `perform_action’
  /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send’
  /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters’
  /vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_without_session_management_support’
  /vendor/rails/actionpack/lib/action_controller/session_management.rb:134:in `process’
  /vendor/rails/actionpack/lib/action_controller/base.rb:392:in `process’
  /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:183:in `handle_request’
  /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked’
  /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:123:in `dispatch’
  /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `synchronize’
  /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `dispatch’
  /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi’
  /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:39:in `dispatch’
  /dh/passenger/lib/phusion_passenger/railz/request_handler.rb:38:in `process_request’
  /dh/passenger/lib/phusion_passenger/abstract_request_handler.rb:197:in `main_loop’
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:340:in `start_request_handler’
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:298:in `handle_spawn_application’
  /dh/passenger/lib/phusion_passenger/utils.rb:176:in `safe_fork’
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:296:in `handle_spawn_application’
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:332:in `__send__’
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:332:in `main_loop’
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:182:in `start_synchronously’
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:149:in `start’
  /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:192:in `start’
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:260:in `spawn_rails_application’
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:121:in `lookup_or_add’
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application’
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:75:in `synchronize’
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:74:in `synchronize’
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rails_application’
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:148:in `spawn_application’
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:285:in `handle_spawn_application’
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:332:in `__send__’
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:332:in `main_loop’
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:182:in `start_synchronously’
  /dh/passenger/bin/passenger-spawn-server:50

Rendering /home/mgil/gtd.marcingil.com/apps/tracks/public/500.html (500 Internal Server Error)

Profile
 
Reinier Balt
Posted: 07 April 2009 12:23 PM   [ Ignore ]   [ # 3 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

it is trying to write to the log. Is the log directory writable?

it could be that tracks defaults to STDERR. Is the apache user too limited?

Profile
 
Dentharg
Posted: 07 April 2009 01:44 PM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  20
Joined  2008-07-11

It is shared hosting w/ mod_passenger. It is possible that it is very limited. However log dir is writable as I took this error text from log/production.log.

When I was logged in and my login was cached Tracks worked perfectly. When I logged out - I couldn’t log back in.

Profile
 
Reinier Balt
Posted: 07 April 2009 02:10 PM   [ Ignore ]   [ # 5 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

I assume you changes site.yml to include open_id?

Could you try to change the environment.rb

change

if ( SITE_CONFIG[‘authentication_schemes’].include? ‘open_id’)
  #requires ruby-openid gem to be installed
end

into

if ( SITE_CONFIG[‘authentication_schemes’].include? ‘open_id’)
  #requires ruby-openid gem to be installed
  OpenID::Util.logger = RAILS_DEFAULT_LOGGER
end

Profile
 
Dentharg
Posted: 08 April 2009 06:21 AM   [ Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  20
Joined  2008-07-11

# Uncomment ldap or open_id if you want to use those authentication schemes.
# If you choose ldap, see the additional configuration options further down.
authentication_schemes:
  - “database”
  # - “ldap”
  - “open_id”

After change to environment.rb it worked! Thanks!

Profile
 
Reinier Balt
Posted: 08 April 2009 07:00 AM   [ Ignore ]   [ # 7 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

just to be sure, was it the change to site.yml or the change to environment.rb? or both?

Profile
 
Dentharg
Posted: 08 April 2009 07:02 AM   [ Ignore ]   [ # 8 ]  
Newbie
Rank
Total Posts:  20
Joined  2008-07-11

Only to environment.rb.
I’ve pasted my current auth. settings from site.yml.

Profile
 
Reinier Balt
Posted: 08 April 2009 07:15 AM   [ Ignore ]   [ # 9 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

ok, thanks. I’ll put this fix in for 1.7.1 / 1.8

Profile
 
   
 
 
‹‹ Required gems for install      Mail to Tracks ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1589 seconds

Atom Feed
RSS 2.0