2015-12-15 11:05:06 |
Jean-Baptiste Lallement |
bug |
|
|
added bug |
2015-12-15 11:05:36 |
Jean-Baptiste Lallement |
bug task added |
|
ntp (Ubuntu) |
|
2015-12-15 11:05:49 |
Jean-Baptiste Lallement |
canonical-devices-system-image: importance |
Undecided |
High |
|
2015-12-15 11:07:44 |
Jean-Baptiste Lallement |
description |
current build number: 204
device name: krillin
channel: ubuntu-touch/rc-proposed/bq-aquaris.en
when the current date of the device is in the future, ntpdate fails with 'Invalid Argument'
For example:
* current date: passed
root@ubuntu-phablet:~# date
mardi 15 décembre 2015, 12:01:22 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
15 Dec 12:01:38 ntpdate[4360]: adjust time server 91.189.94.4 offset 0.000150 sec
* Date in the past: passed
root@ubuntu-phablet:~# date -s '2015-12-14 13:00:00'
lundi 14 décembre 2015, 13:00:00 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
15 Dec 12:03:02 ntpdate[5008]: step time server 91.189.89.199 offset 82943.900852 sec
* Date in the future: Failed
root@ubuntu-phablet:~# date -s '2015-12-16 13:00:00'
mercredi 16 décembre 2015, 13:00:00 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
16 Dec 13:00:10 ntpdate[4820]: Can't adjust the time of day: Invalid argument |
current build number: 204
device name: krillin
channel: ubuntu-touch/rc-proposed/bq-aquaris.en
when the current date of the device is in the future, ntpdate fails with 'Invalid Argument'
For example:
* current date: passed
root@ubuntu-phablet:~# date
mardi 15 décembre 2015, 12:01:22 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
15 Dec 12:01:38 ntpdate[4360]: adjust time server 91.189.94.4 offset 0.000150 sec
* Date in the past: passed
root@ubuntu-phablet:~# date -s '2015-12-14 13:00:00'
lundi 14 décembre 2015, 13:00:00 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
15 Dec 12:03:02 ntpdate[5008]: step time server 91.189.89.199 offset 82943.900852 sec
* Date in the future: Failed
root@ubuntu-phablet:~# date -s '2015-12-16 13:00:00'
mercredi 16 décembre 2015, 13:00:00 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
16 Dec 13:00:10 ntpdate[4820]: Can't adjust the time of day: Invalid argument
= Workaround =
Use option -b
root@ubuntu-phablet:~# date -s '2015-12-16 13:00:00'
mercredi 16 décembre 2015, 13:00:00 (UTC+0100)
root@ubuntu-phablet:~# ntpdate -b ntp.ubuntu.com
15 Dec 12:07:08 ntpdate[7083]: step time server 91.189.94.4 offset -89602.883248 sec |
|
2015-12-15 11:55:33 |
Jean-Baptiste Lallement |
description |
current build number: 204
device name: krillin
channel: ubuntu-touch/rc-proposed/bq-aquaris.en
when the current date of the device is in the future, ntpdate fails with 'Invalid Argument'
For example:
* current date: passed
root@ubuntu-phablet:~# date
mardi 15 décembre 2015, 12:01:22 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
15 Dec 12:01:38 ntpdate[4360]: adjust time server 91.189.94.4 offset 0.000150 sec
* Date in the past: passed
root@ubuntu-phablet:~# date -s '2015-12-14 13:00:00'
lundi 14 décembre 2015, 13:00:00 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
15 Dec 12:03:02 ntpdate[5008]: step time server 91.189.89.199 offset 82943.900852 sec
* Date in the future: Failed
root@ubuntu-phablet:~# date -s '2015-12-16 13:00:00'
mercredi 16 décembre 2015, 13:00:00 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
16 Dec 13:00:10 ntpdate[4820]: Can't adjust the time of day: Invalid argument
= Workaround =
Use option -b
root@ubuntu-phablet:~# date -s '2015-12-16 13:00:00'
mercredi 16 décembre 2015, 13:00:00 (UTC+0100)
root@ubuntu-phablet:~# ntpdate -b ntp.ubuntu.com
15 Dec 12:07:08 ntpdate[7083]: step time server 91.189.94.4 offset -89602.883248 sec |
current build number: 204
device name: krillin
channel: ubuntu-touch/rc-proposed/bq-aquaris.en
when the current date of the device is in the future, ntpdate fails with 'Invalid Argument'
For example:
* current date: passed
root@ubuntu-phablet:~# date
mardi 15 décembre 2015, 12:01:22 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
15 Dec 12:01:38 ntpdate[4360]: adjust time server 91.189.94.4 offset 0.000150 sec
* Date in the past: passed
root@ubuntu-phablet:~# date -s '2015-12-14 13:00:00'
lundi 14 décembre 2015, 13:00:00 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
15 Dec 12:03:02 ntpdate[5008]: step time server 91.189.89.199 offset 82943.900852 sec
* Date in the future: Failed
root@ubuntu-phablet:~# date -s '2015-12-16 13:00:00'
mercredi 16 décembre 2015, 13:00:00 (UTC+0100)
root@ubuntu-phablet:~# ntpdate ntp.ubuntu.com
16 Dec 13:00:10 ntpdate[4820]: Can't adjust the time of day: Invalid argument
After some experimentation, ntpdate fails if the difference between the current time on the device and the real time is bigger than 2^16 (65536)
= Workaround =
Use option -b
root@ubuntu-phablet:~# date -s '2015-12-16 13:00:00'
mercredi 16 décembre 2015, 13:00:00 (UTC+0100)
root@ubuntu-phablet:~# ntpdate -b ntp.ubuntu.com
15 Dec 12:07:08 ntpdate[7083]: step time server 91.189.94.4 offset -89602.883248 sec |
|
2015-12-15 11:57:19 |
Jean-Baptiste Lallement |
summary |
ntpdate fails with invalid argument when device is set to a date in the future |
ntpdate fails with invalid argument when device is set to a date in the future (delta > 2^16) |
|
2015-12-15 11:57:32 |
Jean-Baptiste Lallement |
canonical-devices-system-image: status |
New |
Confirmed |
|
2016-02-22 13:16:20 |
Alfonso Sanchez-Beato |
attachment added |
|
ntpdate-fix-lp1526264.patch https://bugs.launchpad.net/canonical-devices-system-image/+bug/1526264/+attachment/4577981/+files/ntpdate-fix-lp1526264.patch |
|
2016-02-22 14:10:58 |
Alfonso Sanchez-Beato |
attachment added |
|
ntpdate-fix-lp1526264.patch https://bugs.launchpad.net/canonical-devices-system-image/+bug/1526264/+attachment/4578045/+files/ntpdate-fix-lp1526264.patch |
|
2016-02-22 14:43:06 |
Alfonso Sanchez-Beato |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2016-02-22 14:44:34 |
Alfonso Sanchez-Beato |
bug |
|
|
added subscriber Alfonso Sanchez-Beato |
2016-02-22 14:46:56 |
Alfonso Sanchez-Beato |
attachment added |
|
ntpdate-fix-lp1526264.patch https://bugs.launchpad.net/canonical-devices-system-image/+bug/1526264/+attachment/4578103/+files/ntpdate-fix-lp1526264.patch |
|
2016-02-22 23:10:03 |
Mathew Hodson |
ntp (Ubuntu): importance |
Undecided |
High |
|
2016-02-23 16:18:54 |
Łukasz Zemczak |
bug task added |
|
ntp (Ubuntu RTM) |
|
2016-02-24 11:22:09 |
Łukasz Zemczak |
bug watch added |
|
http://bugs.ntp.org/show_bug.cgi?id=3023 |
|
2016-02-24 11:22:21 |
Łukasz Zemczak |
ntp (Ubuntu RTM): importance |
Undecided |
High |
|
2016-02-24 11:22:23 |
Łukasz Zemczak |
ntp (Ubuntu): assignee |
|
Łukasz Zemczak (sil2100) |
|
2016-02-24 11:26:03 |
Jean-Baptiste Lallement |
canonical-devices-system-image: status |
Confirmed |
Fix Committed |
|
2016-02-24 11:26:06 |
Jean-Baptiste Lallement |
canonical-devices-system-image: milestone |
|
ww08-2016 |
|
2016-02-24 11:30:08 |
Łukasz Zemczak |
ntp (Ubuntu RTM): status |
New |
Fix Released |
|
2016-02-24 13:00:46 |
Launchpad Janitor |
ntp (Ubuntu): status |
New |
Fix Released |
|
2016-04-12 17:51:25 |
Pat McGowan |
canonical-devices-system-image: status |
Fix Committed |
Fix Released |
|