Troubleshooting & FAQ
1. TLS Certificate Inaccessible: Permission denied (EACCES)
Section titled “1. TLS Certificate Inaccessible: Permission denied (EACCES)”Symptom
Section titled “Symptom”Startup logs report:
• DoT (TLS DNS) : Disabled (Files Inaccessible: Permission denied (EACCES))
Root Cause
Section titled “Root Cause”The background service runs under an unprivileged user by default (Principle of Least Privilege), and cannot read Certbot’s 0600 (root:root) private key files under /etc/letsencrypt/.
Solution
Section titled “Solution”Use the standard ssl-cert group delegation without elevating the process to root:
sudo groupadd -f ssl-certsudo usermod -a -G ssl-cert <username>sudo chgrp ssl-cert /etc/letsencrypt/live/<your-domain>/privkey.pemsudo chmod 640 /etc/letsencrypt/live/<your-domain>/privkey.pemsudo chgrp ssl-cert /etc/letsencrypt/live /etc/letsencrypt/archivesudo chmod 750 /etc/letsencrypt/live /etc/letsencrypt/archivesudo dns-worker service restart2. DoT Shows Paused (Requires Wildcard Certificate *.domain)
Section titled “2. DoT Shows Paused (Requires Wildcard Certificate *.domain)”Symptom
Section titled “Symptom”Web Dashboard works over HTTPS, but DoT is paused.
Root Cause
Section titled “Root Cause”DoT maps queries to user profiles via TLS Server Name Indication (<profileToken>.dns.example.com). A single-domain certificate cannot match subdomains, so a wildcard certificate is required.
Solution
Section titled “Solution”Register a wildcard certificate via Certbot with DNS challenge:
certbot certonly -d *.your.domain -d your.domain --manual --preferred-challenges dns3. Why Are Changes to .env in Current Directory Ignored by Service?
Section titled “3. Why Are Changes to .env in Current Directory Ignored by Service?”Symptom
Section titled “Symptom”Editing .env in your user directory has no effect after restarting the service.
Root Cause
Section titled “Root Cause”When managed by systemd, the daemon loads environment variables from /etc/dns-worker/.env. Ensure your changes are written to /etc/dns-worker/.env.
