Adding / Removing Domains raises an error

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.32 (stable)
How are you able to access your server: The webadmin
SSH

Describe your issue

Hello,
I wanted to create a new domain via the WebGUI and got an error (see below).
It was still working until yesterday. In the meantime, I updated YNH from .29 to .32. Could that be related?

I also just noticed that deleting a domain also aborts with an error.

Is there anything I can do myself? If so, what?

Share relevant logs or error messages

Logs are in https://paste.yunohost.org/raw/ledafusoka

And these are displayed directly in a popup-layer in the webgui:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 430, in process
    ret = self.actionsmap.process(arguments, timeout=30, route=_route)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 532, in func_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/domain.py", line 349, in domain_add
    _certificate_install_selfsigned([domain], force=True)
  File "/usr/lib/python3/dist-packages/yunohost/certificate.py", line 232, in _certificate_install_selfsigned
    _enable_certificate(domain, new_cert_folder)
  File "/usr/lib/python3/dist-packages/yunohost/certificate.py", line 770, in _enable_certificate
    regen_conf(names=["nginx", "postfix"])
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 532, in func_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/regenconf.py", line 168, in regen_conf
    pre_result = hook_callback("conf_regen", names, pre_callback=_pre_call, env=env)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/hook.py", line 299, in hook_callback
    hook_args = pre_callback(
                ^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/regenconf.py", line 125, in _pre_call
    mkdir(category_pending_path, 0o755, True, uid="root")
  File "/usr/lib/python3/dist-packages/yunohost/utils/file_utils.py", line 280, in mkdir
    raise Exception(f"Folder {path} already exists")
Exception: Folder /var/cache/yunohost/regenconf/pending/postfix_mailman3 already exists

Hmmm I don’t have time right now to work on a fix, not even a workaround, but that sounds related to a bug in the core in combination with mailman3 ..

Or maybe just try to

sudo rm -rf /var/cache/yunohost/regenconf/pending/postfix_mailman3

though not sure why it would remain on the disk somehow

1 Like

Hey @Aleks thanks for your tip. It seems to have helped. I can now create domains again. MailMan3 also seems to be working. In any case, I was able to send an email via my test mailing list.

@Aleks Okay, that’ll do for now. I hope there aren’t any hidden surprises waiting for me. Then you’ll have some breathing space, and it’s not an emergency for most others if it’s only relevant for individual users with MailMan3. :slightly_smiling_face:

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