Reboots at 60 minutes
Hi--
What would cause a computer to reboot every 60 minutes? Here is what last shows: Code:
doug pts/0 :0.0 Sat Aug 9 20:40 still logged in I see a couple of these are shown as crash. But not all. About a week ago I had this problem and unplugging gave me a week without problems. About 4 months ago I had the issue and by accident discovered that the unplugging solved the problem. All problems have occurred on a Saturday, if that is any clue. No, there is nothing in crontab to trigger this. The system is Ubuntu 8.04.01 on a PC. I see nothing in bios that would do this, either. Any ideas where to start looking? Thanks! |
Have you checked all the crontabs? Nothing in atq? No temperature issues? Are you connected to a ups?
|
billymayday--
Thanks for being so quick in replying! anacrontab only has run-parts; there is a /usr/bin/crontab: Code:
doug@doug2:~$ /usr/bin/crontab -l The /etc/crontab is: Code:
# /etc/crontab: system-wide crontab Yes, I am connected to a ups, an APC ES 550, which is about a month old, so the problem spans the time pre and post ups. One curious thing is that many mornings between 8 and 9 am there is a "power failure" shown on the ups that lasts for a couple of seconds. It is usually reported as something like voltage is out of range. But none of that the last two days. Not sure how I'd check for temperature issues. This is in an air conditioned office, so the range should not be great. It has been cool the last couple of nights with temps dropping into the 50s F outdoors. Does any of this suggest other things to check? Thanks, billymayday! PS: last this morning shows another 9 reboots. |
From the log you present, it looks like your problem is on your Ubuntu system. Is it possible that you have the daemon that checks for updates and installs them automatically running? Perhaps it's trying to install something that requires a reboot (There are a few such things.) and the update is failing.
Try running aptitude, look at what seems to be available for updating, and apply each one by hand to see if one forces a reboot. |
PTrenholme--
Thanks for jumping in. Yours is a logical deduction. Unfortunately, I blew the execution of what you suggested. I do not know anything about aptitude and have never used it before. Don't understand its screens. I ran update manager and even had it check for updates, but it found none. I then ran synaptic and had it check for updates and it did not highlight any. I then tried sudo aptitude, and it listed a bunch of programs it would delete (all said that they were automatically installed and that the programs which depended upon them had been removed), and I thought I selected one to delete, but it deleted all of them. There was no request for a reboot during the process. I repeatedly did u and U and get nothing obvious showing up on aptitude. Then I ran sudo apt-get update and upgrade: It shows nothing to upgrade. Another clue which I think supports your theory: the last of the reboots happened this morning at 9:14. All of this activity has to my recollection been on Saturdays and Sundays and then it quiets down for the week. Are there any log files that would say exactly what is going on, what triggered the reboot? My only clue is I will be sitting here working, and then hear the computer fan start up. Sometimes I have an instant to save my work, but then it reboots. Strangeness.... |
Have a look at the mod time of your logs. Something like "ls -lrt /var/log" and see what got updated at or since the offending time.
|
billymayday--
Thanks for helping! dmesg.0 was created about that time, but it appears to be just the bootup sequence, so there is no real help there. There is a sequence of these at 8:27, 7:27, 6:27, 5:27, and 4:26. I have gone through what look to me like the likely clue-holding files and all I am seeing is various logs reporting that there were restarts at the approximate times showing in the "last" results in post 1 above. Here are the results from the applicable times--perhaps I am missing something. Which ones would you look in and for what (since not all seem to record times)? Code:
drwxr-x--- 3 root adm 4096 2008-08-10 00:33 samba |
I'd be looking at any log updated at or since the last reboot
Can you post the output of "ls /etc/cron.hourly" and "ls /var/spool/cron"? |
billymayday--
OK. So I previously looked at those log files and saw nothing that seemed to relate. Here is the output of those commands: Code:
doug@doug2:/etc/cron.hourly$ ls -alh Code:
0 Code:
# DO NOT EDIT THIS FILE - edit the master and reinstall. Code:
# DO NOT EDIT OR REMOVE But here is another clue, perhaps: When I manually reboot the machine, the next autoreboot is one hour from the manual reboot. So if it has been auto rebooting at 27 minutes past the hour, and I manually reboot at 14 minutes past, the next auto reboot is at 14 minutes past. So manually rebooting resets this "clock." What would do that? Thanks very much for continuing to help me, billymayday! |
The ./paceholder script, which runs every hour, looks like an infinite recursion. If it is, that would crash almost any system.
I do note that .placeholder is not listed as executable, but it looks, in the listing, like it's being invoked as a program. Frankly, I'm not too clear what the cron process does when the file to which it's pointed is not executable. Since the file is just a placeholder, perhaps you might remove it for a couple of hours and see what happens. (And if dkpg does remove the directory, so what? You can always recreate it. In fact, as a test, just mv /etc/cron.hourly /etc/cron.hourly~ and wait a couple hours. |
PTrenholme--
OIC what you mean by an infinite recursion. Looks like there are several of these: Code:
doug@doug2:~$ locate placeholder Thanks, PTrenholme! |
I looked at my Ubuntu setup, and here's what I get:
Quote:
To avoid any confusion, I simply mounted my Ubuntu partition, hence the /mnt Note that the last line of the OP's entry )/etc/cron.hourly/.placeholder (END)) is simply output from the less command, and is not in the file itself (it, try cat instead of less) |
billymayday--
Yes, you are right. What I posted was from less; using cat I get: Code:
doug@doug2:~$ cat /etc/cron.hourly/.placeholder I checked all the cron related .placeholder files and they are all identical to this. OK, so take a look here: Code:
ls -alh /etc/cron.weekly/ So, are we making any progress? Thanks for all your help, billymayday! |
I'm a bit stumped. It's clear that something is firing up after an hour to cause the problem. Sounds like nothing in cron or at, so presumably some other service that sleeps.
I need to fire Ubuntu up, so I'll come back |
What is in /etc/anacrontab?
|
All times are GMT -5. The time now is 09:33 AM. |