"ipa vault-add" failing with ipa: ERROR: an internal error has occurred
Second attempt shows:
[root@vm-131 ~]# ipa vault-add test --password password --type symmetric ipa: ERROR: vault with name "test" already exists
but
[root@vm-131 ~]# ipa vault-retrieve test --password password ipa: ERROR: No archived data.
# ipa vault-add test --password password --type symmetric
fails with ipa: ERROR: an internal error has occurred
Add the secret
# rpm -q freeipa-server freeipa-client ipa-server ipa-client 389-ds-base pki-ca krb5-server; uname -r freeipa-server-4.6.90.dev201711070924+git02c1d0e8-0.fc26.x86_64 freeipa-client-4.6.90.dev201711070924+git02c1d0e8-0.fc26.x86_64 package ipa-server is not installed package ipa-client is not installed 389-ds-base-1.3.7.7-1.fc26.x86_64 pki-ca-10.4.7-1.fc26.noarch krb5-server-1.15.1-28.fc26.x86_64 4.13.9-200.fc26.x86_64
In httpd_errors we see:
[Wed Nov 08 17:28:02.257146 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] ipa: ERROR: non-public: TypeError: Object of type 'bytes' is not JSON serializable [Wed Nov 08 17:28:02.257193 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] Traceback (most recent call last): [Wed Nov 08 17:28:02.257198 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib/python3.6/site-packages/ipaserver/rpcserver.py", line 370, in wsgi_execute [Wed Nov 08 17:28:02.257215 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] result = command(*args, **options) [Wed Nov 08 17:28:02.257220 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib/python3.6/site-packages/ipalib/frontend.py", line 450, in __call__ [Wed Nov 08 17:28:02.257224 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] return self.__do_call(*args, **options) [Wed Nov 08 17:28:02.257227 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib/python3.6/site-packages/ipalib/frontend.py", line 478, in __do_call [Wed Nov 08 17:28:02.257231 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] ret = self.run(*args, **options) [Wed Nov 08 17:28:02.257234 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib/python3.6/site-packages/ipalib/frontend.py", line 800, in run [Wed Nov 08 17:28:02.257238 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] return self.execute(*args, **options) [Wed Nov 08 17:28:02.257241 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib/python3.6/site-packages/ipaserver/plugins/vault.py", line 1071, in execute [Wed Nov 08 17:28:02.257245 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] nonce_iv=nonce, [Wed Nov 08 17:28:02.257248 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib/python3.6/site-packages/pki/__init__.py", line 372, in handler [Wed Nov 08 17:28:02.257252 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] return fn_call(inst, *args, **kwargs) [Wed Nov 08 17:28:02.257255 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib/python3.6/site-packages/pki/key.py", line 878, in archive_encrypted_data [Wed Nov 08 17:28:02.257259 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] return self.submit_request(request) [Wed Nov 08 17:28:02.257263 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib/python3.6/site-packages/pki/__init__.py", line 372, in handler [Wed Nov 08 17:28:02.257266 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] return fn_call(inst, *args, **kwargs) [Wed Nov 08 17:28:02.257270 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib/python3.6/site-packages/pki/key.py", line 653, in submit_request [Wed Nov 08 17:28:02.257273 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] sort_keys=True) [Wed Nov 08 17:28:02.257277 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib64/python3.6/json/__init__.py", line 238, in dumps [Wed Nov 08 17:28:02.257281 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] **kw).encode(obj) [Wed Nov 08 17:28:02.257284 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib64/python3.6/json/encoder.py", line 199, in encode [Wed Nov 08 17:28:02.257288 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] chunks = self.iterencode(o, _one_shot=True) [Wed Nov 08 17:28:02.257292 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib64/python3.6/json/encoder.py", line 257, in iterencode [Wed Nov 08 17:28:02.257295 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] return _iterencode(o, 0) [Wed Nov 08 17:28:02.257299 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib/python3.6/site-packages/pki/encoder.py", line 92, in default [Wed Nov 08 17:28:02.257302 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] return json.JSONEncoder.default(self, o) [Wed Nov 08 17:28:02.257306 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] File "/usr/lib64/python3.6/json/encoder.py", line 180, in default [Wed Nov 08 17:28:02.257310 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] o.__class__.__name__) [Wed Nov 08 17:28:02.257319 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] TypeError: Object of type 'bytes' is not JSON serializable [Wed Nov 08 17:28:02.257339 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] [Wed Nov 08 17:28:02.257690 2017] [wsgi:error] [pid 22743] [remote 10.0.0.131:47978] ipa: INFO: [jsonserver_session] admin@DOM-131.IPA.TEST: vault_archive_internal/1('test', session_key=b'\\t\\xa9,\\x0c\\xee\\x0e\\xc8\\x19-\\xea\\xfe\\xdb\\xef!\\xa18\\xe6\\xe0^\\r;\\x1c-8\\x03\\x99\\xa6i/\\xb5`\\x04[i{R:3N\\tl\\x06\\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\\xe7\\x0f3\\xd5\\t\\xa1G\\x93vO\\xe7\\xfc.\\x84\\xa5D\\xf3\\xde\\x14}}\\xff\\x1ap\\x89\\xf6;Bx\\xe4\\x82BjXZ\\xb6\\xfdQ\\x04\\xb9\\xbb\\xed\\x8e4S1V\\x92\\xdb\\xc9w\\xe4 \\x8b\\x05\\xd8\\xdd\\xc8\\x8f\\x15FK', nonce=b'\\x19k\\x98\\x13{bQ\\xb9', version='2.229'): InternalError
Duplicated of https://pagure.io/freeipa/issue/7242, but this ticket provides more data. So, I would go with this one.
Closed as duplicate of #7033
Metadata Update from @frenaud: - Issue close_status updated to: duplicate - Issue status updated to: Closed (was: Open)