If you attempt to log in to HCX, you may encounter the following errors depending on how you are accessing the HCX Manager.
Error: Auth Failure: Time desync. Check NTP health. HCX time: 20##-##-##T##:##:##.###Z
Error: Http failure response for https://vcsa.com/plugins/com.vmware.hcx.plugin-4.##.##.######## -- 8#######8/10.##.##.##-443/vsphere-client/ui/hcx/hcx-ui/rest/hybridity/api/sessions: 401 OK
VMware HCX
This issue is caused by a time synchronization mismatch between the HCX Manager and the target vCenter/SSO domain, where the time drift exceeds 60 seconds (60,000 ms).
HCX requires accurate time synchronization using a valid NTP server for proper integrated system operations. NTP settings can be configured through the appliance management interface as shown below:
https://hcx-ip-or-fqdn:9443.For more details, refer to the following document: HCX NTP Server settings
Below are some troubleshooting commands you can use to verify the NTP configuration and update it if required. It is recommended to use an NTP server within the local subnet where possible, and to ensure all components such as vCenter, HCX, and NSX are synchronized to the same NTP server.
root@HCX-MGR [ ~ ]# vi /etc/systemd/timesyncd.conf
root@HCX-MGR [ ~ ]# systemctl status systemd-timesyncdroot@HCX-MGR [ ~ ]# systemctl start systemd-timesyncd -lroot@HCX-MGR [ ~ ]# systemctl stop systemd-timesyncd -l
root@HCX-MGR [ ~ ]# ntpdate -q ntpserver.ntp.org
root@HCX-MGR [ ~ ]# ntpdate ntpserver.ntp.org
root@HCX-MGR [ ~ ]# timedatectl
root@HCX-MGR [ ~ ]# timedatectl timesync-status