• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Synchronize system time (on Ubuntu 20.04)

Myrlo

New Pleskian
Hello,

I did a fresh install of Plesk on Ubuntu 20.04.

I have an error every day with the cron job "/ usr / sbin / ntpdate -b -s 1.pool.ntp.org"

"ntpdate" did not seem to be installed by default.

Installing ntpdate solves the problem of the cron job error but without the ability to administer.

I noticed that I no longer have the option to sync the server in the settings


plesk-time.jpg

Nobody has this problem since Ubuntu 20.04?

Best regards
 
Last edited:
Make sure that you have such records in database:

Code:
# plesk db "select * from misc where param like 'ntp%';"
+-------------+----------------+
| param       | val            |
+-------------+----------------+
| ntp_enabled | true           |
| ntp_server  | 0.pool.ntp.org |
+-------------+----------------+
 
Make sure that you have such records in database:

Code:
# plesk db "select * from misc where param like 'ntp%';"
+-------------+----------------+
| param       | val            |
+-------------+----------------+
| ntp_enabled | true           |
| ntp_server  | 0.pool.ntp.org |
+-------------+----------------+
Yes ;-)

But not administrable via the interface: .../plesk/server/time/

By default ntpdate was not installed on my version 20.04 (it was the case on 16.04 and 20.04). It must be causing problems for other users.
 
I can confirm there is a problem here. A fresh install on Debian 10 has the same problem.
Installing ntpdate fixes time updates, but the functionality to configure the sync server is still missing from the UI in plesk.
 
Tools & Settings > Server Management > Server Components
then click "Refresh"
then try again. Is the item now present?
 
Hello,

It is a know limitation. The time synchronization settings are not available in Plesk for Debian 10 and Ubuntu 20.

Please refer to the following knowledge base articles:

 
The above Ubuntu article mentions Ubuntu 20.04 uses chronyd service.
chrony did not come with Ubuntu on my server.
Tried to install it
# apt-get install chrony
Gives this message
The following packages will be REMOVED:
openntpd
The following NEW packages will be installed:
chrony
0 upgraded, 1 newly installed, 1 to remove and 19 not upgraded.
So with Plesk/ Ubuntu what is the correct method of synchronising server time?
 
So with Plesk/ Ubuntu what is the correct method of synchronising server time?

@brainforge We were aware in advance of the Plesk Obsidian shortfall in terms of time synchronisiation etc so we have used chrony (via CLI) since we switched over from Ubuntu 18.04 LTS to 20.04 LTS with no issues at all. THIS Ubuntu article was for written 18.04 but it's just the same on our 20.04 and THIS comparative article gives you plenty of cross references. There's lots and lots of online 3rd party articles about 20.04 and chrony too if needed.
 
@brainforge ( and @Myrlo, @stevendegroote, @Aytalina )

Ubuntu 20.04 LTS uses timedatectl and timesyncd for synchronising time, installed automatically as part of systemd.

Stated differently, time is synchronized by default ....... and there is no need to configure synchronization via Plesk interface.

You can check it by running : timedatectl status

More information to be found on Use timedatectl and timesyncd | Ubuntu

Please note that installing chrony is NOT necessary, unless you want to "serve" time (to other servers) ....


In short, this is NOT a shortfall of Plesk .... the absence of the option to configure NTP servers in Plesk is normal for at least Ubuntu 20.04 LTS.

Kind regards....
 
Back
Top