{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/21740","labels_url":"https://api.github.com/repos/saltstack/salt/issues/21740/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/21740/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/21740/events","html_url":"https://github.com/saltstack/salt/issues/21740","id":62493453,"number":21740,"title":"authentication/ timeout errors with Cherry api","user":{"login":"soodr","id":1273518,"avatar_url":"https://avatars.githubusercontent.com/u/1273518?v=3","gravatar_id":"","url":"https://api.github.com/users/soodr","html_url":"https://github.com/soodr","followers_url":"https://api.github.com/users/soodr/followers","following_url":"https://api.github.com/users/soodr/following{/other_user}","gists_url":"https://api.github.com/users/soodr/gists{/gist_id}","starred_url":"https://api.github.com/users/soodr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soodr/subscriptions","organizations_url":"https://api.github.com/users/soodr/orgs","repos_url":"https://api.github.com/users/soodr/repos","events_url":"https://api.github.com/users/soodr/events{/privacy}","received_events_url":"https://api.github.com/users/soodr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Info%20Needed","name":"Info Needed","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","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":236,"closed_issues":457,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2015-03-18T20:40:51Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-03-17T19:19:41Z","updated_at":"2015-03-19T00:48:05Z","closed_at":null,"body":"This looks similar to #20285\r\n\r\nSalt api throws a timeout . It worked briefly for a while .\r\n\r\n(salt)-bash-4.1$ curl -sSk https://localhost:9000/login -H 'Accept: application/x-yaml' -d username='jenkins' -d password='***' -d eauth='pam'\r\nreturn: \"Traceback (most recent call last):\\n  File \\\"/pyvenv/salt/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/app.py\\\"\\\r\n  , line 389, in hypermedia_handler\\n    ret = cherrypy.serving.request._hypermedia_inner_handler(*args,\\\r\n  \\ **kwargs)\\n  File \\\"/pyvenv/salt/lib/python2.7/site-packages/CherryPy-3.2.3-py2.7.egg/cherrypy/_cpdispatch.py\\\"\\\r\n  , line 34, in __call__\\n    return self.callable(*self.args, **self.kwargs)\\n  File\\\r\n  \\ \\\"/pyvenv/salt/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/app.py\\\"\\\r\n  , line 1366, in POST\\n    token = self.auth.mk_token(creds)\\n  File \\\"/pyvenv/salt/lib/python2.7/site-packages/salt/auth/__init__.py\\\"\\\r\n  , line 408, in mk_token\\n    tdata = self._send_token_request(load)\\n  File \\\"/pyvenv/salt/lib/python2.7/site-packages/salt/auth/__init__.py\\\"\\\r\n  , line 343, in _send_token_request\\n    tdata = sreq.send('clear', load)\\n  File\\\r\n  \\ \\\"/pyvenv/salt/lib/python2.7/site-packages/salt/payload.py\\\", line 228, in send\\n\\\r\n  \\    'SaltReqTimeoutError: after {0} seconds, ran {1} tries'.format(timeout * tried,\\\r\n  \\ tried)\\nSaltReqTimeoutError: SaltReqTimeoutError: after 60 seconds, ran 1 tries\\n\"\r\nstatus: 500\r\n\r\nLocal authentication on master no longer works.\r\n\r\n(salt)[root@ip-192-168-1-151 ~]# salt -a pam '*' test.ping\r\nusername: jenkins\r\npassword:\r\n[ERROR   ] Salt request timed out. If this error persists, worker_threads may ne\r\ned to be increased.\r\nFailed to authenticate!  This is most likely because this user is not permitted\r\nto execute commands, but there is a small possibility that a disk error occurred\r\n (check disk/inode usage).\r\n\r\n           Salt: 2015.2.0rc1\r\n         Python: 2.7.8 (default, Sep 24 2014, 11:50:00)\r\n         Jinja2: 2.7.3\r\n       M2Crypto: 0.22\r\n msgpack-python: 0.4.5\r\n   msgpack-pure: Not Installed\r\n       pycrypto: 2.6.1\r\n        libnacl: Not Installed\r\n         PyYAML: 3.11\r\n          ioflo: Not Installed\r\n          PyZMQ: 14.3.1\r\n           RAET: Not Installed\r\n            ZMQ: 4.0.4\r\n           Mako: 1.0.0\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/83238099","html_url":"https://github.com/saltstack/salt/issues/21740#issuecomment-83238099","issue_url":"https://api.github.com/repos/saltstack/salt/issues/21740","id":83238099,"user":{"login":"soodr","id":1273518,"avatar_url":"https://avatars.githubusercontent.com/u/1273518?v=3","gravatar_id":"","url":"https://api.github.com/users/soodr","html_url":"https://github.com/soodr","followers_url":"https://api.github.com/users/soodr/followers","following_url":"https://api.github.com/users/soodr/following{/other_user}","gists_url":"https://api.github.com/users/soodr/gists{/gist_id}","starred_url":"https://api.github.com/users/soodr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soodr/subscriptions","organizations_url":"https://api.github.com/users/soodr/orgs","repos_url":"https://api.github.com/users/soodr/repos","events_url":"https://api.github.com/users/soodr/events{/privacy}","received_events_url":"https://api.github.com/users/soodr/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T00:48:04Z","updated_at":"2015-03-19T00:48:04Z","body":"@whiteinge : The difference is that there are no concurrent requests. \r\n\r\nInterestingly, I switched to RAET and was able to successfully login and use the token --- on a Linux system.\r\n\r\nCurl on a windows , gives me an authentication error:\r\n\r\n      <h2>401 Unauthorized</h2>\r\n      <p>Could not authenticate using provided credentials</p>\r\n      <pre id=\"traceback\">Traceback (most recent call last):\r\nFile \"/pyvenv/salt/lib/python2.7/site-packages/CherryPy-3.2.3-py2.7.egg/cherry\r\n/_cprequest.py\", line 656, in respond\r\n  response.body = self.handler()\r\nFile \"/pyvenv/salt/lib/python2.7/site-packages/CherryPy-3.2.3-py2.7.egg/cherry\r\n/lib/encoding.py\", line 188, in __call__\r\n  self.body = self.oldhandler(*args, **kwargs)\r\nFile \"/pyvenv/salt/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/app.p\r\n, line 389, in hypermedia_handler\r\n  ret = cherrypy.serving.request._hypermedia_inner_handler(*args, **kwargs)\r\nFile \"/pyvenv/salt/lib/python2.7/site-packages/CherryPy-3.2.3-py2.7.egg/cherry\r\n/_cpdispatch.py\", line 34, in __call__\r\n  return self.callable(*self.args, **self.kwargs)\r\nFile \"/pyvenv/salt/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/app.p\r\n, line 1369, in POST\r\n  'Could not authenticate using provided credentials')\r\nTPError: (401, 'Could not authenticate using provided credentials')\r\npre>\r\n  <div id=\"powered_by\">\r\n  <span>Powered by <a href=\"http://www.cherrypy.org\">CherryPy 3.2.3</a></span>\r\n\r\n  </div>\r\n  </body>\r\nhtml>"}}