Problem with Cryptpad Letsencrypt certificate

What app is this about, and its version: 2026.29.0~ynh1
What YunoHost version are you running: YunoHost 12.1.39 (stable)
What type of hardware are you using: VPS bought online

Describe your issue

I’m using Cryptpad since a while.
In the last weeks I see an certificate error in my logs:

It says:

ERROR - Wrote file to /var/www/.well-known/acme-challenge-public/dP6pyEsgwPYNoTkszvMg0trbAEWk68zAsnLV1u98gLM, but couldn't download http://sandbox.cryptpad.maindomain.tld/.well-known/acme-challenge/dP6pyEsgwPYNoTkszvMg0trbAEWk68zAsnLV1u98gLM

and this is the file:

sudo ls -al /var/www/.well-known/acme-challenge-public/dP6pyEsgwPYNoTkszvMg0trbAEWk68zAsnLV1u98gLM
-rw-rw-rw- 1 root root 87 May  3 06:26 /var/www/.well-known/acme-challenge-public/dP6pyEsgwPYNoTkszvMg0trbAEWk68zAsnLV1u98gLM

All other domains (= a lot) work as expected.
So my guess is: it’s a cryptpad problem and not a generic YNH problem.

I also tried a solution found in the forum archive:

yunohost domain cert install yourdomain.tld --force

but it also failed.

Is there a way to handle this?

Share relevant logs or error messages

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

Hi @chmeyer

what gives

curl http://sandbox.cryptpad.maindomain.tld/.well-known/acme-challenge/dP6pyEsgwPYNoTkszvMg0trbAEWk68zAsnLV1u98gLM

assuming you replace sandbox.cryptpad.maindomain.tld with your real sandbox cryptad domain.

i take note that there are two domains for cryptad, this is the sandbox one only that is failing. i don’t now much about cryptad installation…

It might happen that locally from yunohost you don’t have access to itself, this is only a verification done by yunohost letsencrypt client script.
This check can be deactivated with --no-check and there is a checkbox in web admin to disable it too.

yunohost domain cert renew   sandbox.cryptpad.maindomain.tld  --no-checks

There has been a change recently with timeouts and letsencrypt, so depending on your network latency it can be affected too, see related discussion Letsencrypt certificates not renewing after upgrading yunohost from older version