Initial install loops, possible issue with Yunohost install script / DNS

What type of hardware are you using: VPS bought online
What YunoHost version are you running: Latest
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

I’m attempting to install Yunohost on a fresh Debian 12 install. The installation appears successful. However, the postinstall setup simply loops. After completing the setup, it begins again. This happens whether I access the server via IP or hostname.

I have attempted to upload the logs, but doing so just throws the error “Yunohost is not correctly installed. Please run yunohost tools postinstall.” When I do this from the CLI, it shows some additional errors as pasted below. Attempting to re-run the initial installation generates additional errors saying the domain is not unique.

UPDATE: After continuing to investigate, it appears that DNS is being changed during the Yunohost install process. DNS resolution works perfectly prior to installing Yunohost, as evidenced by the fact that “curl https://install.yunohost.org | bash” works. However, immediately upon conclusion of the initial install script, all the DNS servers in /etc/resolv.conf are removed and replaced with 127.0.0.1. From this point, running resolvectl status returns a command not found error. Obviously, postinstall fails from here, because DNS fails.

This appears to be caused by the yunohost install script. I’m continuing to investigate.

UPDATE 2: DNS definitely breaks after running the Yunohost install script, which in turn blocks postinstall from finishing. In order to proceed with postinstall, I had to manually enable resolvconf by:

systemctl start resolvconf
systemctl enable resolvconf
systemctl status resolvconf

Then I edited /etc/resolvconf/resolv.conf.d/head to manually add DNS servers (in my case, 8.8.8.8 for simplicity). Then I ran:

resolvconf --enable-updates
resolvconf -u

At this point, postinstall was unblocked and able to proceed. This appears to be a viable workaround, but it’s bizarre that it’s required. This should be handled by the initial install script. I’ll update this thread if I run into any side effects.

Share relevant logs or error messages

2024-12-01 18:20:29,907 INFO yunohost.log.close - The operation ‘Update ‘admins’ group’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20241201-182029-user_group_update-admins’ to get help
2024-12-01 18:20:29,911 INFO yunohost.log.close - The operation ‘Make ‘y.mydomain.com’ the main domain’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20241201-182029-domain_main_domain-y.mydomain.com’ to get help
2024-12-01 18:20:29,913 INFO yunohost.log.close - The operation ‘Postinstall your YunoHost server’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20241201-182027-tools_postinstall-y.mydomain.com’ to get help
2024-12-01 18:20:29,916 DEBUG moulinette.actionsmap.process - action executed in 5.691s
2024-12-01 18:20:29,916 DEBUG moulinette.core.release - lock has been released
2024-12-01 18:20:29,916 ERROR moulinette.cli - Unable to download the default app catalog: SSL error when connecting to https://app.yunohost.org/default/v3/apps.json

… contents of /var/log/yunohost/operations/20241201-182029-user_group_update-admins.log …

2024-12-01 18:20:29,617: DEBUG - The permission database has been resynchronized
2024-12-01 18:20:29,618: INFO - The app catalog cache is empty or obsolete.
2024-12-01 18:20:29,618: INFO - Updating application catalog…

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