What type of hardware are you using: Other(?)
What YunoHost version are you running: 11.3.0.2
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No
Describe your issue
Hello!
I’m trying to change the “Enable the small ‘YunoHost’ portal shortcut square on apps” setting from Yes to No.
When doing this through the webadmin, I have a 500 error message:
Error: "500"
Action: "PUT" /yunohost/api/settings/misc
Error message:
Unexpected server error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 450, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 574, in process
return func(**arguments)
File "/usr/lib/python3/dist-packages/yunohost/log.py", line 483, in func_wrapper
result = func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/yunohost/settings.py", line 88, in settings_set
return settings.set(key, value, args, args_file, operation_logger=operation_logger)
File "/usr/lib/python3/dist-packages/yunohost/utils/configpanel.py", line 209, in set
self._ask()
File "/usr/lib/python3/dist-packages/yunohost/utils/configpanel.py", line 579, in _ask
and not evaluate_simple_js_expression(
File "/usr/lib/python3/dist-packages/yunohost/utils/form.py", line 188, in evaluate_simple_js_expression
return evaluate_simple_ast(node, context)
File "/usr/lib/python3/dist-packages/yunohost/utils/form.py", line 76, in evaluate_simple_ast
return context[node.id]
KeyError: 'security_experimental_enabled'
When I try to do the same when connected in SSH, I get this error:
mt@server:~$ sudo yunohost settings set misc.portal.ssowat_panel_overlay_enabled No
usage: yunohost {settings} ... [-h] [--output-as {json,plain,none}] [--debug] [--quiet] [--version] [--timeout ==SUPPRESS==]
yunohost: error: unrecognized arguments: No
I’ve tried multiple arguments instead of No
: 0
, False
, FALSE
but none of them seem to work.
When I try to get the value, things appear to work fine:
mt@server:~$ sudo yunohost settings get misc.portal.ssowat_panel_overlay_enabled
1
Now that’s not the worst error in the world, but before I go ahead with the big migration to Bookworm, I wanted to make sure everything was fine
Thank you!
Share relevant logs or error messages
Error: “500”
Action: “PUT” /yunohost/api/settings/misc
Error message:
Unexpected server error