Skip to content

Issue with NTP Server Synchronization - Clock Unsynchronized #18085

Open
@Purnimayeggina

Description

@Purnimayeggina

Issue Description:
Our NTP configuration is based on the guidelines provided in the SONiC documentation https://github.com/sonic-net/SONiC/blob/master/doc/ntp/ntp-design.md
Facing issue in synchronizing the NTP server with the client on our system. This problem was identified when reviewing the NTP logs, which indicated a time error, specifically stating that the clock is unsynchronized.

Output of show ntp:
image

NTP Status Details:
Output of ntpq -p server ip_address
image

command used to generate the NTP logs:
sudo journalctl -u ntp

Logs:

Jun 19 01:40:35 sonic ntpd[12168]: proto: precision = 0.098 usec (-23)
Jun 19 01:40:35 sonic ntpd[12168]: basedate set to 2019-08-28
Jun 19 01:40:35 sonic ntpd[12168]: gps base set to 2019-09-01 (week 2069)
Jun 19 01:40:35 sonic ntpd[12168]: restrict 0.0.0.0: KOD does nothing without LIMITED
Jun 19 01:40:35 sonic ntpd[12168]: Listen normally on 0 lo 127.0.0.1:123
Jun 19 01:40:35 sonic ntpd[12168]: Listen normally on 1 eth0 172.30.25.103:123
Jun 19 01:40:35 sonic ntpd[12168]: Listening on routing socket on fd #18 for interface updates
Jun 19 01:40:35 sonic ntpd[12168]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Jun 19 01:40:35 sonic ntpd[12168]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Jun 19 01:40:35 sonic ntp-systemd-wrapper[12162]: Starting NTP server in default-vrf: ntpd
Jun 19 01:40:35 sonic systemd[1]: Started Network Time Service.

Additional Information:

All necessary services (ntp, hostcfgd, ntp-config) have been confirmed to be running.
The server ip address is reachable via ping.

Expected Outcome:

Successful synchronization with the configured NTP server.

I am seeking community assistance to identify any potential misconfigurations or issues that may be causing the problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions