Server time incorrect after reboot

TDP

Member
May 6, 2019
14
7
3
USA
cPanel Access Level
Root Administrator
Hello,

I have cPanel/WHM 78.0.21 installed on a CloudLinux 7.6 VPS. The CloudLinux installation is a conversion from a CentOS 7 minimal installation. However, every time I reboot the server, the time is incorrect, and I must sync it with the time server through WHM. Is there a reason why this is occurring? Is there a NTP package I must install, or should cPanel/WHM be doing this automatically?

Thanks
 
  • Like
Reactions: mlopez

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,778
331
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
This is often the case if the time is wrong on the vm host node.

You can run

yum install ntp
service ntpd start
chkcofig ntpd on

To keep the time synced automatically.
 
  • Like
Reactions: mlopez

TDP

Member
May 6, 2019
14
7
3
USA
cPanel Access Level
Root Administrator
This is often the case if the time is wrong on the vm host node.

You can run

yum install ntp
service ntpd start
chkcofig ntpd on

To keep the time synced automatically.
Thanks for your reply GOT. I tried installing NTP and disabling Chronyd however the time still would not sync. I reverted back to using Chrony and it appears that it is unable to reach any time servers even after disabling the firewall on the VPS. I'm beginning to believe this is an issue on my VPS providers end and have opened a ticket with them. I'll post back here though if I continue having difficulty after ruling out my VPS provider's network as the issue.
 
  • Like
Reactions: cPanelMichael

httpdocs

Well-Known Member
Mar 9, 2018
59
10
83
United States
cPanel Access Level
Root Administrator
Thanks for your reply GOT. I tried installing NTP and disabling Chronyd however the time still would not sync. I reverted back to using Chrony and it appears that it is unable to reach any time servers even after disabling the firewall on the VPS. I'm beginning to believe this is an issue on my VPS providers end and have opened a ticket with them. I'll post back here though if I continue having difficulty after ruling out my VPS provider's network as the issue.
This is because of the attack on the ntp port.
Most of the time this port is closed by hosting/server provider.
Your issue is from the server node.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello @TDP,

Let us know the outcome once your VPS provider responds.

Thank you.
 

TDP

Member
May 6, 2019
14
7
3
USA
cPanel Access Level
Root Administrator
Hi,

Sorry for the late reply. I did get an update from my hosting provider. They said as the main IP for my VPS is going over Voxility for DDoS protection, the NTP port is indeed closed.
 
  • Like
Reactions: cPanelMichael