Closed milosgajdos closed 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.
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.
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:in
call' railties (3.2.8) lib/rails/rack/logger.rb:26:incall_app' railties (3.2.8) lib/rails/rack/logger.rb:16:in
call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:incall' rack (1.4.1) lib/rack/methodoverride.rb:21:in
call' rack (1.4.1) lib/rack/runtime.rb:17:incall' rack (1.4.1) lib/rack/lock.rb:15:in
call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:incall' rack-cache (1.2) lib/rack/cache/context.rb:136:in
forward' rack-cache (1.2) lib/rack/cache/context.rb:143:inpass' rack-cache (1.2) lib/rack/cache/context.rb:155:in
invalidate' rack-cache (1.2) lib/rack/cache/context.rb:71:incall!' rack-cache (1.2) lib/rack/cache/context.rb:51:in
call' railties (3.2.8) lib/rails/engine.rb:479:incall' railties (3.2.8) lib/rails/application.rb:223:in
call' railties (3.2.8) lib/rails/railtie/configurable.rb:30:inmethod_missing' unicorn (4.4.0) lib/unicorn/http_server.rb:535:in
process_client' unicorn (4.4.0) lib/unicorn/http_server.rb:610:inworker_loop' unicorn (4.4.0) lib/unicorn/http_server.rb:491:in
spawn_missing_workers' unicorn (4.4.0) lib/unicorn/http_server.rb:141:instart' unicorn (4.4.0) bin/unicorn:121:in
<top (required)>' /opt/sensu/admin/website/shared/bundle/ruby/1.9.1/bin/unicorn:23:inload' /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