sensu / sensu-admin

An admin webui for Sensu
MIT License
86 stars 50 forks source link

Resolve action throwing exceptions #63

Closed milosgajdos closed 11 years ago

milosgajdos commented 11 years ago

When clicking on resolve button(s) in sensu-admin Unicorn is throwing exceptions as it can't find routes fot this event - at least that's what I decrypted from the logs:

Started POST "/events/sensu.common.staging/chef_error_check/resolve" for 127.0.0.1 at 2013-01-14 00:44:36 +0000

ActionController::RoutingError (No route matches [POST] "/events/sensu.common.staging/chef_error_check/resolve"): actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' railties (3.2.8) lib/rails/rack/logger.rb:26:in call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:incall' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.1) lib/rack/methodoverride.rb:21:incall' rack (1.4.1) lib/rack/runtime.rb:17:in call' rack (1.4.1) lib/rack/lock.rb:15:incall' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward' rack-cache (1.2) lib/rack/cache/context.rb:143:in pass' rack-cache (1.2) lib/rack/cache/context.rb:155:ininvalidate' rack-cache (1.2) lib/rack/cache/context.rb:71:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall' railties (3.2.8) lib/rails/engine.rb:479:in call' railties (3.2.8) lib/rails/application.rb:223:incall' railties (3.2.8) lib/rails/railtie/configurable.rb:30:in method_missing' unicorn (4.4.0) lib/unicorn/http_server.rb:535:inprocess_client' unicorn (4.4.0) lib/unicorn/http_server.rb:610:in worker_loop' unicorn (4.4.0) lib/unicorn/http_server.rb:491:inspawn_missing_workers' unicorn (4.4.0) lib/unicorn/http_server.rb:141:in start' unicorn (4.4.0) bin/unicorn:121:in<top (required)>' /opt/sensu/admin/website/shared/bundle/ruby/1.9.1/bin/unicorn:23:in load' /opt/sensu/admin/website/shared/bundle/ruby/1.9.1/bin/unicorn:23:in

'

I made a video of it too: http://www.youtube.com/watch?v=xxx5vm6b9Nk

joshpasqualetto commented 11 years ago

Are you running the latest sensu-admin from master? This is because of the periods in the event name. This should be fixed in any recent version of sensu-admin but if you still experience the problem after updating let me know.

milosgajdos commented 11 years ago

I'm running v0.0.3 - basically I'm using the new sensu-admin recipe which you requested to be pulled in into sensu-chef codebase. So I presume that's the latest version.