yossiedri / Redmine-Admin-Monitor-Plugin

Redmine Admine Errors and Exceptions Monitor plugin
6 stars 9 forks source link

Redmine 2.6 and Admine Monitor plugin not working #7

Open possebon opened 9 years ago

possebon commented 9 years ago

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:inmethod_missing' plugins/redmine_admin_monitor/lib/redmine_admin_monitor/patches/application_controller_patch.rb:19:in render_500' activesupport (4.2.0) lib/active_support/rescuable.rb:80:incall' activesupport (4.2.0) lib/active_support/rescuable.rb:80:in rescue_with_handler' actionpack (4.2.0) lib/action_controller/metal/rescue.rb:15:inrescue_with_handler' actionpack (4.2.0) lib/action_controller/metal/rescue.rb:32:in rescue in process_action' actionpack (4.2.0) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:31:in block in process_action' activesupport (4.2.0) lib/active_support/notifications.rb:164:inblock in instrument' activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (4.2.0) lib/active_support/notifications.rb:164:ininstrument' actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:30:in process_action' actionpack (4.2.0) lib/action_controller/metal/params_wrapper.rb:250:inprocess_action' activerecord (4.2.0) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (4.2.0) lib/abstract_controller/base.rb:137:inprocess' actionview (4.2.0) lib/action_view/rendering.rb:30:in process' actionpack (4.2.0) lib/action_controller/metal.rb:195:indispatch' actionpack (4.2.0) lib/action_controller/metal/rack_delegation.rb:13:in dispatch' actionpack (4.2.0) lib/action_controller/metal.rb:236:inblock in action' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:indispatch' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:42:in serve' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:inblock in serve' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in each' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:inserve' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:in call' rack-openid (1.4.2) lib/rack/openid.rb:98:incall' request_store (1.0.5) lib/request_store/middleware.rb:9:in call' rack (1.6.0) lib/rack/etag.rb:24:incall' rack (1.6.0) lib/rack/conditionalget.rb:25:in call' rack (1.6.0) lib/rack/head.rb:13:incall' actionpack-xml_parser (1.0.1) lib/action_dispatch/xml_params_parser.rb:16:in call' actionpack (4.2.0) lib/action_dispatch/middleware/params_parser.rb:27:incall' actionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:in call' rack (1.6.0) lib/rack/session/abstract/id.rb:225:incontext' rack (1.6.0) lib/rack/session/abstract/id.rb:220:in call' actionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:incall' activerecord (4.2.0) lib/active_record/query_cache.rb:36:in call' activerecord (4.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:647:incall' actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:29:in block in call' activesupport (4.2.0) lib/active_support/callbacks.rb:88:incall' 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:in run_callbacks' actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:27:incall' actionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:in call' actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:incall' actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in call' railties (4.2.0) lib/rails/rack/logger.rb:38:incall_app' railties (4.2.0) lib/rails/rack/logger.rb:20:in block in call' activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:inblock in tagged' activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in tagged' activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:intagged' railties (4.2.0) lib/rails/rack/logger.rb:20:in call' actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:incall' rack (1.6.0) lib/rack/methodoverride.rb:22:in call' rack (1.6.0) lib/rack/runtime.rb:18:incall' activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in call' actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:incall' rack (1.6.0) lib/rack/sendfile.rb:113:in call' railties (4.2.0) lib/rails/engine.rb:518:incall' railties (4.2.0) lib/rails/application.rb:164:in call' railties (4.2.0) lib/rails/railtie.rb:194:inpublic_send' railties (4.2.0) lib/rails/railtie.rb:194:in method_missing' passenger (4.0.59) lib/phusion_passenger/rack/thread_handler_extension.rb:74:inprocess_request' passenger (4.0.59) lib/phusion_passenger/request_handler/thread_handler.rb:141:in accept_and_process_next_request' passenger (4.0.59) lib/phusion_passenger/request_handler/thread_handler.rb:109:inmain_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?

yossiedri commented 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?

yossiedri commented 9 years ago

fix it for you look at "redmine3_rails4_patch" branch

possebon commented 9 years ago

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