I have searched the forum for similar issues
on
This category is for general issues(=something is broken) regarding YunoHost, NOT apps.
on
This form is written in English but feel free to write in French if you’re more comfortable!
on
What type of hardware are you using
Raspberry Pi 3, 4+
What YunoHost version are you running
12.1.41.2
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 ?
Dynamic IP, DynDNS configured in a FRITZ!Box (DNS provider: Strato), domain behind the router
Describe your issue
I’m posting this as a write-up of a solved problem in case it helps someone with the same setup. It has been an issue for me since I have been self hosting (more than 3 years already :)) and couldnt finde time to solve it. Thanks to AI this didnt take long to figure out. Feel free to comment on this.
The Let’s Encrypt certificate of my domains expired and the webadmin showed “valid for -21 days” with the banner “This domain doesn’t seem ready for a Let’s Encrypt certificate”. Certificates could only be renewed manually (with “Ignore diagnosis checks”), the daily cron job never renewed them.
My server has no working IPv6 (curl -6 https://ip6.yunohost.org fails, ip -6 addr show scope global is empty), but the DNS had AAAA records. They came from the FRITZ!Box: the DynDNS update URL ended in myip=<ipaddr>,<ip6addr>, so the router’s own IPv6 was sent to the DNS provider. The AAAA therefore pointed to the router, not to the server.
Fix:
- Check what the provider really serves (not your local resolver, which may answer
::1for your own domains):dig +short AAAA yourdomain.tld @<authoritative nameserver>(nameservers fromdig +short NS yourdomain.tld). - In the FRITZ!Box DynDNS settings, remove
,<ip6addr>from the update URL so it ends withmyip=<ipaddr>. - Remove the old AAAA record at the DNS provider. In my case the old value stayed in place after changing the URL. What worked for me at Strato was disabling and re-enabling DynDNS for the domain, setting a new DynDNS password and entering it in the router. This is just what worked for me, not an official Strato procedure. The records are briefly reset to provider defaults (I got HTTP 404 until the router had sent its IPv4 again; I triggered the update manually with
curl -u domain:password "https://dyndns.strato.com/nic/update?hostname=yourdomain.tld&myip=<IPv4>", answernochg <IPv4>). yunohost diagnosis run dnsrecords web --force, thenyunohost domain cert renew --force.
After that renewal worked without ignoring the diagnosis. I would not use the “Ignore diagnosis checks” switch as a permanent workaround, it only hides the cause.
Share relevant logs or error messages
The renewal skips a domain if the “DNS records” and “Web” diagnosis checks fail. yunohost diagnosis show dnsrecords --issues --human-readable showed, for every subdomain:
Type: AAAA
Name: @
Current value: <an IPv6 address>
Expected value: None