Closed AlexFullmoon closed 11 months ago
Thanks for the post. Since there are no error logs in the DNS logs, you need to check the OS level logs to see why it crashed.
Check the service status to see if there are any hints using sudo systemctl status dns
command. You can also try journalctl --unit dns --follow
and see if it shows any recent errors.
I would also suggest to check for available RAM using top
or htop
. It could be that there is low memory issue causing the kernel to kill DNS process to free memory.
There are no errors or other messages in OS logs, just usual lines. Scratch that, got the crash
Dec 10 13:27:31 rpi dns-server[10435]: Technitium DNS Server was started successfully.
Dec 10 13:27:31 rpi dns-server[10435]: Using config folder: /etc/dns
Dec 10 13:27:31 rpi dns-server[10435]: Note: Open http://rpi:5380/ in web browser to access web console.
Dec 10 13:27:31 rpi dns-server[10435]: Press [CTRL + C] to stop...
Dec 10 14:47:37 rpi systemd[1]: dns.service: Main process exited, code=killed, status=11/SEGV
Dec 10 14:47:37 rpi systemd[1]: dns.service: Failed with result 'signal'.
Dec 10 14:47:37 rpi systemd[1]: dns.service: Consumed 5min 21.504s CPU time.
Dec 10 14:47:47 rpi systemd[1]: dns.service: Scheduled restart job, restart counter is at 1.
Dec 10 14:47:47 rpi systemd[1]: Stopped dns.service - Technitium DNS Server.
Dec 10 14:47:47 rpi systemd[1]: dns.service: Consumed 5min 21.504s CPU time.
Dec 10 14:47:47 rpi systemd[1]: Started dns.service - Technitium DNS Server.
Dec 10 14:47:53 rpi dns-server[11334]: Technitium DNS Server was started successfully.
Dec 10 14:47:53 rpi dns-server[11334]: Using config folder: /etc/dns
Dec 10 14:47:53 rpi dns-server[11334]: Note: Open http://rpi:5380/ in web browser to access web console.
Dec 10 14:47:53 rpi dns-server[11334]: Press [CTRL + C] to stop...
Will try logging RAM usage, though at fresh start there's 500Mb free out of 1Gb.
On a side note, is there an option in automatic installer to choose previous version? I didn't have this issue on version that I used until recently on same hardware (around v.11.2, I think).
The installer script does not any any option to select version. You can however download the previous version from archive and extract to overwrite the current files. But, note that older version may not be able to read config files that get updated by newer versions so you may lose your settings and need to configure settings again.
I am running Raspberry Pi 3B and 4 with Raspberry Pi OS and its running well 24x7 in production without any crashes. So not sure what can be the reason in your case.
with Raspberry Pi OS
Hm. I guess I could try installing Raspberry Pi OS — IIRC that's Debian 11. As I've mentioned, I run Debian 12 RPi build.
I'm running this on a PI 2B, running Ubuntu Server 23.10 without problems either.
Okay, can confirm no crashes on Raspberry Pi OS. Might be something with those Debian builds. Or me breaking something somehow. Sorry for taking your time.
Thanks for letting me know.
Installed on clean Debian along with Tailscale, lighttpd and nut. Upstream servers are DoH from blahdns.com. Technitium version 11.5.3.
Logs look like this. I tried running it with logging queries, but there doesn't seem to be any correlation of crashes with queries.
There are several exceptions appearing in logs, most often about failing to resolve go.technitium.com, but apparently that's just check for updates at start. It seems to crash silently.