Update panel 'main' of app 'synapse' configuration

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.7
What app is this about: Synapse

Describe your issue

Brand new to YunoHost and trying to get a matrix server up and running. On a fresh install of YunoHost, I was able to install Synapse and wanted to change some settings. If I try to change anything on the “Main” tab of Synapse in the Admin Panel and save, it gives me an error. So it seems it’s something to do with that page and not specifically the specific option I’m trying to change on the page.

Error: "500"
Action: "PUT" /yunohost/api/apps/synapse/config/main

I tried googling the error and action, but the only thing that came up was someone else with a VPS on Contabo having to change the sources.list file to the official ones and not Contabo’s. I tried that anyway, but no luck.

Share relevant logs or error messages

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 473, in process
    ret = self.actionsmap.process(arguments, timeout=30, route=_route)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 561, 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/app.py", line 1873, in app_config_set
    return config_.set(key, value, args, args_file, operation_logger=operation_logger)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/utils/configpanel.py", line 577, in set
    self.form = self._ask(
                ^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/utils/configpanel.py", line 868, in _ask
    form = prompt_or_validate_form(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/utils/form.py", line 2063, in prompt_or_validate_form
    if not option.is_visible(context):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/utils/form.py", line 429, in is_visible
    return evaluate_simple_js_expression(self.visible, context=context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/utils/form.py", line 216, in evaluate_simple_js_expression
    return evaluate_simple_ast(node, context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/utils/form.py", line 104, in evaluate_simple_ast
    return context[node.id]
           ~~~~~~~^^^^^^^^^
KeyError: 'enable_notifs'

There was no log corresponding to the failure.

I can confirm that I have the same problem with Yunohost 12.0.7 as well.
I ended up editing /etc/yunohost/apps/synapse/settings.yml manually.

It seem to be an upstream issue. I created an issue for this: Config panel broken when `visible` parameter used · Issue #2488 · YunoHost/issues · GitHub

Note currently the workaround would be to comment the line 77 in /etc/yunohost/apps/synapse/config_panel.toml, after that the config panel should work. But this workaround need to be applied after each upgrade.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.