martin-denizet / redmine_login_audit

Redmine plugin to log successful login attempts in Redmine
44 stars 30 forks source link

Failed to see login_audit page (error 500) #4

Closed cih997 closed 10 years ago

cih997 commented 10 years ago

Redmine 2.4.1 Branch develop

Log:

Started GET "/login_audit" for 130.255.153.214 at Mon Nov 25 15:00:45 +0100 2013

SyntaxError (/var/www/aspexi-prod/redmine/plugins/redmine_login_audit/app/controllers/login_audit_controller.rb:31: syntax error, unexpected ':', expecting kEND redirect_to action: 'index', status: :found ^ /var/www/aspexi-prod/redmine/plugins/redmine_login_audit/app/controllers/login_audit_controller.rb:31: syntax error, unexpected ',', expecting kEND redirect_to action: 'index', status: :found ^ /var/www/aspexi-prod/redmine/plugins/redmine_login_audit/app/controllers/login_audit_controller.rb:41: syntax error, unexpected ':', expecting kEND redirect_to action: 'index', status: :found ^ /var/www/aspexi-prod/redmine/plugins/redmine_login_audit/app/controllers/login_audit_controller.rb:41: syntax error, unexpected ',', expecting kEND redirect_to action: 'index', status: :found ^): activesupport (3.2.15) lib/active_support/dependencies.rb:251:in require' activesupport (3.2.15) lib/active_support/dependencies.rb:251:inrequire' activesupport (3.2.15) lib/active_support/dependencies.rb:236:in load_dependency' activesupport (3.2.15) lib/active_support/dependencies.rb:251:inrequire' activesupport (3.2.15) lib/active_support/dependencies.rb:359:in require_or_load' activesupport (3.2.15) lib/active_support/dependencies.rb:502:inload_missing_constant' activesupport (3.2.15) lib/active_support/dependencies.rb:192:in const_missing' activesupport (3.2.15) lib/active_support/dependencies.rb:190:ineach' activesupport (3.2.15) lib/active_support/dependencies.rb:190:in const_missing' activesupport (3.2.15) lib/active_support/inflector/methods.rb:219:inconstantize' activesupport (3.2.15) lib/active_support/inflector/methods.rb:218:in each' activesupport (3.2.15) lib/active_support/inflector/methods.rb:218:inconstantize' activesupport (3.2.15) lib/active_support/dependencies.rb:554:in get' actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:69:incontroller_reference' actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:54:in controller' actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:32:incall' journey (1.0.4) lib/journey/router.rb:68:in call' journey (1.0.4) lib/journey/router.rb:56:ineach' journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:608:incall' rack-openid (1.3.1) lib/rack/openid.rb:98:in call' actionpack (3.2.15) lib/action_dispatch/middleware/best_standards_support.rb:17:incall' rack (1.4.5) lib/rack/etag.rb:23:in call' rack (1.4.5) lib/rack/conditionalget.rb:25:incall' actionpack (3.2.15) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.15) lib/action_dispatch/middleware/params_parser.rb:21:incall' actionpack (3.2.15) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.5) lib/rack/session/abstract/id.rb:210:incontext' rack (1.4.5) lib/rack/session/abstract/id.rb:205:in call' actionpack (3.2.15) lib/action_dispatch/middleware/cookies.rb:341:incall' activerecord (3.2.15) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.15) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall' actionpack (3.2.15) lib/action_dispatch/middleware/callbacks.rb:28:in call' activesupport (3.2.15) lib/active_support/callbacks.rb:405:in_run848220475call4callbacks' activesupport (3.2.15) lib/active_support/callbacks.rb:405:in send' activesupport (3.2.15) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.15) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.15) lib/active_support/callbacks.rb:81:insend' activesupport (3.2.15) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.15) lib/action_dispatch/middleware/callbacks.rb:27:incall' actionpack (3.2.15) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.15) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall' actionpack (3.2.15) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.15) lib/rails/rack/logger.rb:32:incall_app' railties (3.2.15) lib/rails/rack/logger.rb:16:in call' activesupport (3.2.15) lib/active_support/tagged_logging.rb:22:intagged' railties (3.2.15) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.15) lib/action_dispatch/middleware/request_id.rb:22:incall' rack (1.4.5) lib/rack/methodoverride.rb:21:in call' rack (1.4.5) lib/rack/runtime.rb:17:incall' activesupport (3.2.15) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.5) lib/rack/lock.rb:15:incall' actionpack (3.2.15) lib/action_dispatch/middleware/static.rb:63:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward' rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup' rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall' railties (3.2.15) lib/rails/engine.rb:484:in call' railties (3.2.15) lib/rails/application.rb:231:incall' railties (3.2.15) lib/rails/railtie/configurable.rb:30:in send' railties (3.2.15) lib/rails/railtie/configurable.rb:30:inmethod_missing' passenger (3.0.12) lib/phusion_passenger/rack/request_handler.rb:96:in process_request' passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:513:inaccept_and_process_next_request' passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:274:in main_loop' passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:206:instart_request_handler' passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:171:in send' passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:171:inhandle_spawn_application' passenger (3.0.12) lib/phusion_passenger/utils.rb:479:in safe_fork' passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:166:inhandle_spawn_application' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `send__' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in server_main_loop' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:instart_synchronously' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:180:in start' passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:129:instart' passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:253:in spawn_rack_application' passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add' passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:246:in spawn_rack_application' passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:82:insynchronize' passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:79:in synchronize' passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:244:inspawn_rack_application' passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:137:in spawn_application' passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:275:inhandle_spawn_application' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in __send__' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop' passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.12) helper-scripts/passenger-spawn-server:99

martin-denizet commented 10 years ago

I was not able to replicate in my WEBrick dev env. I'll test on Apache/Passenger. You can comment line 31 and 41 if it's urgent.

cih997 commented 10 years ago

I commented those lines and works fine now.

martin-denizet commented 10 years ago

Can you please test if version 0.1.3 solves your issue?

cih997 commented 10 years ago

Works like a charm. Good work.