By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.
k3OS ·

How to Set the Correct Time in Edge Devices (e.g., K3OS)

This troubleshooting guide provides step-by-step instructions on setting the correct time in K3OS and other edge devices when the time is incorrect, which can result in messages having the wrong timestamp.

How to Set the Correct Time in Edge Devices (e.g., K3OS)
⚠️
Please note that k3OS is deprecated. We recommend switching to flatcar instead.

If you're experiencing issues with timestamps in messages or other time-related problems in your edge devices, it may be due to incorrect time settings. Here's how you can fix it.

Instructions

  1. Execute the date command in the terminal to understand the current time.
  2. Execute sudo ntpd -w -d -p pool.ntp.org to get the offset from the timeserver and to check whether the timeserver is working. The offset is the difference between the local time and the NTP server time.
  3. If there is an offset, check whether there are NTP servers set in the /etc/connman/main.conf file. If not, add them.
  4. If NTP is not the issue, it could be caused by a backlog in the system, especially when using an older version with the MQTT bridge. In newer versions, you can check the lag of Kafka with Kowl and then go to consumer groups.

Read next

Share, Engage, and Contribute!

Discover how you can share your ideas, contribute to our blog, and connect with us on other platforms.