I have a very stock Quadra (I don't think I've installed anything on it, and it is only responsible to be a tailscale subnet router (a gateway to some devices at a remote site that can't run tailscale)) that lost contact with tailscale on July 4th. Today was the first chance I had to physically inspect the device. The power light was on as normal, but there was nothing being delivered over the HDMI port to a monitor.
My assumption was that it overheated and I could add a fan to it to prevent a future issue. Surprisingly though in the /var/log.hdd/syslog.1 file there were entries from earlier today before the power was reset on it. After power was reset the first entry in /var/log/syslog was at:
Jul 14 12:17:10, but the first line in /var/log.hdd/syslog.1 was at:
Jul 14 02:15:16 and the last entry was at:
Jul 14 08:45:01.
I assumed it hard failed sometime July 4th since it was unresponsive on the network and via HDMI and wiggling a mouse didn't awake it, but apparently it was still partially working earlier today, and likely the issue was something else.
These are the last few lines of the /var/log.hdd/syslog.1:
Jul 14 08:44:45 quadra-p3l tailscaled[1512]: trying bootstrapDNS("derp17d.tailscale.com", "2607:f740:c::e1b") for "log.tailscale.io" ...
Jul 14 08:44:45 quadra-p3l tailscaled[1512]: bootstrapDNS("derp17d.tailscale.com", "2607:f740:c::e1b") for "log.tailscale.io" error: Get "https://derp17d.tailscale.com/bootstrap-dns?q=log.tailscale.io": dial tcp [2607:f740:c::e1b]:443: connect: network is unreachable
Jul 14 08:45:01 quadra-p3l CRON[68074]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jul 14 08:45:01 quadra-p3l CRON[68073]: (root) CMD (/usr/lib/armbian/armbian-truncate-logs)
It looks to me like it was the networking that was the main issue (although the HDMI display wasn't working either), and from earlier in the log I see some additional things that look like network issues:
Jul 14 02:15:16 quadra-p3l tailscaled[1512]: control: trying bootstrapDNS("derp9e.tailscale.com", "2607:f740:100::359") for "controlplane.tailscale.com" ...
Jul 14 02:15:16 quadra-p3l tailscaled[1512]: control: bootstrapDNS("derp9e.tailscale.com", "2607:f740:100::359") for "controlplane.tailscale.com" error: Get "https://derp9
e.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": dial tcp [2607:f740:100::359]:443: connect: network is unreachable
Jul 14 02:15:16 quadra-p3l tailscaled[1512]: control: trying bootstrapDNS("derp21c.tailscale.com", "162.248.221.215") for "controlplane.tailscale.com" ...
Jul 14 02:15:16 quadra-p3l tailscaled[1512]: [RATELIMIT] format("control: trying bootstrapDNS(%q, %q) for %q ...")
Jul 14 02:15:16 quadra-p3l tailscaled[1512]: control: bootstrapDNS("derp21c.tailscale.com", "162.248.221.215") for "controlplane.tailscale.com" error: Get "https://derp21c
.tailscale.com/bootstrap-dns?q=controlplane.tailscale.com": dial tcp 162.248.221.215:443: connect: network is unreachable
Jul 14 02:15:16 quadra-p3l tailscaled[1512]: [RATELIMIT] format("control: bootstrapDNS(%q, %q) for %q error: %v")
Jul 14 02:15:16 quadra-p3l tailscaled[1512]: Received error: fetch control key: Get "https://controlplane.tailscale.com/key?v=62": failed to resolve "controlplane.tailscal
e.com": no DNS fallback candidates remain for "controlplane.tailscale.com"
Jul 14 02:15:28 quadra-p3l tailscaled[1512]: logtail: dial "log.tailscale.io:443" failed: dial tcp: lookup
log.tailscale.io on [2603:8081:b400:e::1]:53: dial udp [2603:808
1:b400:e::1]:53: connect: network is unreachable (in 3ms), trying bootstrap...
I'll ask the person on site if they had any networking issues with their Internet on July 4th. A reboot resolved everything, so I could just tell the device to reboot on a nightly schedule if that is necessary. I should mention that it is using Wifi to access the Internet. The devices it is providing access to are attached to the ethernet port, so they don't actually have internet access themselves. They are security cameras (the Quadra gets internet access via Wifi, then a NVR is plugged into the Quadra ethernet port and the cameras are plugged into the NVR). The NVR doesn't need internet access, and I can access the camera feed via tailscale. The only other thing I needed to do was setup NTP server on the Quadra to make sure the cameras had a reliable clock.
What I am most interested in is to make sure I have proper logging in place to determine the root issue if it happens again. It did not have logs as far back as July 4th. 7.1gb is in use and 6.3gb is free, so I can stomach storing logs for a longer duration.
I think the default setup on armbian is to log to ram to extend the life of the drive, and it is truncating the logs daily. Is anyone using another pattern perhaps sending all logs to the SD Card and using logrotate, or using ram logs but rotating them to disk on a schedule?