Bug 27195 - Time synchronization cannot be set over the Internet (NTP)
Summary: Time synchronization cannot be set over the Internet (NTP)
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: Mageia 8
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2020-08-25 10:03 CEST by Alex Kotov
Modified: 2020-08-25 14:16 CEST (History)
0 users

See Also:
Source RPM: drakxtools-18.33-1.mga8.src.rpm
CVE:
Status comment:


Attachments
Setting up time synchronization over the Internet (175.75 KB, image/png)
2020-08-25 10:04 CEST, Alex Kotov
Details
Time synchronization via the Internet is not installed (176.92 KB, image/png)
2020-08-25 10:05 CEST, Alex Kotov
Details
3-chrony is installed (231.61 KB, image/png)
2020-08-25 13:38 CEST, Alex Kotov
Details
4-chronyd.service is disabled-dead (169.55 KB, image/png)
2020-08-25 14:13 CEST, Alex Kotov
Details

Description Alex Kotov 2020-08-25 10:03:29 CEST
Description of problem:
Hi. Time synchronization cannot be set over the Internet (NTP) in drakconf/drakclock.

Version-Release number of selected component (if applicable):
Mageia Cauldron, drakclock

How reproducible:
Install Mageia Linux and enable synchronization via NTP. See screenshots in the attached files...
Comment 1 Alex Kotov 2020-08-25 10:04:47 CEST
Created attachment 11834 [details]
Setting up time synchronization over the Internet
Comment 2 Alex Kotov 2020-08-25 10:05:38 CEST
Created attachment 11835 [details]
Time synchronization via the Internet is not installed
Comment 3 Aurelien Oudelet 2020-08-25 10:25:56 CEST
Hi,

Thanks reporting this,

Actually, drakclock should propose you to install chrony NTP package if not installed.

Is it installed on your system when proposed by UI?
Simply do in console:

$ rpm -q --last chrony

It will return "package    chrony is not installed" this is not obvious or:
"chrony-3.5.1-1.mga8.x86_64 Saturday 08 August 2020 08:00:15 AM CEST"
so it is installed.

Source RPM: (none) => drakxtools-18.33-1.mga8.src.rpm

Comment 4 Alex Kotov 2020-08-25 13:37:12 CEST
Hello, Aurelien Oudelet. The "chrony" package is installed. Please see the screenshot "3-chrony is installed".
Comment 5 Alex Kotov 2020-08-25 13:38:29 CEST
Created attachment 11836 [details]
3-chrony is installed
Comment 6 Aurelien Oudelet 2020-08-25 13:51:29 CEST Comment hidden (obsolete)

Target Milestone: --- => Mageia 8
Severity: normal => major

Comment 7 Aurelien Oudelet 2020-08-25 13:55:06 CEST
OK,

What about this command as root:
#systemctl status chronyd.service

Does it runs or failed?
Comment 8 Alex Kotov 2020-08-25 14:12:34 CEST
chronyd.service is disabled. See the screenshot: "4-chronyd.service is disabled-dead".
Comment 9 Alex Kotov 2020-08-25 14:13:01 CEST
Created attachment 11837 [details]
4-chronyd.service is disabled-dead
Comment 10 Aurelien Oudelet 2020-08-25 14:15:52 CEST
Bug is reproduce on my side (Mageia 8 Beta 1)

Running Drakclock, log outputs:
drakclock[3660]: ### Program is starting ###
drakclock[3660]: launched command: systemctl is-active chronyd.service >/dev/null
drakclock[3600]: running: /bin/rpm -q --qf %{name}
                                                 ntp
drakclock[3600]: running: /bin/rpm -q --qf %{name}
                                                 chrony
drakclock[3600]: running: xset s off
drakclock[3600]: running: xset -dpms
drakclock[3660]: modified file /etc/chrony.conf
drakclock[3660]: running: /sbin/chkconfig --list --type xinetd
drakclock[3660]: running: /bin/systemctl enable --no-reload chronyd.service
drakclock[3660]: running: /bin/systemctl --quiet is-active chronyd.service
drakclock[3660]: running: /bin/systemctl --no-block start chronyd.service
systemd[1]: Starting NTP client/server...
systemd[1]: Stopping Network Time Synchronization...
drakclock[3660]: launched command: systemctl enable chronyd.service
systemd[1]: systemd-timesyncd.service: Succeeded.
systemd[1]: Stopped Network Time Synchronization.
chronyd[4380]: chronyd version 3.5.1 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER -SIGND +ASYNCDNS +SECHASH +IPV6 -DEBUG)
chronyd[4380]: Initial frequency -7.207 ppm
systemd[1]: Reloading.
drakclock[3660]: launched command: systemctl stop chronyd.service
systemd[1]: Started NTP client/server.
chronyd[4380]: chronyd exiting
systemd[1]: Stopping NTP client/server...
systemd[1]: chronyd.service: Succeeded.
systemd[1]: Stopped NTP client/server.
drakclock[3660]: launched command: systemctl start chronyd.service
systemd[1]: Starting NTP client/server...
chronyd[4407]: chronyd version 3.5.1 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER -SIGND +ASYNCDNS +SECHASH +IPV6 -DEBUG)
chronyd[4407]: Frequency -7.207 +/- 1000000.000 ppm read from /var/lib/chrony/drift
systemd[1]: Started NTP client/server.
drakclock[3660]: launched command: chronyc waitsync 30 0.1
chronyd[4407]: Selected source 162.159.200.123
drakclock[3660]: launched command: /sbin/hwclock --systohc
drakclock[3660]: running: xset +dpms
drakclock[3660]: running: xset s on
drakclock[3660]: running: xset s reset
drakclock[3660]: ### Program is exiting ###
drakclock[4462]: ### Program is starting ###
drakclock[4462]: launched command: systemctl is-active chronyd.service >/dev/null
drakclock[4462]: running: /bin/rpm -q --qf %{name}
                                                 ntp
drakclock[4462]: running: /bin/rpm -q --qf %{name}
                                                 chrony
drakclock[4462]: running: xset s off
drakclock[4462]: running: xset -dpms
drakclock[4462]: modified file /etc/chrony.conf
drakclock[4462]: running: /sbin/chkconfig --list --type xinetd
drakclock[4462]: running: /bin/systemctl enable --no-reload chronyd.service
drakclock[4462]: running: /bin/systemctl --quiet is-active chronyd.service
drakclock[4462]: running: /bin/systemctl --no-block restart chronyd.service
chronyd[4407]: chronyd exiting
systemd[1]: Stopping NTP client/server...
systemd[1]: chronyd.service: Succeeded.
systemd[1]: Stopped NTP client/server.
systemd[1]: Starting NTP client/server...
drakclock[4462]: launched command: systemctl enable chronyd.service
chronyd[4493]: chronyd version 3.5.1 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER -SIGND +ASYNCDNS +SECHASH +IPV6 -DEBUG)
chronyd[4493]: Frequency 46.176 +/- 683.550 ppm read from /var/lib/chrony/drift
systemd[1]: Reloading.
drakclock[4462]: launched command: systemctl stop chronyd.service
systemd[1]: Started NTP client/server.
chronyd[4493]: chronyd exiting
systemd[1]: Stopping NTP client/server...
systemd[1]: chronyd.service: Succeeded.
systemd[1]: Stopped NTP client/server.
drakclock[4462]: launched command: systemctl start chronyd.service
systemd[1]: Starting NTP client/server...
chronyd[4519]: chronyd version 3.5.1 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER -SIGND +ASYNCDNS +SECHASH +IPV6 -DEBUG)
chronyd[4519]: Frequency 46.176 +/- 683.550 ppm read from /var/lib/chrony/drift
systemd[1]: Started NTP client/server.
drakclock[4462]: launched command: chronyc waitsync 30 0.1
chronyd[4519]: Selected source 162.159.200.123
drakclock[4462]: launched command: /sbin/hwclock --systohc
drakclock[4462]: running: xset +dpms
drakclock[4462]: running: xset s on
drakclock[4462]: running: xset s reset
drakclock[4462]: ### Program is exiting ###

On first attempt, chrony is installed, Europe/Paris ntp pool is selected in UI.
Subsequent relaunching drakclock: UI is like attached screenshot: https://bugs.mageia.org/attachment.cgi?id=11835

BUT:
$ systemctl status chronyd  gives:
● chronyd.service - NTP client/server
     Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2020-08-25 13:53:41 CEST; 39s ago
       Docs: man:chronyd(8)
             man:chrony.conf(5)
    Process: 4517 ExecStart=/usr/sbin/chronyd $OPTIONS (code=exited, status=0/SUCCESS)
    Process: 4521 ExecStartPost=/usr/libexec/chrony-helper update-daemon (code=exited, status=0/SUCCESS)
   Main PID: 4519 (chronyd)
      Tasks: 1 (limit: 19119)
     Memory: 1.1M
        CPU: 19ms
     CGroup: /system.slice/chronyd.service
             └─4519 /usr/sbin/chronyd

août 25 13:53:41 mageia.local systemd[1]: Starting NTP client/server...
août 25 13:53:41 mageia.local chronyd[4519]: chronyd version 3.5.1 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER -SIGND +ASYNCDNS +SECHASH +IPV>
août 25 13:53:41 mageia.local chronyd[4519]: Frequency 46.176 +/- 683.550 ppm read from /var/lib/chrony/drift
août 25 13:53:41 mageia.local systemd[1]: Started NTP client/server.
août 25 13:53:46 mageia.local chronyd[4519]: Selected source 162.159.200.123

Good running NTP client on system.
It is configured and running every system boot whereas Drakclock UI is not updated.

Does this refer to systemctl commands changes in systemd version 246?
Like bugs https://bugs.mageia.org/show_bug.cgi?id=27046

Assigning to Mageia Tools Team.

Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged

Aurelien Oudelet 2020-08-25 14:16:13 CEST

Assignee: bugsquad => mageiatools


Note You need to log in before you can comment on or make changes to this bug.