Ubuntu Touch devices sometimes come up with hwclock set to 1970
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
New
|
Undecided
|
Unassigned | ||
Ubuntu |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
In smoke testing, starting around image 165, we started seeing a lot of autopilot tests start to fail with apparmor denials. After some further digging, we found that sometimes the device came up with a reasonable date/time, and sometimes it comes up after install with a date back in 1970. We found this in the syslog:
Aug 6 05:06:31 ubuntu-phablet ntpdate[2787]: step time server 91.189.89.199 offset 1400004685.653897 sec
(see: http://
Because we now precompile the apparmor rules, the updated rules getting pushed in via aa-clickhook happen before ntpdate has successfully updated the time and are getting timestamped with a very old date. Since apparmor sees that it already has newer rules cached, it does not update.
There are a few things at play here:
1. devices don't reliably come up with a reasonable time
2. It takes a bit for ntpdate to get the time/date fixed
3. hwclock -w is only called on proper shutdown, which is unlikely to happen for phones
tags: | added: lt-category-noimpact lt-prio-high |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1353591/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]