Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token Service might return non-JSON result #2

Open
hjacobs opened this issue Jun 10, 2015 · 0 comments
Open

Token Service might return non-JSON result #2

hjacobs opened this issue Jun 10, 2015 · 0 comments
Labels

Comments

@hjacobs
Copy link
Contributor

hjacobs commented Jun 10, 2015

I often encounter errors on taupage startup, during the phase "push-taupage-yaml". This blocks the whole startup process
Jun 9 15:17:40 ip-172-31-169-18 berry: INFO: Rotated user credentials for myapp
Jun 9 15:17:40 ip-172-31-169-18 berry: INFO: Rotated client credentials for myapp
Jun 9 15:17:40 ip-172-31-169-18 kernel: [ 15.298998] init: plymouth-upstart-bridge main process ended, respawning
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: Traceback (most recent call last):
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: File "./init.d/01-push-taupage-yaml.py", line 54, in
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: main()
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: File "./init.d/01-push-taupage-yaml.py", line 20, in main
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: token = get_to
ken(config, 'taupage', ['uid']) or {}
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: File "/usr/local/lib/python3.4/dist-packages/taupage/init.py", line
87, in get_token
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: token = zign.api.get_named_token(scopes, 'services', token_name, user,
passwd, url=token_url, use_keyring=False)
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: File "/usr/local/lib/python3.4/dist-packages/zign/api.py", line 81, in g
et_named_token
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: result = get_new_token(realm, scope, user, password, url=url, insecure
=insecure)
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: File "/usr/local/lib/python3.4/dist-packages/zign/api.py", line 34, in g
et_new_token
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: return response.json()
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: File "/usr/lib/python3/dist-packages/requests/models.py", line 741, in j
son
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: return json.loads(self.text, **kwargs)
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: File "/usr/lib/python3.4/json/init.py", line 318, in loads
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: return _default_decoder.decode(s)
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: raise ValueError(errmsg("Expecting value", s, err.value)) from None
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: ValueError: Expecting value: line 1 column 1 (char 0)
Jun 9 15:17:41 ip-172-31-169-18 taupage-init: Failed to start 01-push-taupage-yaml.py

@hjacobs hjacobs added the bug label Jun 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant