Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Conversation

@davidwagnerkc
Copy link
Contributor

Description

Reboot after NTP sync is no longer necessary with the changes to the skills process startup.

How to test

Boot up device with no network connection or identity file. Set date back: sudo date -s "Sep 23 20:40:13 UTC 2019" and continue to setup wifi, pair device and confirm it works as expected.

Contributor license agreement signed?

CLA [Yes ] (Whether you have signed a CLA - Contributor Licensing Agreement

@devs-mycroft devs-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Sep 25, 2019
@penrods
Copy link
Contributor

penrods commented Sep 25, 2019

I understand why you'd want to get rid of this, but keep an eye on it. I don't recall the exact symptoms, but it involved an image which was months old being booted for the first time. In the startup sequence, the sudden passage of those "months" in one clock tick had some squirrelly effects on the system. This was a little ham-handed, but it was the most reliable solution at the time and seemed reasonable during that case. Perhaps the one-hour threshold was too aggressive -- I was trying to make it deal reasonably with the unplug, move and replug scenario.

Not saying you should avoid doing this, but be sure to test the impact of a really long restart. On the Raspberry Pi they use a thing called fake-hwclock to save the current time in a file at shutdown, then reset the clock on boot. You can potentially edit that file to simulate a long dormancy -- look for /etc/fake-hwclock.data.

@davidwagnerkc
Copy link
Contributor Author

davidwagnerkc commented Sep 25, 2019 via email

@davidwagnerkc
Copy link
Contributor Author

Did more tests with changing clock back a year and also tested with fresh Mark 1 image that was from June, removing ntp reboot and adding in monotonic time for pairing code expiration (MycroftAI/skill-pairing@2e42197). All test continue to look good. Merging.

@davidwagnerkc davidwagnerkc merged commit 6bf66bf into dev Sep 25, 2019
@forslund forslund deleted the feature/remove-ntp-reboot branch September 26, 2019 09:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants