![]() ![]() Considering that there are multiple reasons why a Mac restarts unexpectedly, we are going to try several workable solutions. And if you haven’t updated your Mac for a while, there is a good chance that the outdated version of the software may be playing the spoilsport.Īpart from these two usual suspects, you should also never overlook the possibility of the worn-out battery, ill-fated peripherals, and outdated apps. If your macOS device is cluttered for space, it’s the clogged-up storage that may be causing the device to restart. ![]() There are so many things you need to look at when your Mac is rebooting repeatedly. What Causes the Mac to Reboot Again and Again? Keep a Tab on the Battery Service Warning.Use Safe Mode on Mac with Intel Processor.Use Safe Mode on Mac with Apple Silicon.Use Safe Mode to Isolate the Cause of the Issue.Immediately Delete the Problematic Apps.Force Quit All Open Apps and Hard Reset Your Mac.What Causes the Mac to Reboot Again and Again?.To further narrow down where to look though, will depend on what type of server, what is running on it, and details that haven't been provided. Sometimes you can see clues of overheating in logs anyway bad if the PSU has issues (PWR_GOOD drops) nothing will be found as CPU wasn't even aware of shutdown I suspect hardware logs may miss this type of shutdown too (but lack of entries is still a clue!) cpu shutoff because of extreme heat threshold a pin gets grounded with OS having no clue so messages just stop! and next message is normal booting of next session such messages will be found in hardware logs assuming an enterprise server consumer grade usually don't keep hardware logs). it's here where I'd expect to see the lack of normal shutdown messages which means it's a clue of hardware shutdown (eg. This is where I'd really look for clues on last shutdown, ie. The best clues however are in systemd journals, or journalctl. Because it'll show the current session only, you won't see a reason for the last shutdown (that was last session), but after an unclean shutdown I'd expect to see results of a fsck (because of unplanned shutdown). To view system messages (for current session) you can use dmesg. Starting with application crashes is easy, so I'd look there first, however I can't really think of why a application crash could cause a reboot or shutdown so I'd not expect to see anything meaningful there (if it's useful it'll be after system logs). To look at app crashes on this box ls -la /var/crashĭrwxrwsrwt 2 root whoopsie 4096 Feb 27 12:00. HOST OS if VM or hardware logs if on metal) ( If no details are found you'll need to check machine logs ie. If Ubuntu was aware of shutdown you'll see that too as you'll see reasons for shutdown. If the hardware shutdown you won't see anything in the systemd & message logs ( a HUGE clue!!). etc/apt//99custom-unattended-upgrades:Unattended-Upgrade::Automatic-Reboot "true" Īnd there was my problem - Unattended-Upgrade::Automatic-Reboot "true" in /etc/apt//99custom-unattended-upgrades.Īpplication crashes have crash files in /var/crash/ I'd also explore normal system logs which are your best bet. etc/apt//99custom-unattended-upgrades:// Reboot automatically if necessary (e.g. etc/apt//50unattended-upgrades://Unattended-Upgrade::Automatic-Reboot-Time "02:00" etc/apt//50unattended-upgrades:Unattended-Upgrade::Automatic-Reboot "false" I then ran the following: grep Reboot /etc/apt//* Looking into /etc/apt//50unattended-upgrades, I saw that "Unattended-Upgrade::Automatic-Reboot" was commented out, and its default is supposedly false. Running last reboot showed that the kernel version was usually newer after the sudden reboots: reboot system boot 4.15.0-112-gener Wed Jul 22 10:07 still running I was experiencing sudden reboots, mostly soon after turning my laptop on in the morning. In /etc/apt//99custom-unattended-upgrades TL DR: answer, along with the comments by Hadjigeorgalis led me to find that I had Unattended-Upgrade::Automatic-Reboot "true"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |