FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 11-21-2011, 04:32 AM
Myra Nelson
 
Default apcupsd or rtkit - Caused time to go haywire on shutdown/reboot??

On Wed, Oct 19, 2011 at 14:46, Leonid Isaev <lisaev@umail.iu.edu> wrote:

> On (10/19/11 14:19), David C. Rankin wrote:
> -~> On 10/18/2011 04:33 PM, Leonid Isaev wrote:
> -~> >-~> That's 3 spontaneous reboots in 11 minutes. Something is
> really off.
> -~> >-~>
> -~> >-~> --
> -~> >-~> David C. Rankin, J.D.,P.E.
> -~> >
> -~> >Nothing puzzling here: the kernel is working correctly but your RTC
> is wrong
> -~> >(no idea how this could happen though). If by "spontaneous" you mean
> "no errors
> -~> >in the logs", then it's a hardware problem. As a first step, I would
> kill
> -~> >apcupsd and get rid of UPS.
> -~>
> -~> No errors in the logs, to the RTC looks like the culprit. After
> -~> fixing the RTC, I haven't experienced any more of the reboots.
> -~> Bizarre... This box has run fine for years, then following the
> -~> power outage, the RTC went nuts. I think that was simply the
> -~> issue. However, I don't think we will ever explain why the RTC
> -~> became an issue that caused the reboots. Looking at all the logs,
> -~> the RTC has been all over the place this past month:
> -~>
> -~> Oct 19 13:15:02 providence crond[955]: time disparity of 301 minutes
> detected
> -~> Oct 18 12:42:00 providence crond[958]: time disparity of -479 minutes
> detected
> -~> Oct 18 12:32:00 providence crond[1180]: time disparity of -479 minutes
> detected
> -~> Oct 18 11:19:01 providence crond[978]: time disparity of -479 minutes
> detected
> -~> Oct 18 09:44:01 providence crond[953]: time disparity of -478 minutes
> detected
> -~> Oct 12 09:24:01 providence crond[942]: time disparity of -79 minutes
> detected
> -~> Oct 7 10:55:59 providence crond[964]: time disparity of 253 minutes
> detected
> -~> Oct 5 07:55:57 providence crond[921]: time disparity of 383 minutes
> detected
> -~> Oct 3 16:23:01 providence crond[954]: time disparity of 301 minutes
> detected
> -~>
> -~> 300 is correct for the 5 hour offset for CDT, I can't explain the
> -~> wild swings from Oct 3 to Oct 18. That is a 862 minute difference
> -~> between Oct 5 and Oct 18. init scripts? kernels?
> -~>
> -~> The other box that experienced this problem had the following:
> -~>
> -~> Oct 5 08:27:32 localhost crond[789]: time disparity of -546 minutes
> detected
> -~> Sep 27 22:18:01 localhost crond[794]: time disparity of -475 minutes
> detected
> -~>
> -~> both those dates must have been kernel updates, because that is
> -~> the only time that box gets restarted. Strange, thanks for your
> -~> help.
> -~>
> -~> --
> -~> David C. Rankin, J.D.,P.E.
>
> OK. But few remarks:
> (1) Crond or any other program including syslog must use
> the current timezone unless you specifically instructed it to use UTC, so
> 5h
> offsets are not fine. The rtkit stuff IS A BUG related to chroot being
> unable
> to set a correct TZ.
>
> (2) Either your motherboard is hosed or the RTC battery is discharged. Do
> you
> have a large time drift (like an hour per day) reported by the hwclock? If
> you
> have time offsets only when rebooted, I think the second option is more
> likely.
>
> --
> Leonid Isaev
> GnuPG key ID: 164B5A6D
> Key fingerprint: C0DF 20D0 C075 C3F1 E1BE 775A A7AE F6CB 164B 5A6D
>

Late to the party, but I just had a box jump off by 360 minutes. It was
used this morning then sat all day. Bios is set to utc, rc.conf is set for
utc, and time zone is correct.

HARDWARECLOCK="UTC"
TIMEZONE="America/Chicago"

Local time was 23:04 Nov 20, and the box showed 05:04 Nov 21. I updated the
box yesterday. Turns out there was an error in /etc/ntp.conf. I didn't
check file and line 37 [ Allow localhost ] caused ntpd to through a shoe.
Proof that laziness is not always the best policy.

This may be totally unrelated to your problem but thought I would pass this
on.

Myra
--
Life's fun when your sick and psychotic!
 

Thread Tools




All times are GMT. The time now is 09:13 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org