0

I have a bit of a strange problem that just started happening recently. Out of nowhere Ubuntu 11.10 will just shut down.

I don't think its hardware because I can't find any information in the logs. I don't think its temperature because I monitor my temps and my machine is liquid cooled. The pc continues to run while the OS shuts down so its not being interrupted by power where all of a sudden everything just loses power. I don't really overload the machine at all, I mostly just code on it, but I do have apache2, tomcat, james email server, and mysql running on the system and they are auto started. I don't actually have any traffic coming into the machine though, I use it specifically for development.

Edit from comments:

It's not really going to a shut down screen, the screens go black and the computer still runs, but the actual OS shuts down because if I'm listening to music or something, the music will skip a few times and then stop. This is how Ubuntu normally shuts down for me so I assume its a software shutdown. It's not following a pattern unfortunately, it's random and sometimes within a few hours of the last time, other times its days between. Normally when I am on the machine.

Any ideas on how I can diagnose a problem like this? Does this sound like a memory leak issue?

3
  • can you clarify what you mean by "while the OS shuts down"? Are you seeing a shutdown screen or other messages saying it's turning off? Aug 14, 2012 at 17:45
  • No...the computer just turns off instantly. Both screens go black and the computer remains on until I manually turn it off and restart. I call this a shut down because this is how Ubuntu has been shutting down for me for a while, I always have to manually turn it off...thats another issue i've yet to address though, which is software related. I assumed an update in the future would solve it.
    – ryandlf
    Aug 14, 2012 at 17:48
  • Might be related, askubuntu.com/questions/125844/… Can you update your question with your hardware specifications, and Graphics card type.
    – Mateo
    Aug 14, 2012 at 21:11

4 Answers 4

1

Can you check the following and update your question with more information on it:

  • Ubuntu - Power Management Features (Shutdown on idle or Sleep on idle)
  • Ubuntu - Cron jobs for root and other users
  • Ubuntu - Recent Updates (Some updates require system reboot - I assume auto updates would restart the system when required)
  • BIOS - Power Management (enabled or disabled)
  • BIOS - Recent Updates
  • APPS - Any Bit torrents running? (Some Bit torrents shutdown after complete if set) - as seen in this forum

To check the cronjob type the following in the terminal:

for active session (the account you logged in with) cron jobs

crontab -l

for root's cron jobs

sudo crontab -l

for any other user's cronjob

sudo crontab -u <usename> -l
0
1

In general in a situation like this where you have an error that is hard to pinpoint and only happens from time to time you can only use the process of elimination to find the error. The first and obvious thing to try reseting the software part of your computer, so you could try backing up all your stuff and do a completely fresh install of 12.04 and see if the problem persists.

If it does, it might be hardware related. You can run a memory test which is included on all Ubuntu boot media overnight, if that turns out clean it might be any piece of hardware in your computer. It might be the PSU, the motherboard, your graphic card and so on. The only way to know for sure is replacing one at a time.

2
  • reinstalling the OS is unlikely to help - if it's hardware related it will still happen, and if it's a specific package then the odds are that the same package will get reinstalled anyway. Aug 14, 2012 at 17:40
  • You have no basis to assume that "the same package will get reinstalled anyway", you can't know that a package is causing this to begin with and you certainly can't know that it's a package included in the default install (or a package differing from 11.10 to 12.04). I also brought up the possibility of a hardware issue, the reinstalling part was just my first suggestion since it's a lot easier for most people.
    – pzkpfw
    Aug 14, 2012 at 19:02
0

That does not sound like a memory leak - that would just lead to poor performance rather than a sudden shutdown.

Does it happen at a specific time? If you are seeing a shutdown screen rather than just losing power, then it seems likely that an auto-shutdown script is running somewhere. Check this question for more details on that:

Why does my computer shuts down itself every morning at 6 AM?

3
  • Its not really going to a shut down screen, the screens go black and the computer still runs, but the actual OS shuts down because if im listening to music or something, the music will skip a few times and then stop. This is how Ubuntu normally shuts down for me so I assume its a software shutdown. Its not following a pattern unfortunately, its random and sometimes within a few hours of the last time, other times its days between. Normally when I am on the machine.
    – ryandlf
    Aug 14, 2012 at 17:49
  • that's not how ubuntu is supposed to shut down - you should see a ubuntu logo screen with a progress bar if it's shutting down properly. Aug 14, 2012 at 18:22
  • Yes, normally that does happen (when I shut down on purpose). But my PC usually never actually turns off. It usually freezes on that screen...again thats a different issue. The machine seems to be acting the same way in this case, but no its not shutting down exactly the same.
    – ryandlf
    Aug 14, 2012 at 18:24
0

Turns out the problem was the video card either being faulty, or more likely overheating. I replaced the card with a spare I had and its working fine. I didn't realize how loud the fan on the card was until I removed it, and it was completely saturated with dust. Gonna clean it out real good and try it again, but that was the culprit. How dare I blame Ubuntu! :)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .