mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 04:45:48 +03:00
[GH-ISSUE #182] acme-dns not appearing to be running as service #77
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#77
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 @icelava on GitHub (Sep 10, 2019).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/182
When I first tested as a user instance in terminal foreground, /root/go/bin/acme-dns was able to run as expected. Now having followed the re-configuring instructions to run acme-dns as a systemd service with a less-privileged user, I suspect there's something preventing it from starting up properly; there's no evidence of a process running and listening to the exact ports it should be operating on. nestat -tlpn does not show any acme-dns process
If I manually launch /usr/local/bin/acme-dns/acme-dns however, only then would the listened ports show up to the correct process.
Although I'm also puzzled why IPv4 port 80/443 not bound? Even though I can reach them...
@Mikaela commented on GitHub (Sep 10, 2019):
I guess you have
net.ipv6.bindv6only = 0(with sysctl/kernel) which makes binding :: also bind 0.0.0.0 unless the socket especially binds to :: from what I have understood.I personally set it to 1 to disable IPv4 mapped IPv6.
As you see this I wonder if on my system acme-dns would be IPv6-only, I haven't yet ran it personally, but am considering starting to use it.
@icelava commented on GitHub (Sep 11, 2019):
Ok I can check on that later, but the more critical issue is acme-dns.service does not appear to run in the background despite
systemctl start acme-dns.serviceran without any shown error.@icelava commented on GitHub (Sep 11, 2019):
That directive is supposed to be in /etc/sysctl.conf, yes? I don't see such in the file and practically everything is commented out.
When I start up Nginx (which) has to be shut down to avoid conflicting port bindings), it appears to be able to bind ports 80/443 on IPv4 and IPv6 just fine.
I believe prior to this re-configuration to run ACME-DNS as non-root it was able to bind IPv4 0.0.0.0 similarly.
@icelava commented on GitHub (Sep 11, 2019):
Ok i just learnt how to peek into systemd service startup logs, with journalctl --since "10 minutes ago"
Hmmm, but I did grant acme-dns user and group rw permission to /var/lib/acme-dns/acme-dns.db so what could be the problem? Manually running as root is fine.
@Mikaela commented on GitHub (Sep 11, 2019):
Yes or alternatively
/etc/sysctl.d/<whatever>.conf, it defaults to 0 if not specified. If you want to confirm, try runningsysctl net.ipv6.bindv6only@icelava commented on GitHub (Sep 11, 2019):
Just performed the ACME-DNS systemd service re-config on another server, and it appears to launch and remain running just fine. I noticed the slight difference in permission set for /var/lib/acme-dns directory itself
Working: drwxr-xr-x 2 acme-dns acme-dns 4096 Sep 11 06:39 acme-dns
Faulty: drwxr-x--- 2 acme-dns acme-dns 4096 Sep 10 18:44 acme-dns
Does "others" need to have rx to the directory? Anyway I added that in but still failure to open database file.
BUT, on inspecting stuff slowly one at a time, I found /var/lib permissions fishy
I don't remember attempting to control permissions at the /var/lib level though (why should I?). Anyway that appears to be the culprit!