Unable to run vCenter NTP server checkERROR:vmware.appliance.vapi.auth:Could not parse HOK Token
Traceback (most recent call last):
File "/usr/lib/applmgmt/lib/extensions/py/vmware/appliance/extensions/authentication/authentication_sso.py", line 301, in validate
self.validate_certificate()
File "/usr/lib/applmgmt/lib/extensions/py/vmware/appliance/extensions/authentication/authentication_sso.py", line 503, in validate_certificate
raise AuthenticationError(
vmware.appliance.extensions.authentication.authentication_sso.AuthenticationError: One or more certificates cannot be verified.
validate_certificate
raise AuthenticationError(
vmware.appliance.extensions.authentication.authentication_sso.AuthenticationError: One or more certificates cannot be verified.
INFO:vmware.appliance.vapi.auth:Authorization request for service_id: com.vmware.appliance.system.time, operation_id: getDEBUG:vmware.appliance.health.impl:com.vmware.appliance.version1.system.time.get()ERROR applmgmt-update-microservice ######## [vc@#### module="ntp_precheck" funcName="checkNtpServers" lineNum="57"] Unable to retrieve NTP servers. err: {{challenge : None, messages : [LocalizableMessage(id='vapi.security.authentication.invalid', default_message='Unable to authenticate user', args=[], params=None, localized=None)], data : None, error_type : UNAUTHENTICATED}}ntpd[######]: kernel reports TIME_ERROR: 0x2041: Clock UnsynchronizedThe upgrade precheck script uses the applmgmt VAPI endpoint to verify NTP synchronization. This authentication relies on the Security Token Service (STS) certificate. If the STS certificate store contains an invalid number of certificate chains the Holder-of-Key (HOK) token cannot be parsed. This results in an UNAUTHENTICATED error, causing the NTP check to fail even if the NTP service itself is running correctly.
To resolve this issue, consolidate and renew the STS certificate chain to ensure the VAPI endpoint can authenticate successfully.
Follow the below steps
service-control --stop --all && service-control --start --allhttps://<vcenter-ip>:5480) and ensure the Time section correctly reflects the NTP status without errors.