Hello I am new here but i have been using Truenas for few years on my little server:
case: Eolize SVD NC11 4 Mini ITX
MB: Asrock j4105-itx
32GB non ecc ram
350w psu
and recently i have also experienced random restarts very often sometimes multiple times a day so i tried to switch psu to quite expensive one but still 350w (SilverStone SST-FX350-G 350W) after that random restarts are only once a month or so. So this does look like it helped a bit but the issue is still not completely solved. I dont think i have a overheating issue on synthetic load my cpu is under 70C and on normal usage is around 45C and all disks is under 35C. I have 2 hdds and 1 ssd for truenas so overloading psu with 10w cpu and 3 drives is also not a case i think and in logs there is nothing useful as well. Only boot start sequence. Any idea how i can fix this? I have feeling that motherboard might be dying. It have over 3 years of service and i have read that this model have issues with watchdog memory chip that it is wearing quite fast but i dont want to blow more money if i am not sure that it is the case.
So a few things, what version of TrueNAS are you using?
Did you do anything to your system (hardware or software) shortly before the system started rebooting itself? This may be hard to identify if it's been a while. When it comes to hardware, did you open the case, move the computer, anything at all. Even moving it can cause a shift in the hardware and cause issues.
Since this system had been running well for a period of time (you stated a few years), I would not change the BIOS settings, you should identify the root cause.
Suggestions:
1) Shut down the system and disconnect/reconnect every card and electrical connection. While you are at it, blow out all the dust that may have accumulated.
2) Run CPU Stress Test and RAM Burn-In tests. I'd run a Memtest86+ for a few days, and a CPU test at least for 4 hours, possibly 8 hours to heat saturate the board/socket. If these pass then you can feel good that the CPU, RAM, and Motherboard in general are in good condition. I say in general because you didn't completely test the motherboard and I don't know if any test that can do that.
3) If you replaced the power supply and the problems continue, well that isn't the problem.
4) Is your computer on a UPS and has a data cable connected and configured to shut down the computer upon power failure? This would help you identify if you are having power issues. A system that powers down properly means the computer is fine and doing what it should during a power failure. If you have the BIOS setup to Power On after power failure, that too can lead to confusion. Set it to Remain Off at least while you troubleshoot the problem.
That is about all I can tell you right now until you do some of that stuff listed above.
But I will say this, the motherboard could be bad, the power-on-reset capacity could have failed and periodically short out. Most computer capacitors are much better these days, but this is just one example of a motherboard component causing reboot issues. It could be a number of components to be honest and identifying them requires a schematic diagram and the knowledge to troubleshoot electronics.
So think back to just before you started seeing these problems, see if you recall making any changes. This is the most likely suspect in my experience.
Good Luck.