Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mac mini shutting down mysteriously

For a while now, my 2009 Mac mini has been shutting itself off for no apparent reason. It typically happens every few days, when I'm away from the computer.


Possible suspects include a failing AC adapter and maybe my aging Tripp-Lite UPS commanding a shutdown due to a weak battery. (Since it was new, the UPS has always done a weird thing—or maybe a self-test—once or twice a day where it apparently switches to backup power for a second or two, and the Mac pops up an alert that the power has failed, but AC mode comes right back on and this seems unrelated to the random shutdowns.)


I figure there must be a log file somewhere that will tell my why it's doing this, but I don't know where to look. Any ideas?

Mac mini, OS X Mavericks (10.9.2), 8GB RAM, running OS X Server

Posted on Jul 13, 2015 11:29 PM

Reply
13 replies

Jul 14, 2015 7:19 AM in response to G Robert Lewis

These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.

This procedure is a diagnostic test. It makes no changes to your data.

Please triple-click anywhere in the line below on this page to select it:

syslog -k Sender kernel -k Message CSeq 'n Cause: -' | tail | awk '/:/{$4=""; print}' | pbcopy

Copy the selected text to the Clipboard by pressing the key combination command-C.

Launch the built-in Terminal application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.

Wait for a new line ending in a dollar sign ($) to appear below what you entered.

The output of the command will be automatically copied to the Clipboard. If the command produced no output, the Clipboard will be empty. Paste into a reply to this message.

The Terminal window doesn't show the output. Please don't copy anything from there.

Jul 14, 2015 7:18 PM in response to G Robert Lewis

Disconnect the USB cable from the UPS and see whether the shutdowns stop. If they don't, see below.

Make a "Genius" appointment at an Apple Store, or go to another authorized service provider. You may have to leave the machine there for several days.

Back up all data on the internal drive(s) before you hand over your computer to anyone. There are ways to back up a computer that isn't fully functional—ask if you need guidance.

If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to an empty drive from any of them.) Don’t erase the recovery partition, if present.

Keeping your confidential data secure during hardware repair

Apple also recommends that you deauthorize a device in the iTunes Store before having it serviced.

*An SSD doesn't need to be zeroed.

Jul 16, 2015 8:54 AM in response to Linc Davis

OK, I think I may have figured out what's going on. Still awaiting confirmation, but here's the hypothesis:


I mentioned that the UPS has apparently done a brief self-test once or twice a day since it was new. I think what may be happening is that its battery recently got so weak that it can't even provide backup power for the few seconds that this operation takes. So power to the computer blips off and it suffers a rude shutdown.


I've replaced the UPS with a different one, and so far no shutdowns.

Jul 23, 2015 9:55 AM in response to G Robert Lewis

After several days of no shutdowns, I think my diagnosis was correct.


Final point: Tripp-Lite denies that the UPS does these brief switches to backup power as self-tests, saying that there must be something about my AC power that's causing the UPS to detect power failure. Maybe so, but I've owned quite a variety of UPS's over the years, all plugged into the same AC line (which normally runs at 123–124VAC in my neighborhood), and this is the only one that's ever done this. Maybe it's just hypersensitive to tiny sags in the line voltage.

Mac mini shutting down mysteriously

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.