I started recently running a relay in our office network on Raspberry Pi 4 with 4 GB RAM and Ubuntu 21.10 as OS. The setup worked well and the node began it’s operation. After a couple of hours the tor operation stops and I am not able anymore to login via SSH.
Only a reboot is helping.
Now it is running fine since about 30 hours and I can connect as well.
The only difference to my previous setup is, that I also installed the package tor-arm too. It was missing, but I guess this should be essential on a Raspberry Pi as it is based on an ARM SoC, or?
I don’t know why it worked for a several hours without the arm package.
Right, the tor-arm package is unrelated to your issues here (i.e. installing it didn’t fix whatever your original issue was).
If you were talking about longer run times before the system freezes up, I would wonder if you’re running out of memory, and linux’s out-of-memory killer is killing random things like ssh. But in just a few hours this isn’t a good match for what might have gone wrong (and anyway 4 gigs should be enough).
Since Tor is just a user space program, and your system is freezing up, this is a bigger problem than just Tor. Faulty hardware might be one possibility. The idea above to look at your syslog lines is a good one.