dev.bm: Could not login
using the nagios check:
root@elephant:/usr/lib/check_mk_agent/local# ./nagios-webapp_login.py Traceback (most recent call last): File "./nagios-webapp_login.py", line 76, in run_tests(read_config()) File "./nagios-webapp_login.py", line 34, in run_tests auth = parse(authenticate(api, usr)) File "./nagios-webapp_login.py", line 58, in authenticate M = usr.process_challenge( safe_unhexlify(init['salt']), safe_unhexlify(init['B']) ) KeyError: 'salt'
using the webapp:
Feb 27 18:09:03 elephant webapp[5851]: Started POST "/1/sessions.json" for 0.0.0.0 at 2014-02-27 18:09:03 +0000 Feb 27 18:09:03 elephant webapp[5851]: Processing by V1::SessionsController#create as JSON Feb 27 18:09:03 elephant webapp[5851]: Parameters: {"login"=>"varac", "A"=>"eae3d8ad49414a51abfb3700e99f52d7977562fa622dfc61f181628f79d460f2f718ee4f603a9e12bc1fc38b088b24dedf7f913c470b537d8fc080ad4540bc7e228e0a 60bd09a618343efb50024b2e5c0de9c36fe40050fb91bc36c403e0f3963ac2a117160286792d773835cdc594026dad1c53e604d4e7f34d1494ee69bfbc"} Feb 27 18:09:03 elephant webapp[5851]: 401 Unauthorized: Feb 27 18:09:03 elephant webapp[5851]: /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit'#012/usr/lib/ruby/1.9.1/net/http.rb:745:in `start'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest-1.1.3/lib/couchrest/rest_api.rb:94:in `execute'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest-1.1.3/lib/couchrest/rest_api.rb:74:in `head'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest-1.1.3/lib/couchrest/server.rb:58:in `database!'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/connection.rb:38:in `prepare_database'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/connection.rb:26:in `database'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest-1.1.3/lib/couchrest/support/inheritable_attributes.rb:48:in `database'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/connection.rb:26:in `database'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:413:in `use_database'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:418:in `execute'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:61:in `rows'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:81:in `docs'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:74:in `all'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:89:in `first'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:523:in `find_by_login'#012/srv/leap/webapp/users/lib/warden/strategies/secure_remote_password.rb:44:in `initialize!'#012/srv/leap/webapp/users/lib/warden/strategies/secure_remote_password.rb:13:in `authenticate!'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/strategies/base.rb:53:in `_run!'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/proxy.rb:354:in `block in _run_strategies_for'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/proxy.rb:349:in `each'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/proxy.rb:349:in `_run_strategies_for'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/proxy.rb:319:in `_perform_authentication'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/proxy.rb:127:in `authenticate!'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rails_warden-0.5.7/lib/rails_warden/controller_mixin.rb:54:in `authenticate!'#012/srv/leap/webapp/users/app/controllers/v1/sessions_controller.rb:18:in `create'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/implicit_render.rb:4:in `send_action'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:167:in `process_action'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/rendering.rb:10:in `process_action'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:18:in `block in process_action'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:447:in `_run__4225336153999236410__process_action__3639796468595189384__callbacks'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:17:in `process_action'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/rescue.rb:29:in `process_action'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `block in instrument'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in `instrument'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `instrument'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:29:in `process_action'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:121:in `process'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:45:in `process'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal.rb:203:in `dispatch'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal.rb:246:in `block in action'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:73:in `call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:36:in `call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:608:in `call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/http_accept_language-2.0.0/lib/http_accept_language/middleware.rb:13:in `call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/client_side_validations-3.2.6/lib/client_side_validations/middleware.rb:17:in `call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:35:in `call'#012/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2. Feb 27 18:09:03 elephant webapp[5851]: Completed 500 Internal Server Error in 8.5ms (Views: 0.3ms)
(from redmine: created on 2014-02-27, closed on 2014-02-27)