system clock not adjusted when hardware clock in localtime

Bug #436076 reported by Scott James Remnant (Canonical)
66
This bug affects 12 people
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
Fix Released
Critical
Scott James Remnant (Canonical)
Karmic
Fix Released
Critical
Scott James Remnant (Canonical)

Bug Description

Binary package hint: util-linux

Since the Upstart migration, we appear to have regressed on this again.

The system clock doesn't get adjusted to UTC when the hardware clock is in localtime.

This will cause one of the following two errors on boot:

  hwclock main process (85) terminated with status 1

or (worse):

  /dev/sda1: Superblock last mount time (Thu Sep 24 20:58:00 2009,
          now = Thu Sep 24 19:59:23 2009) is in the future.

  /dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
          (i.e., without -a or -p options)
  mountall: fsck / [93] terminated with status 4
  mountall: Filesystem has errors: /

Tags: ubuntu-boot

Related branches

Changed in util-linux (Ubuntu):
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Scott James Remnant (scott)
milestone: none → ubuntu-9.10-beta
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package util-linux - 2.16-1ubuntu4

---------------
util-linux (2.16-1ubuntu4) karmic; urgency=low

  * Removed access checks for hardware clock when called with --systz,
    since we may not have the rtc device at the point we run hwclock.
    I believe this is the cause of LP: #436076.
  * Set kernel timezone even when the hardware clock is in UTC.
    LP: #426886.

  * Don't step the system clock, or save the hardware clock on upgrades
    in case the time isn't quite correct. LP: #430878.
  * Remove the hwclock.sh and hwclockfirst.sh scripts on upgrades, since
    these are now Upstart jobs. LP: #434767.

 -- Scott James Remnant <email address hidden> Thu, 24 Sep 2009 12:31:29 -0700

Changed in util-linux (Ubuntu Karmic):
status: In Progress → Fix Released
Revision history for this message
Richard Ulrich (richi-paraeasy) wrote :

since upgrading to karmic (release), I get the following very often:

 /dev/sda1: Superblock last mount time (Thu Sep 24 20:58:00 2009,
          now = Thu Sep 24 19:59:23 2009) is in the future.

  /dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
          (i.e., without -a or -p options)
  mountall: fsck / [93] terminated with status 4
  mountall: Filesystem has errors: /

I must add, that at times the bios complains before, and resets. So maybe the hardware clock is wrong. But that was no problem with jaunty.

Revision history for this message
Daniel Añez Scott (danielscott171) wrote :

Getting this bug in kubuntu 12.04. My locale is VET, UTC=no in rcS.
Also, plymouth blinks so it doesn't get to show the error, but I know it's that one, so I have to boot to recovery mode and run fsck, which messes up the clock in order to adjust it to the "present"...

Revision history for this message
gregrwm (gregrwm) wrote :

in precise, this causes my cable box to disconnect. the cable modem connects with the time wrong, ntp resets the time, dhclient then fails to renew the lease within the given time, and then Comcast terminates the connection.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.