Find logs from before unexpected reboot and/or UPS log


Recommended Posts

Apparently, my unraid box recovered from an unexpected shutdown, as if someone cut the power lead (which noone did). This could mean two things.

 

1. Unlikey, but a power outage may have lasted long enough to drain the UPS, and unraid didn't honour the shutdown settings while running on UPS battery.

2. More likely, the server crashed itself and got itself to reboot automatically. But crashed because of what...?

 

In either case, I don't know where to find out more. I can't find a log for the UPS. I would like to know a date+time of the last outage, or the last outage X seconds ago. Either would be helpful, but I don't know where to get this information. It's an APC Back-UPS ES 550G, connected via USB.

 

I also can't find information on what happened before the unexpected reboot. The server log seems to have been cleared during startup, which is extremely bad practice if this was deliberate. The damage (if any) is already done, so enabling persistent logs is of no use now. More so because I have no way of knowing how to reproduce the problem - I don't even know where to start, it could be literally anything, so far.

 

At any rate, where can I find logging information from before the crash?

 

PS, the reason scenario 2 is more likely, is because other UPS's in the house didn't indicate an outage either, although I'm not sure how good they are at reporting them. My NAS survived the outage if there was one, so that's an indication. I wasn't around to experience it myself, unfortunately.

Link to comment

Those two additional scenarios are highly unlikely.

1) My UnRAID box never takes more than a minute or so to reboot. So shutting down is a matter of seconds.

2) I don't have spinning harddisks ;)

 

 

So anyway, what is the reason UnRAID by default throws away logs? Especially in case of an unclean shutdown, it should be smart enough not to clean out the logs!

Link to comment

The logs are actually stored in a RAM disk.  Something has to copy them off to a device (Flash Drive or HD) for them to be preserved to survive reboot or power shutdown.  unRIAD was designed to run from the RAM disk so as not to be continuously writing to the Flash Drive as those continual writes would cause the drive to fail within a short period of time. 

 

You can install the 'Fix Common Problems' plugin and turn on its 'troubleshooting mode' to do what you want to do.  That is what I would suggest that you do next. 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.