Skip to content

Instantly share code, notes, and snippets.

@laclaro
Created April 24, 2020 15:27
Show Gist options
  • Save laclaro/b9d331bd0ca5756ed5961c15ce0b5516 to your computer and use it in GitHub Desktop.
Save laclaro/b9d331bd0ca5756ed5961c15ce0b5516 to your computer and use it in GitHub Desktop.
privacyideaadm error to #49
~$ privacyidea -n -U http://localhost:5000 -a admin -p test token list
No cryptography package available. You can not enroll yubikeys with static password.
Traceback (most recent call last):
File "/path/to/privacyideaadm/venv/bin/privacyidea", line 7, in <module>
exec(compile(f.read(), __file__, 'exec'))
File "/path/to/privacyideaadm/scripts/privacyidea", line 134, in <module>
main()
File "/path/to/privacyideaadm/scripts/privacyidea", line 126, in main
cli(obj={})
File "/path/to/privacyideaadm/venv/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/path/to/privacyideaadm/venv/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/path/to/privacyideaadm/venv/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/path/to/privacyideaadm/venv/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/path/to/privacyideaadm/venv/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/path/to/privacyideaadm/venv/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/path/to/privacyideaadm/venv/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/path/to/privacyideaadm/privacyideautils/commands/token.py", line 170, in list
resp = client.listtoken(param)
File "/path/to/privacyideaadm/privacyideautils/clientutils.py", line 169, in listtoken
return self.get('/token/', param)
File "/path/to/privacyideaadm/privacyideautils/clientutils.py", line 144, in get
return self._send_response(r)
File "/path/to/privacyideaadm/privacyideautils/clientutils.py", line 103, in _send_response
description=r.text)
privacyideautils.clientutils.PrivacyIDEAClientError: 'ERR500: {"detail": null, "id": 1, "jsonrpc": "2.0", "result": {"error": {"code": -500, "message": "500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."}, "status": false}, "time": 1587741880.6964397, "version": "privacyIDEA unknown", "signature": "rsa_sha256_pss:21b3c29f00f4dc962d771ad5a628b84c549d1083b50894a66d3fabd97f37017b9eafa2ea6f5f694ab5c8bd27436a8f7ab70a7aa00287517cc63458fe21507ea263e24a8857441cd353bdacb67a6676da57c349dcb0af4a428faa2a8690f8c851aa024260f054405cb1100a173786c652eb6f518d1fed0226aeee58e5339ce5a19a59a93b1053fd84418785907d4a9777d80a9af2de6fc6f53b82e886ba92b3dc0913b7520d353893b104e3ab91c0ff16e86e135e3c3df0d7486c25201c1d84d4175b1a3cbf66bd5521ec537fa2daf8b49b005650359d157a9f059a4a84f807e6d2390fd5838b476c89df3c8768fd37eb201b1620319988db8a2933dcde9532dd"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment