NTP service inactive

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
CombFiltered
Posts: 25
Joined: Tue Sep 17, 2024 2:11 pm

Sun Feb 23, 2025 3:38 am

I was having some issues with my system not being able to be updated, and I think I have traced it back to the time being inaccurate. I checked via the console and 'timedatectl status', and it says the NTP service is inactive. There is an NTP server set on the web UI, and I can see that server in the conf file. Is there a reason the NTP service is inactive? This is on the bare metal Linux image. Can/should I run 'timedatectl set-ntp true'? Or is there something else I should do to get the system to use NTP to sync time?
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Sun Feb 23, 2025 3:59 am

Time on both VMs needs to be aligned, yet, VMs will update even with time mismatch.
You are welcome to use timedatectl. The time change is going to be introduced later in the UI.
Possible reasons for VM not updating
1. Issues with Internet connectivity (e.g., firewall).
2. Management Service needs to be restarted.
3. The solution is already up-to-date.
CombFiltered
Posts: 25
Joined: Tue Sep 17, 2024 2:11 pm

Sun Feb 23, 2025 4:03 am

I confirmed that it was the time. I manually set it to get it close using 'timedatectl set-time' and now update works properly. I just need the NTP figured out so the time gets set properly.
CombFiltered
Posts: 25
Joined: Tue Sep 17, 2024 2:11 pm

Sun Feb 23, 2025 4:27 am

yaroslav (staff) wrote:
Sun Feb 23, 2025 3:59 am
You are welcome to use timedatectl.
I set this up (timedatectl set-ntp true), and it seems to be actually using the set NTP server now. I'm unsure why this wasn't on already if it has the NTP server on my network set. This isn't a VM, so has no host to sync to.

The previous time was off by about 4 hours in the past, which apparently was enough to break updates. I had not even thought to check this because the NTP server was set, but apparently wasn't syncing.
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Sun Feb 23, 2025 8:52 am

Thanks for sharing your experience.
It could be that something went sideways during the original configuration.
Anyway, I'm glad that you fixed it!
Post Reply