NTP on SUSE 12 does not synchronize in RSA Identity Governance & Lifecycle
Originally Published: 2020-07-28
Last Modified: 2023-10-06
Article Number
Applies To
RSA Version/Condition: 7.1.x, 7.2.x
O/S Version: SUSE Linux Enterprise Server (SLES) 12
Issue
SYMPTOMS:
- Login to the server as root and execute the following commands:
- Run the timedatectl command. Note that NTP is not synchronized.
# timedatectl
Local time: Tue 2020-07-28 14:57:40 EDT
Universal time: Tue 2020-07-28 18:57:40 UTC
RTC time: Tue 2020-07-28 18:59:05
Time zone: America/New_York (EDT, -0400)
Network time on: no
NTP synchronized: no
RTC in local TZ: no
- Run the ntptime command. Note the UNSYNC status.
# ntptime
ntp_gettime() returns code 5 (ERROR)
time e2caf276.26eb0000 Tue, Jul 28 2020 14:52:38.152, (.152023),
maximum error 16000000 us, estimated error 16000000 us, TAI offset 0
ntp_adjtime() returns code 5 (ERROR)
modes 0x0 (),
offset 0.000 us, frequency 0.000 ppm, interval 1 s,
maximum error 16000000 us, estimated error 16000000 us,
status 0x41 (PLL,UNSYNC),
time constant 7, precision 1.000 us, tolerance 500 ppm,
- View the ntp log file and note the clock is unsynchronized. This message is logged every time the ntpd service is restarted.
# cat /var/log/ntp | grep Clock 28 Jul 14:49:27 ntpd[13176]: kernel reports TIME_ERROR: 0x4041: Clock Unsynchronized 28 Jul 14:49:27 ntpd[13176]: kernel reports TIME_ERROR: 0x4041: Clock Unsynchronized 28 Jul 14:50:22 ntpd[13260]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized 28 Jul 14:50:22 ntpd[13260]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Cause
Resolution
- Login as root and execute the following script:
if grep -q '^#NTP=' /etc/systemd/timesyncd.conf; then
NTP_SERVER=$(grep --max-count=1 server /etc/ntp.conf | awk '{ print $2 }')
[ -n "$NTP_SERVER" ] && sed -i "s/^#NTP=.*/NTP=$NTP_SERVER/" /etc/systemd/timesyncd.conf
service systemd-timesyncd restart
fi
The above script does the following:
- Configures SystemD by copying the name of the remote NTP server from /etc/ntp.conf into /etc/systemd/timesyncd.conf which is the SystemD service.
- Restarts the SystemD service.
Once the script has executed, NTP will report as synchronized.
- Run the timedatectl command again to verify NTP is now syncrhonized.
# timedatectl
Local time: Tue 2020-07-28 14:57:40 EDT
Universal time: Tue 2020-07-28 18:57:40 UTC
RTC time: Tue 2020-07-28 18:59:05
Time zone: America/New_York (EDT, -0400)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no
- Run the systemd-timesyncd status command to observe the NTP time server. Note the Status line in the output.
# service systemd-timesyncd status .... Status: "Synchronized to time server <IP address> (name of NTP server)."
Notes
- The ntpd daemon performs two functions:
- It keeps the machine time updated, and
- Provides NTP services for any other client such as Oracle which tries to detect if the machine is not synched with the global time.
- The timesyncd service is a built-in SystemD service that only synchronizes the local system clock with a remote Network Time Protocol server. It is just an NTP client and is not a replacement for the NTP server.
- As long as both services pull time from the same NTP source, it is fine to run them in parallel.
Related Articles
RSA-2024-03: RSA Governance and Lifecycle Security Update for SUSE Linux Enterprise Server Vulnerabilities 241Number of Views 'su -' doesn't prompt for passcode on SUSE with PAM Agent 28Number of Views Troubleshooting tips on testing and configuring NTP for time synchronization on RSA Identity Governance & Lifecycle servers 538Number of Views The provided file is invalid error seen while uploading the IDR OVA 81Number of Views Overview of using the Linux curl command to interact with the Web Services API in RSA Identity Governance & Lifecycle 709Number of Views
Trending Articles
How to manipulate imported RSA SecurID Software Token(s) on an iPhone or iPad device RSA Governance & Lifecycle Generic Database Collector Guide RSA Authentication Manager 8.7 SP2 Administrator's Guide RSA Authentication Manager 8.9 Release Notes (January 2026) RSA Authentication Manager 8.9 Setup and Configuration Guide
Don't see what you're looking for?