-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACME does not react helpfully upon failure #116652
Comments
P.S.: I discovered this only when I got the mail from Let's Encrypt that my certificates are expiring. Had I read my logs more carefully, I would have noticed earlier, since the error occurred daily since beginning of February, when I upgraded to d96bd33. |
There's a documented process in the NixOS Manual for triggering a manual renewal of certificates which would also resolve your issue. This avoids the need for a second service for a full renewal. With regards to performing a full renewal automatically when incremental renewal fails; This is very difficult given how much complexity there already is in the service's scripting. Without reading the output of lego itself we can't be sure what the cause of the error is, of which there are many. Failing the entire systemd service is the most helpful thing we can do. You will see a failed service when you do a
I appreciate you taking the time to write this ticket but I can't think of a way to action this more effectively. I can update the header in the manual wrt running systemctl clean to recommend it as a more general troubleshooting step. |
I see your point. You're probably right that that further scripting will convolute problems more than it will help. Thanks for your detailed answer. |
On my webserver, I had failed acme services like these since quite some time:
I inspected
/var/lib/acme/.lego
, and all folders seemed fine. I had successfully used Let's Encrypt in the past, but I believe in the recent move to lego, something broke, or some state got corrupted.I could fix it by removing the
.lego
folder and doingsystemctl restart acme-nextcloud.manuelbaerenz.de.service
. But I believe it would have been better if the failure of this service would have either:CC
@aanderse
@andrew-d
@arianvp
@Emily
@flokli
@m1cr0man
Metadata
"x86_64-linux"
Linux 5.4.104, NixOS, 21.05pre276379.266dc8c3d05 (Okapi)
yes
yes
nix-env (Nix) 2.3.10
"nixos-21.05pre276379.266dc8c3d05"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: