Open possebon opened 9 years ago
It looks like you are using Rails 4, the code is design for Rails 3 and from Redmine documentation version 2.6 works only for Rails 3. by the way, did you run db migrate?
fix it for you look at "redmine3_rails4_patch" branch
Thank you very much. Working!
On 3/3/15, yossi edri notifications@github.com wrote:
fix it for you look at "redmine3_rails4_patch" branch
Reply to this email directly or view it on GitHub: https://github.com/yossiedri/Redmine-Admin-Monitor-Plugin/issues/7#issuecomment-76972557
Hi all,
I installed the Admin Monitor plugin on my Redmine 2.6 server following the instructions and when I click on Alerts Monitor I have this page:
Internal error
An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
Back
Looking the production.log I have this:
Started GET "/admin_monitor_alerts?conditions=false" for 10.50.30.1 at 2015-03-02 22:12:20 -0300 Processing by AdminMonitorAlertsController#index as HTML Parameters: {"conditions"=>"false"} Current user: fernando.possebon (id=3) DEPRECATION WARNING: #paginate with a Symbol and/or find options is depreceted and will be removed. Use a scope instead. (called from deprecated_paginate at /var/www/html/redmine/lib/redmine/pagination.rb:133) Completed 500 Internal Server Error in 10ms
NoMethodError (undefined method
update_or_create' for #<Class:0x00000005423da8>): activerecord (4.2.0) lib/active_record/dynamic_matchers.rb:26:in
method_missing' plugins/redmine_admin_monitor/lib/redmine_admin_monitor/patches/application_controller_patch.rb:19:inrender_500' activesupport (4.2.0) lib/active_support/rescuable.rb:80:in
call' activesupport (4.2.0) lib/active_support/rescuable.rb:80:inrescue_with_handler' actionpack (4.2.0) lib/action_controller/metal/rescue.rb:15:in
rescue_with_handler' actionpack (4.2.0) lib/action_controller/metal/rescue.rb:32:inrescue in process_action' actionpack (4.2.0) lib/action_controller/metal/rescue.rb:29:in
process_action' actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:31:inblock in process_action' activesupport (4.2.0) lib/active_support/notifications.rb:164:in
block in instrument' activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:ininstrument' activesupport (4.2.0) lib/active_support/notifications.rb:164:in
instrument' actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:30:inprocess_action' actionpack (4.2.0) lib/action_controller/metal/params_wrapper.rb:250:in
process_action' activerecord (4.2.0) lib/active_record/railties/controller_runtime.rb:18:inprocess_action' actionpack (4.2.0) lib/abstract_controller/base.rb:137:in
process' actionview (4.2.0) lib/action_view/rendering.rb:30:inprocess' actionpack (4.2.0) lib/action_controller/metal.rb:195:in
dispatch' actionpack (4.2.0) lib/action_controller/metal/rack_delegation.rb:13:indispatch' actionpack (4.2.0) lib/action_controller/metal.rb:236:in
block in action' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:incall' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in
dispatch' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:42:inserve' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:in
block in serve' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:ineach' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in
serve' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:incall' rack-openid (1.4.2) lib/rack/openid.rb:98:in
call' request_store (1.0.5) lib/request_store/middleware.rb:9:incall' rack (1.6.0) lib/rack/etag.rb:24:in
call' rack (1.6.0) lib/rack/conditionalget.rb:25:incall' rack (1.6.0) lib/rack/head.rb:13:in
call' actionpack-xml_parser (1.0.1) lib/action_dispatch/xml_params_parser.rb:16:incall' actionpack (4.2.0) lib/action_dispatch/middleware/params_parser.rb:27:in
call' actionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:incall' rack (1.6.0) lib/rack/session/abstract/id.rb:225:in
context' rack (1.6.0) lib/rack/session/abstract/id.rb:220:incall' actionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:in
call' activerecord (4.2.0) lib/active_record/query_cache.rb:36:incall' activerecord (4.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in
call' actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:29:inblock in call' activesupport (4.2.0) lib/active_support/callbacks.rb:88:in
call' activesupport (4.2.0) lib/active_support/callbacks.rb:88:in_run_callbacks' activesupport (4.2.0) lib/active_support/callbacks.rb:734:in
_run_call_callbacks' activesupport (4.2.0) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in
call' actionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:incall' actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in
call' actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:incall' railties (4.2.0) lib/rails/rack/logger.rb:38:in
call_app' railties (4.2.0) lib/rails/rack/logger.rb:20:inblock in call' activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in
block in tagged' activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:intagged' activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in
tagged' railties (4.2.0) lib/rails/rack/logger.rb:20:incall' actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in
call' rack (1.6.0) lib/rack/methodoverride.rb:22:incall' rack (1.6.0) lib/rack/runtime.rb:18:in
call' activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall' actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in
call' rack (1.6.0) lib/rack/sendfile.rb:113:incall' railties (4.2.0) lib/rails/engine.rb:518:in
call' railties (4.2.0) lib/rails/application.rb:164:incall' railties (4.2.0) lib/rails/railtie.rb:194:in
public_send' railties (4.2.0) lib/rails/railtie.rb:194:inmethod_missing' passenger (4.0.59) lib/phusion_passenger/rack/thread_handler_extension.rb:74:in
process_request' passenger (4.0.59) lib/phusion_passenger/request_handler/thread_handler.rb:141:inaccept_and_process_next_request' passenger (4.0.59) lib/phusion_passenger/request_handler/thread_handler.rb:109:in
main_loop' passenger (4.0.59) lib/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'I have ruby 2.1.2p95 and Rails 4.2.0
Any clue?