Certificate renewing failed!

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.14
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

Certificate renewing for maindomain.tld failed!

I’ve got the error: Wrote file to /var/www/.well-known/acme-challenge-public/HNxRoX-qOVaMqWMmm_bhPnEh1UNvurY6MeFQVsqZ8JU, but couldn’t download http://maindomain.tld/.well-known/acme-challenge/HNxRoX-qOVaMqWMmm_bhPnEh1UNvurY6MeFQVsqZ8JU

In the past, it has always worked automatically. What can I do?

Share relevant logs or error messages

https://paste.yunohost.org/raw/imahiherum

Hmmm can you confirm that the diagnosis is happy ? (Could it be that the first section complain about a customized /etc/resolv.conf maybe ?)

No, the diagnosis is happy. Everything has a green tick.
And the certification of subdomains is still working.

ls -l resolv.conf
lrwxrwxrwx 1 root root 31 Dec 8 2021 resolv.conf → /etc/resolvconf/run/resolv.conf

nano resolv.conf
nameserver 127.0.0.1
search invalid

I get a 404 when I call up the page https://maindomain.tld/.well-known/acme-challenge/. Could the rights or owner be wrong? On the other hand, it works with the subdomains and Let’s encrypt accesses the same path for the HTTP-01 challenge?

I believe it’s expected that it returns a 404 because there’s no content, the point of this route is to host ephemeral content (“nonce”) during the ACME challenge when requesting the certificate