My setup is a RaspberryPi4 with SSD (Kingston 120GB) as boot drive. It has also a regular HDD connected to it. Both hard drives are connected to a USB dock via 3.0 USB. The dock has also a power supply so no energy problems should arise. Connected via ethernet to router. SSH enabled. I have setup an apache server with Nextcloud (which it hasn't been started to be used because of the problems stated below) and also is setup as a client for a Wireguard VPN.
The problem is that when I turn on the RPi4 I can ssh to it without any issues, but if I leave it powered ON overnight, the next day I try to connect to it, the ssh console (or whatever I try to use) just freezes or behaves abnormally.
One day I could log in but I could not run any "complicated" commands (just cd
and ls
were working) and trying to run commands like sudo nano
just left my ssh window frozen, no output. And today for example it just does not connect. I can ping the RPi4, but ssh refuses to let me in. It just freezes after inputting the password, no output from the RPi4.
I don't know what might be happening, this is the first time something like this happens to me, but I think it could be related to the USB dock with the hard drives in it? How can I know what is happening?