Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 275
Rep:
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
doug tty7 :0 Sat Aug 9 20:36 still logged in
reboot system boot 2.6.24-19-generi Sat Aug 9 20:35 - 20:45 (00:09)
doug pts/0 :0.0 Sat Aug 9 18:11 - crash (02:24)
doug tty7 :0 Sat Aug 9 18:11 - crash (02:24)
reboot system boot 2.6.24-19-generi Sat Aug 9 18:10 - 20:45 (02:34)
doug pts/0 :0.0 Sat Aug 9 18:03 - down (00:05)
doug tty7 :0 Sat Aug 9 18:03 - down (00:05)
reboot system boot 2.6.24-19-generi Sat Aug 9 17:23 - 18:08 (00:45)
reboot system boot 2.6.24-19-generi Sat Aug 9 16:23 - 18:08 (01:45)
reboot system boot 2.6.24-19-generi Sat Aug 9 15:23 - 18:08 (02:45)
reboot system boot 2.6.24-19-generi Sat Aug 9 14:22 - 18:08 (03:45)
reboot system boot 2.6.24-19-generi Sat Aug 9 13:22 - 18:08 (04:46)
doug pts/0 :0.0 Sat Aug 9 12:26 - crash (00:56)
doug tty7 :0 Sat Aug 9 12:25 - crash (00:56)
reboot system boot 2.6.24-19-generi Sat Aug 9 12:25 - 18:08 (05:43)
doug pts/0 :0.0 Sat Aug 9 12:17 - 12:19 (00:02)
doug tty7 :0 Sat Aug 9 12:16 - 12:19 (00:03)
reboot system boot 2.6.24-19-generi Sat Aug 9 11:29 - 12:19 (00:49)
doug pts/0 :0.0 Sat Aug 9 10:57 - 11:00 (00:03)
doug tty7 :0 Sat Aug 9 10:53 - crash (00:35)
reboot system boot 2.6.24-19-generi Sat Aug 9 10:29 - 12:19 (01:50)
reboot system boot 2.6.24-19-generi Sat Aug 9 09:29 - 12:19 (02:50)
reboot system boot 2.6.24-19-generi Sat Aug 9 08:28 - 12:19 (03:50)
reboot system boot 2.6.24-19-generi Sat Aug 9 07:28 - 12:19 (04:51)
reboot system boot 2.6.24-19-generi Sat Aug 9 06:28 - 12:19 (05:51)
(At 12:16 I shut down the computer, unplugging everything from the wall, and then restarted. I noticed that the computer, even after shutdown -h now did not power off--had to pull the plug to do that. Then again at 6:10 pm I went through the same procedure and again at 7:10 pm it shutdown again--not sure why those are not showing on this log.)
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.
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 275
Original Poster
Rep:
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
no crontab for doug
doug@doug2:~$ sudo /usr/bin/crontab -l
[sudo] password for doug:
7 0 * * * /etc/webmin/cron/tempdelete.pl
This appears to be deleting temporary files created by webmin, and I have not run webmin on this machine in ages. That seems an unlikely source of the problem.
The /etc/crontab is:
Code:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
####copied from sdb1 (old drive) and refers there 20071208: did not work so commented out for now; changed to new locations 20071210:
0 * * * * root /usr/sbin/esets_update
##############ddg 20061113 updated for new directories 20071210:
#0 3 * * * root /usr/sbin/esets_scan -l --mail –unsafe / -- -/dev* -/proc* -/sam* -/media/sdb1/dev* -/media/sdb1/proc* -/media/sdb1/sam*
###20080715 ddg:
#0 3 * * * root /usr/sbin/esets_scan -f /var/log/esets/scan.log / --exclude /dev /proc /sam
0 3 * * * root /etc/cron.doug/eset
#0 21 * * * root /etc/cron.doug/eset
###
30 * * * * root cp -pru ~doug/.evolution /sam/vol22/comm/evo/
#######added by ddg 20080115:
21 15 * * * root cp -u /sam/vol22/data/ts/TSBACKUP.BKU ~doug
#######end of addition 20080115
###added by ddg 20080120:
31 01 18 1,3,5,7,9,11 * root /etc/cron.doug/bkmonthone
31 01 18 2,4,6,8,,10,12 * root /etc/cron.doug/bkmonthtwo
# 31 01 18 3,6,9,12 * root /etc/cron.doug/bkmonththree
###
atq returns nothing--just another command prompt.
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.
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.
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 275
Original Poster
Rep:
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.
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 275
Original Poster
Rep:
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)?
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.s3CJwX/crontab installed on Sat Feb 2 13:19:24 2008)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
7 0 * * * /etc/webmin/cron/tempdelete.pl
/var/spool/cron/crontabs/root (END)
less /etc/cron.hourly/.placeholder produces:
Code:
# DO NOT EDIT OR REMOVE
# This file is a simple placeholder to keep dpkg from removing this directory
/etc/cron.hourly/.placeholder (END)
So I see no clues in any of this. Do you?
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 dkpgdoes 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.
I looked at my Ubuntu setup, and here's what I get:
Quote:
cat /mnt/etc/cron.hourly/.placeholder
# DO NOT EDIT OR REMOVE
# This file is a simple placeholder to keep dpkg from removing this directory
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)
Last edited by billymayday; 08-11-2008 at 04:09 PM.
Distribution: Ubuntu 8.04.1 desk; Red Hat 9.0 server
Posts: 275
Original Poster
Rep:
billymayday--
Yes, you are right. What I posted was from less; using cat I get:
Code:
doug@doug2:~$ cat /etc/cron.hourly/.placeholder
# DO NOT EDIT OR REMOVE
# This file is a simple placeholder to keep dpkg from removing this directory
doug@doug2:~$
So we are back to square one: no real clue in the cron files.
I checked all the cron related .placeholder files and they are all identical to this.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.