mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 12:55:48 +03:00
[GH-ISSUE #337] error message every 10 minutes about managing the server certificate #185
Labels
No labels
Documentation
Documentation
bug
enhancement
feature request
feature request
help wanted
pull-request
question
security
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/acme-dns#185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fredcy on GitHub (Apr 9, 2023).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/337
I'm getting error output like this every 10 minutes from acme-dns. Is this spurious? Can I do anything to prevent the error?
The certificate used by acme-dns for its HTTPS traffic works fine, in that there is no complaint from the client side. In config.cfg I have
tls = "letsencrypt".I'm running acme-dns as a systemd service, running as the unprivileged acme-dns user. /var/lib/acme-dns/api-certs and everything comprised in there is owned and writable by the acme-dns user.
I tried removing all of /var/lib/acme-dns/api-certs and running acme-dns service from scratch. It rebuilds the cert in a new /var/lib/acme-dns/api-certs directory, but I soon get the same recurring error messages.
It appears that the error message comes from the github.com/caddyserver/certmagic module used by acme-dns, but I have not been able to work out why it throws that error.
I ran acme-dns as root for a while before improving the setup to run as an unprivileged user. I wonder if that left some remnant that needs to be cleaned up, but I can't find any such thing.
@danielztolnai commented on GitHub (Jan 10, 2024):
I am receiving the same messages. Did you manage to find out the cause?
I've never run acme-dns as root, so that can be ruled out. I built the executable from the latest source using go 1.18.1 and am running it on a fresh Ubuntu 22.04.3 using the provided systemd service. I also have
tls = "letsencrypt"and I'm also using the recommended user setup.@fredcy commented on GitHub (Jan 13, 2024):
I ended up not using acme-dns and so I don't have more info.
@PKizzle commented on GitHub (Jan 13, 2024):
May I ask what you are using as an alternative?
@fredcy commented on GitHub (Jan 13, 2024):
(Probably not helpful, but...) I was planning to use acme-dns to manage certs on a private development network on a DNS sub-domain. It worked OK, but management decided to just buy a wildcard cert for that subdomain, making acme-dns moot in our case.
@PKizzle commented on GitHub (Jan 13, 2024):
Ah okay. I thought there might be a different solution to acme-dns but that does not seem to be the case then.
@PKizzle commented on GitHub (Jan 13, 2024):
For the rest that are facing the cache issue: I have found a solution but am not sure whether this is the correct patch as I have added quite a bit of source code to acme-dns. So try it out and give feedback whether it works for you. It is based on the refactoring branch.
@maddes-b commented on GitHub (Apr 8, 2024):
I have the same issue with the current master @27e8251d11ba0a08c9b576fc04d61c1c7ba9b500
What is striking is that it creates 2 caches, but I do not know where these are coming from:
This issue is independent of having only a single server and account in
api-certs/acmedirectory, or having multiple servers and/or accounts in there.Also just updating to latest certmagic v0.20.0 did not help (
GOPATH=/tmp/go-acme-dns go get -u github.com/caddyserver/certmagic@v0.20.0). Last bump of certmagic was https://github.com/joohoi/acme-dns/pull/334.On master @6ba9360156b8658dbbd652eea100c11cc098b1f8 I do not see messages for any caches, and do not get any renew errors every 10 minutes.
@joohoi Is this the reason for the other repo at https://github.com/acme-dns/acme-dns/ ? Your personal repo here for development/testing and the other one for production state ?
I found a similar issue for https://github.com/caddyserver/caddy/issues/5162 (with PR https://github.com/caddyserver/caddy/pull/5169 merge
github.com/caddyserver/caddy@ac96455a9a) also related how to use certmagic.Do not know if https://github.com/joohoi/acme-dns/issues/337#issuecomment-1890784616 can be adapted to current master and would fix it.
Update 2024-04-11: I got a solution for the current release, currently testing all cases (renewal, revoked, etc.) plus adding some more debug log messages.
@maddes-b commented on GitHub (Apr 11, 2024):
Fix for current master developed and tested. Pull rquest is https://github.com/joohoi/acme-dns/pull/351
@sndrsmnk commented on GitHub (Jul 22, 2024):
ty. wonder why this isn't merged yet. manually applied and now i have a new cert again! 👍