I built a new computer, it's a server so it doesn't need a screen plugged into it, it's running debian. After a few hours (sometimes a day) of running perfectly normally, it just stops working properly.
The computer has a static IP on my router, but when this happens, it doesn't even show up on the router, the ethernet LEDs though are turned on.
I cannot ssh into it (no route to host)
Keyboard that is plugged into it while in this state is not recognized, (unable to even turn on num lock).
After I plug it into a screen it's not recognized.
I can solve these problems by rebooting, everything works normally again, until this random weird bug happens.
Most logs I have checked are of the web server, /var/log/messages and dmesg.
It shows everything working perfectly normally, until the problem happens, logs just stop.
When this happens I can still see the LEDs turned on, and hear the disks running.
Can anyone tell me what might be the problem? or what logs to check?
I know this isn't a configuration problem or a cable/router problem, because I had the exact same settings and configurations with my older server and this is the first time in my life that I get into such an issue.
For reference I have the ASRock Fatal1ty AB350 gaming itx/ac motherboard (latest manufacturer's BIOS update)
CPU :Ryzen 1300X
RAM: Ballistic red 8Gb
Network card (internal) : I211 Gigabit Ethernet. (latest update from intel 5.3.20.5)
OS : Debian 9 Stretch (stable) with the latest update