Let's encrypt won't renew a certificate for my Nextcloud AIO

I’m using the latest version of AIO, I’m a docker n00b and I’m running into a problem with my cert renewal. I have port 80 and 443 fully exposed to the internet. I have run Let’s Encrypt’s tests and they all come back fine for being able to renew my cert but when I look at the logs I see these errors:

2026-03-15T02:27:07.705021269Z {“level”:“error”,“ts”:1773541627.7047014,“logger”:“tls”,“msg”:“job failed”,“error”:“[nc.domain.com] [nc.domain.com] Renew: registering account [mailto:default] with server: attempt 1: https://acme-v02.api.letsencrypt.org/acme/new-acct: HTTP 400 urn:ietf:params:acme:error:invalidContact - Error validating contact(s) :: unable to parse email address”}

How do I update the email address so I can get past this?

Did you verify your email address is correct (see the very end of the error message)?

1 Like

That’s my question. I don’t know how/where to update the email address for renewing the cert. Under my admin account the email address is correct but that doesn’t seem to be the correct place for it.

maybe this will help… from the LE community forum

Thanks for the info. How do I run those commands inside the AIO version? Yes, I’m that much of a docker newb. I basically got this up and going enough to have it working since last year.

So for those who run into the problem in the future I spent a few hours on this and figured it out with the help of Claude.ai since I couldn’t find a good answer in any of my Googling.

During this time the LETSENCRYPT_EMAIL= value was my correct email address.

In the nextcloud-aio-apache container, in /mnt/data/caddy/acme/ I had 2 folders

acme-staging-v02.api.letsencrypt.org-directory
acme-v02.api.letsencrypt.org-directory

Both had configurations for default.json, the staging one had values and the acme-v02 one did not they were just missing.

I deleted both folders and restarted the container. Only acme-v02.api.letsencrypt.org-directory directory got re-downloaded and my certificate was renewed without error.

1 Like

@szaimen is this case any interesting for you?

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