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

[BUG] Error 500 on Configuration page #107

Open
louismaxx opened this issue Feb 5, 2025 · 1 comment
Open

[BUG] Error 500 on Configuration page #107

louismaxx opened this issue Feb 5, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@louismaxx
Copy link

Request Type

Bug

Work Environment

Question Answer
OS version (server) Windows Server 2022
TheHive version / git hash 5.4.7

Problem Description

This is similar as Issue #92 : Can't load Settings page: "Something went wrong!" Configuration page failed to load (ERR0002)

We also have the TA-WALLIX_Bastion app and I tried to rename the passwords.conf file like @webfr did.
But unfortunately, I'm still stuck with the same error..

Steps to Reproduce

  1. Install add-on v3.6.2 on Splunk Enterprise Search Head 9.4.0
  2. Open app
  3. Settings/Configuration

Possible Solutions

Logs (issued from the search.log with logging mode set to DEBUG under Settings/Configuration)

02-05-2025 13:56:59.567 +0100 ERROR AdminManagerExternal [28140 TcpChannelThread] - Unexpected error "<class 'splunktaucclib.rest_handler.error.RestError'>" from python handler: "REST Error [500]: Internal Server Error -- Traceback (most recent call last):\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\handler.py", line 117, in wrapper\n for name, data, acl in meth(self, *args, **kwargs):\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\handler.py", line 338, in _format_all_response\n self._encrypt_raw_credentials(cont["entry"])\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\handler.py", line 368, in _encrypt_raw_credentials\n change_list = rest_credentials.decrypt_all(data)\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\credentials.py", line 289, in decrypt_all\n all_passwords = credential_manager._get_all_passwords()\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\solnlib\utils.py", line 153, in wrapper\n return func(*args, **kwargs)\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\solnlib\credentials.py", line 341, in _get_all_passwords\n return self._get_clear_passwords(passwords)\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\solnlib\credentials.py", line 324, in _get_clear_passwords\n clear_password += field_clear[index]\nTypeError: can only concatenate str (not "NoneType") to str\n". See splunkd.log/python.log for more details.

02-05-2025 13:56:59.566 +0100 ERROR AdminManagerExternal [28140 TcpChannelThread] - Stack trace from python handler:\nTraceback (most recent call last):\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\handler.py", line 117, in wrapper\n for name, data, acl in meth(self, *args, **kwargs):\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\handler.py", line 338, in _format_all_response\n self._encrypt_raw_credentials(cont["entry"])\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\handler.py", line 368, in _encrypt_raw_credentials\n change_list = rest_credentials.decrypt_all(data)\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\credentials.py", line 289, in decrypt_all\n all_passwords = credential_manager._get_all_passwords()\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\solnlib\utils.py", line 153, in wrapper\n return func(*args, **kwargs)\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\solnlib\credentials.py", line 341, in _get_all_passwords\n return self._get_clear_passwords(passwords)\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\solnlib\credentials.py", line 324, in _get_clear_passwords\n clear_password += field_clear[index]\nTypeError: can only concatenate str (not "NoneType") to str\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "D:\Splunk\Python-3.9\lib\site-packages\splunk\admin.py", line 114, in init_persistent\n hand.execute(info)\n File "D:\Splunk\Python-3.9\lib\site-packages\splunk\admin.py", line 647, in execute\n if self.requestedAction == ACTION_LIST: self.handleList(confInfo)\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunk_aoblib\rest_migration.py", line 39, in handleList\n AdminExternalHandler.handleList(self, confInfo)\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\admin_external.py", line 51, in wrapper\n for entity in result:\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\handler.py", line 124, in wrapper\n raise RestError(500, traceback.format_exc())\nsplunktaucclib.rest_handler.error.RestError: REST Error [500]: Internal Server Error -- Traceback (most recent call last):\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\handler.py", line 117, in wrapper\n for name, data, acl in meth(self, *args, **kwargs):\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\handler.py", line 338, in _format_all_response\n self._encrypt_raw_credentials(cont["entry"])\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\handler.py", line 368, in _encrypt_raw_credentials\n change_list = rest_credentials.decrypt_all(data)\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\splunktaucclib\rest_handler\credentials.py", line 289, in decrypt_all\n all_passwords = credential_manager._get_all_passwords()\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\solnlib\utils.py", line 153, in wrapper\n return func(*args, **kwargs)\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\solnlib\credentials.py", line 341, in _get_all_passwords\n return self._get_clear_passwords(passwords)\n File "D:\Splunk\etc\apps\TA-thehive-cortex\bin\ta_thehive_cortex\aob_py3\solnlib\credentials.py", line 324, in _get_clear_passwords\n clear_password += field_clear[index]\nTypeError: can only concatenate str (not "NoneType") to str\n\n


@louismaxx louismaxx added the bug Something isn't working label Feb 5, 2025
@LetMeR00t
Copy link
Owner

Hello,

Such problems occured when you have a password.conf issue in another app.
Can you ensure, by using another app, that the storage password is working as you expect?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants