I'm trying to run a check manually and get this error, how I can solve it?
Started POST "/checks/cron_check/submit" for x.x.x.x at 2014-04-16 22:22:40 -0300
Processing by ChecksController#submitcheck as /_
Parameters: {"subscribers"=>"all, webservers", "check"=>"cron_check"}
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
Setting Load (0.2ms) SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'use_environments' LIMIT 1
Setting Load (0.2ms) SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'api_server' LIMIT 1
Setting Load (0.2ms) SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'configure_server' LIMIT 1
Completed 500 Internal Server Error in 17ms
NoMethodError (undefined method 'code' for false:FalseClass):
app/models/check.rb:5:in submit_check' app/controllers/checks_controller.rb:8:insubmit_check'
I'm trying to run a check manually and get this error, how I can solve it?
Started POST "/checks/cron_check/submit" for x.x.x.x at 2014-04-16 22:22:40 -0300 Processing by ChecksController#submitcheck as /_ Parameters: {"subscribers"=>"all, webservers", "check"=>"cron_check"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 Setting Load (0.2ms) SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'use_environments' LIMIT 1 Setting Load (0.2ms) SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'api_server' LIMIT 1 Setting Load (0.2ms) SELECT "settings".* FROM "settings" WHERE "settings"."name" = 'configure_server' LIMIT 1 Completed 500 Internal Server Error in 17ms
NoMethodError (undefined method 'code' for false:FalseClass): app/models/check.rb:5:in
submit_check' app/controllers/checks_controller.rb:8:in
submit_check'Rendered /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/templates/rescues/_trace.erb (3.1ms) Rendered /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.3ms) Rendered /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (22.7ms)
Regards.