Skip to content

Conversation

IDisposable
Copy link
Contributor

Resolving issues with JetKVM devices not being able to contact any NTP servers to get time (and thus the clock is wrong, and thus the SSL negotiations fail, and thus auto update checks fail). This change can target DEV and MAIN.

  • Added check to not attempt auto update if time sync is needed and not yet successful (delays 30 second to recheck).
  • Added resync of time when DHCP or link state changes if online
  • Added conditional* fallback from configured* NTP servers to the IP-named NTP servers, and then to the DNS named ones if that fails
  • Added conditional* fallback from the configured* HTTP servers to the default DNS named ones.
  • Uses the configuration* option for how many queries to run in parallel
  • Added known static IPs for time servers (in case DNS resolution isn't up yet)
  • Added time.cloudflare.com to fall-back NTP servers
  • Note: The UI for configuring many of these things doesn't exist yet, but the defaults are reasonable

@IDisposable IDisposable changed the title fix/timesync - Make timesync work with fallbacks and repolling fix/timesync: Make timesync work with fallbacks and repolling Jun 13, 2025
@IDisposable IDisposable force-pushed the fix/timesync branch 2 times, most recently from a9c5ff9 to 00ef587 Compare July 11, 2025 17:47
@IDisposable
Copy link
Contributor Author

Rebased and tested

@ym ym added this to JetKVM Aug 4, 2025
@ym ym moved this to In Review in JetKVM Aug 4, 2025
@adamshiervani adamshiervani added this to the 0.5.0 milestone Aug 4, 2025
@adamshiervani adamshiervani requested a review from ym August 4, 2025 12:26
@IDisposable
Copy link
Contributor Author

Fixed the two go lint issues formatting (trailing tabs on merged line) and not using the NTP fallback hostnames. Also now logs out the final new time (and mode that it was fetched via)

@IDisposable IDisposable force-pushed the fix/timesync branch 2 times, most recently from 58967db to 695c876 Compare August 5, 2025 04:42
@IDisposable
Copy link
Contributor Author

Rebased to dev :shipit:

- Added check to not attempt auto update if time sync is needed and not yet successful (delays 30 second to recheck).
- Added resync of time when DHCP or link state changes if online
- Added conditional* fallback from configured* NTP servers to the IP-named NTP servers, and then to the DNS named ones if that fails
- Added conditional* fallback from the configured* HTTP servers to the default DNS named ones.
- Uses the configuration* option for how many queries to run in parallel
- Added known static IPs for time servers (in case DNS resolution isn't up yet)
- Added time.cloudflare.com to fall-back NTP servers
- Added fallback to NTP via hostnames
- Logs the resultant time (and mode)
@IDisposable
Copy link
Contributor Author

Rebased :)

@adamshiervani adamshiervani modified the milestones: 0.5.0, 0.4.7 Sep 11, 2025
@adamshiervani adamshiervani modified the milestones: 0.4.7, 0.5.0 Sep 11, 2025
@ym ym merged commit cf67997 into jetkvm:dev Sep 16, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in JetKVM Sep 16, 2025
@IDisposable IDisposable deleted the fix/timesync branch September 16, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants