{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/20246","labels_url":"https://api.github.com/repos/saltstack/salt/issues/20246/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/20246/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/20246/events","html_url":"https://github.com/saltstack/salt/issues/20246","id":56018108,"number":20246,"title":"TokenAuthenticationError: Authentication failure of type \"token\" occurred for user saltdev.","user":{"login":"arthurlogilab","id":445200,"avatar_url":"https://avatars.githubusercontent.com/u/445200?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurlogilab","html_url":"https://github.com/arthurlogilab","followers_url":"https://api.github.com/users/arthurlogilab/followers","following_url":"https://api.github.com/users/arthurlogilab/following{/other_user}","gists_url":"https://api.github.com/users/arthurlogilab/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurlogilab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurlogilab/subscriptions","organizations_url":"https://api.github.com/users/arthurlogilab/orgs","repos_url":"https://api.github.com/users/arthurlogilab/repos","events_url":"https://api.github.com/users/arthurlogilab/events{/privacy}","received_events_url":"https://api.github.com/users/arthurlogilab/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Fixed%20Pending%20Verification","name":"Fixed Pending Verification","color":"d4c5f9"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Info%20Needed","name":"Info Needed","color":"bfdadc"}],"state":"closed","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":238,"closed_issues":451,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2015-03-10T04:39:38Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-01-30T10:37:53Z","updated_at":"2015-03-10T04:39:38Z","closed_at":"2015-03-10T04:39:38Z","body":"A previously working salt-api call is now failing on TokenAuthenticationError \r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/salt/netapi/rest_cherrypy/app.py\", line 347, in hypermedia_handler\r\n    ret = cherrypy.serving.request._hypermedia_inner_handler(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py\", line 34, in __call__\r\n    return self.callable(*self.args, **self.kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/netapi/rest_cherrypy/app.py\", line 718, in POST\r\n    token=cherrypy.session.get('token')))\r\n  File \"/usr/lib/python2.7/dist-packages/salt/netapi/rest_cherrypy/app.py\", line 604, in exec_lowstate\r\n    ret = self.api.run(chunk)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/netapi/__init__.py\", line 47, in run\r\n    ret = l_fun(*f_call.get('args', ()), **f_call.get('kwargs', {}))\r\n  File \"/usr/lib/python2.7/dist-packages/salt/netapi/__init__.py\", line 96, in runner\r\n    return runner.cmd_sync(kwargs, timeout=timeout)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/runner.py\", line 193, in cmd_sync\r\n    job = self.master_call(**reformatted_low)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/runner.py\", line 137, in master_call\r\n    raise_error(**ret['error'])\r\n  File \"/usr/lib/python2.7/dist-packages/salt/utils/error.py\", line 32, in raise_error\r\n    raise ex(message)\r\nTokenAuthenticationError: Authentication failure of type \"token\" occurred for user saltdev.\r\n```\r\n\r\nLooking at the salt-master log and the jobslist show that the command launched via salt-api has indeed been launched so some part of the authentication must have worked. \r\n\r\n```\r\n# salt-api  --versions-report\r\n           Salt: 2014.7.1\r\n         Python: 2.7.6 (default, Mar 22 2014, 22:59:56)\r\n         Jinja2: 2.7.2\r\n       M2Crypto: 0.21.1\r\n msgpack-python: 0.3.0\r\n   msgpack-pure: Not Installed\r\n       pycrypto: 2.6.1\r\n        libnacl: Not Installed\r\n         PyYAML: 3.10\r\n          ioflo: Not Installed\r\n          PyZMQ: 14.0.1\r\n           RAET: Not Installed\r\n            ZMQ: 4.0.4\r\n           Mako: 0.9.1\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/77994882","html_url":"https://github.com/saltstack/salt/issues/20246#issuecomment-77994882","issue_url":"https://api.github.com/repos/saltstack/salt/issues/20246","id":77994882,"user":{"login":"rallytime","id":6547906,"avatar_url":"https://avatars.githubusercontent.com/u/6547906?v=3","gravatar_id":"","url":"https://api.github.com/users/rallytime","html_url":"https://github.com/rallytime","followers_url":"https://api.github.com/users/rallytime/followers","following_url":"https://api.github.com/users/rallytime/following{/other_user}","gists_url":"https://api.github.com/users/rallytime/gists{/gist_id}","starred_url":"https://api.github.com/users/rallytime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rallytime/subscriptions","organizations_url":"https://api.github.com/users/rallytime/orgs","repos_url":"https://api.github.com/users/rallytime/repos","events_url":"https://api.github.com/users/rallytime/events{/privacy}","received_events_url":"https://api.github.com/users/rallytime/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T04:39:38Z","updated_at":"2015-03-10T04:39:38Z","body":"Closing since we haven't heard back. Leave a comment if this remains a problem after testing the new release and we can re-open. Thanks!"}}