{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/20285","labels_url":"https://api.github.com/repos/saltstack/salt/issues/20285/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/20285/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/20285/events","html_url":"https://github.com/saltstack/salt/issues/20285","id":56184554,"number":20285,"title":"API fails with 500 when attempting to login","user":{"login":"luckenbach","id":533852,"avatar_url":"https://avatars.githubusercontent.com/u/533852?v=3","gravatar_id":"","url":"https://api.github.com/users/luckenbach","html_url":"https://github.com/luckenbach","followers_url":"https://api.github.com/users/luckenbach/followers","following_url":"https://api.github.com/users/luckenbach/following{/other_user}","gists_url":"https://api.github.com/users/luckenbach/gists{/gist_id}","starred_url":"https://api.github.com/users/luckenbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckenbach/subscriptions","organizations_url":"https://api.github.com/users/luckenbach/orgs","repos_url":"https://api.github.com/users/luckenbach/repos","events_url":"https://api.github.com/users/luckenbach/events{/privacy}","received_events_url":"https://api.github.com/users/luckenbach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Medium%20Severity","name":"Medium Severity","color":"fad8c7"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-API","name":"Salt-API","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":211,"closed_issues":412,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2015-02-02T18:02:41Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-02-02T00:04:13Z","updated_at":"2015-02-02T21:50:29Z","closed_at":null,"body":"Using the CherryPy API I regularly see the API stop allowing logins, running the API in debug/foreground this is what I see\r\n```\r\nINFO    ] 216.46.234.124 - - [01/Feb/2015:23:51:00] \"POST /login HTTP/1.1\" 500 57 \"\" \"python-requests/2.3.0 CPython/2.6.6 Linux/2.6.32-504.3.3.el6.x86_64\"\r\n[DEBUG   ] Error while processing request for: /login\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.6/site-packages/saltapi/netapi/rest_cherrypy/app.py\", line 292, in hypermedia_handler\r\n    ret = cherrypy.serving.request._hypermedia_inner_handler(*args, **kwargs)\r\n  File \"/usr/lib/python2.6/site-packages/cherrypy/_cpdispatch.py\", line 61, in __call__\r\n    return self.callable(*self.args, **self.kwargs)\r\n  File \"/usr/lib/python2.6/site-packages/saltapi/netapi/rest_cherrypy/app.py\", line 998, in POST\r\n    token = self.auth.mk_token(creds)\r\n  File \"/usr/lib/python2.6/site-packages/salt/auth/__init__.py\", line 385, in mk_token\r\n    tdata = self._send_token_request(load)\r\n  File \"/usr/lib/python2.6/site-packages/salt/auth/__init__.py\", line 320, in _send_token_request\r\n    tdata = sreq.send('clear', load)\r\n  File \"/usr/lib/python2.6/site-packages/salt/payload.py\", line 224, in send\r\n    'SaltReqTimeoutError: after {0} seconds, ran {1} tries'.format(timeout * tried, tried)\r\nSaltReqTimeoutError: SaltReqTimeoutError: after 60 seconds, ran 1 tries\r\n```\r\n\r\nRestarting the API resolves this error.\r\n\r\nWhat else should I be looking at if anything?\r\n\r\n```\r\n           Salt: 2014.7.0\r\n         Python: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)\r\n         Jinja2: 2.2.1\r\n       M2Crypto: 0.20.2\r\n msgpack-python: 0.1.13\r\n   msgpack-pure: Not Installed\r\n       pycrypto: 2.0.1\r\n        libnacl: Not Installed\r\n         PyYAML: 3.10\r\n          ioflo: Not Installed\r\n          PyZMQ: 14.3.1\r\n           RAET: Not Installed\r\n            ZMQ: 3.2.4\r\n           Mako: Not Installed\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/72545432","html_url":"https://github.com/saltstack/salt/issues/20285#issuecomment-72545432","issue_url":"https://api.github.com/repos/saltstack/salt/issues/20285","id":72545432,"user":{"login":"whiteinge","id":91293,"avatar_url":"https://avatars.githubusercontent.com/u/91293?v=3","gravatar_id":"","url":"https://api.github.com/users/whiteinge","html_url":"https://github.com/whiteinge","followers_url":"https://api.github.com/users/whiteinge/followers","following_url":"https://api.github.com/users/whiteinge/following{/other_user}","gists_url":"https://api.github.com/users/whiteinge/gists{/gist_id}","starred_url":"https://api.github.com/users/whiteinge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whiteinge/subscriptions","organizations_url":"https://api.github.com/users/whiteinge/orgs","repos_url":"https://api.github.com/users/whiteinge/repos","events_url":"https://api.github.com/users/whiteinge/events{/privacy}","received_events_url":"https://api.github.com/users/whiteinge/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T21:50:29Z","updated_at":"2015-02-02T21:50:29Z","body":"Noted. We'll try to reproduce by scripting a bunch of back-to-back login requests against PAM.\r\n\r\nYou can still benefit from user account verification just without requiring the separate login step by switching to the `/run` URL. It works the same, only diff is it doesn't require the token in the request:\r\n\r\n```\r\ncurl -sS https://localhost:8000/run -d username=theuser -d password=thepass -d eauth=pam -d client=local -d tgt='*' -d fun=test.ping\r\n```"}}