Help - system crash

Hi,
Every few days my system crashes, I can’t login HTTPS or Samba. it happened few times. After each crash, I am reinstalling it from zero, then it works for a few days and will cash again.
Any idea how I can debug it to understand why it happens.

Ophir

and its on what PI , PC or VM

if Pi did you use a new SD card each time
is the SDCARD class 10

need more info If you want here

It is PI.
the system runs, ping works.
SD is class 10, SanDisk ultra HC 1.

yeah… I had that and it was a shit sd-card

Same with me. Bad SD card

I instated new SD, hope it will solve it