I've had my 2011 Mac Mini for a while. About a year ago the internal HDD decided to give up. Oh well.
I just now finally got around to being able to replace the hard drive. I decided to go with an SSD (a Samsung 850 PRO, got it from Amazon here). Installed OS X 10.10.4 (have an application that is broken on 10.10.5+ unfortunately).
So after all of this I've been using it for about a day. Over that day it has seemingly restarted itself several times while it was idle and nobody was looking (meaning the monitor was off and nothing was connected over VNC, but apps, mainly chrome, were running - nothing uncommon and that I haven't used on other Macs with no issues).
The only clue I can see (not that I exactly know what I'm looking for) is in Console. I get an error message stating kernel[0]: Previous shutdown cause: -128
.
I did have previous errors with this machine where it would randomly restart every once and a while, where I couldn't figure out a rhyme or reason, but these were way more infrequent and happened no more often or differently than other Macs I have. Certainly not 3 or 4 times in a day.
userCanceledErr
. In theory, auserCanceledErr
is reserved only for instances where the user has explicitly cancelled an action via the esc key or cmd-period keyboard shortcut. However, in practice, it often doesn't work this way and can be triggered by a range of hardware 'actions' (as Allan indicates in his answer). For example, in much earlier versions of macOS, trackpad users were known to trigger this because dragging their finger along the trackpad wasn't received properly by the receiver. – Monomeeth Jun 19 '17 at 11:26