My start9 server keeps crashing

I’m running on a Lenovo thinkpad, 8gb ram, 2TB SSD with lcache. I’ve only installed btc knots and electrs. It keeps crashing, showing over and over the same few lines, the most prominent is: “failed to start avahi-daemon.service start9”. Couldn’t find a solution specific to start9 or btc.

I’d initially assume there’s something else going on rather than the one line of many you’d honed in on in the logs. If a service on linux doesn’t start, it should not crash the whole system. Instead, something else is crashing the system and while crashing a service fails to start.

What are the symptoms of “it” “crashing”?

Is Knots ok? What is it say under the health check at Services > Bitcoin Knots? If that’s what keeps crashing, check its log @ Services > Bitcoin Knots > Logs

I think I figured out the problem. For anyone else in the future, what happened, I think, was my /etc/systemd/logind.conf was reset to default settings when I last updated either knots or electrs, since I updated both at the same time. So I ssh into start9 and edited the logind.conf so the laptop wouldn’t suspend when I shut the lid. I think the conf file was reset because I had no problem with the lid being closed before I updated. Hope this helps someone in the future, and fingers crossed that this was the problem!

“Well, it looks like my changes to the logind.conf file isn’t sticking. After I change the file, I save and exit. Then I run sudo systemctl restart systemd-logind.service and the screen crashes on the server, but somehow I’m still able to connect remotely… until it crashes altogether. When I reboot, logind.conf is back to the defaults. I’m guessing I have to do something else before restarting the systemd-logind.service?”

Nope. That is wrong, it’s still crashing. The following is what shows on the screen over and over again after the crash:

[7559.968387] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 3590, flush 0, corrupt 0, gen 0

three of those lines with increasing numbers between brackets and after rd, then:

[7559.972459] systemd[1]: Failed to start avahi-daemon.service - Avahi mDNS/DNS-SD Stack.

“The server shows line after line of the same error messages. I’m assuming the problem is when I close the lid, it tries to hibernate. Knots is running fine. Health checks are fine, both say success.”

Nope. That is wrong, it’s still crashing. The following is what shows on the screen over and over again after the crash:

[7559.968387] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 3590, flush 0, corrupt 0, gen 0

three of those lines with increasing numbers between brackets and after rd, then:

[7559.972459] systemd[1]: Failed to start avahi-daemon.service - Avahi mDNS/DNS-SD Stack.