'Couldn't establish a connection to the VM web console'./var/log/vmware/vsphere-ui/logs/vsphere_client_virgo.log, you observe InvalidGrant errors:[YYYY-MM-DDTHH:MM:SS] [ERROR] nio-127.0.0.1-5090-exec-3672 70124732 109469 200245 c.v.v.r.restclient.impl.EnvoyVapiRequestExecutorServiceImpl Error obtaining JWT for the vsphere-ui service principal. com.vmware.vcenter.tokenservice.InvalidGrant: InvalidGrant (com.vmware.vcenter.tokenservice.invalid_grant) => {
messages = [LocalizableMessage (com.vmware.vapi.std.localizable_message) => {
id = com.vmware.vcenter.tokenservice.exceptions.InvalidGrant,
defaultMessage = Invalid SUBJECT token: tokenType=SAML2,
args = [],
params = <null>,
localized = <null>
}, LocalizableMessage (com.vmware.vapi.std.localizable_message) => {
id = com.vmware.identity.saml.InvalidTokenException,
defaultMessage = Token expiration date: ##i N## 0# ##:19:## GMT 2##4 is in the past.,/var/log/vmware/sso/tokenservice.log shows similar error that the token is in the past:
[YYYY-MM-DDTHH:MM:SS] INFO tokenservice[61:tomcat-http--23] [CorId=####### OpId=##] [com.vmware.identity.token.impl.SamlTokenImpl] Token expiration date: Fri Nov 08 03:36:46 GMT 2024 is in the past.
[YYYY-MM-DDTHH:MM:SS] ERROR tokenservice[61:tomcat-http--23] [CorId=####### OpId=##] [com.vmware.vcenter.tokenservice.vapi.TokenExchangeProviderImpl] Exchange failed due to invalid grant:
com.vmware.vcenter.tokenservice.exceptions.InvalidGrant: Invalid SUBJECT token: tokenType=SAML2VMware vCenter Server 8.x
Fixed in release VMware vCenter Server 8.0 Update 3e and higher. See for steps to download this release.
Workaround: Modify the Token Trustworthiness Clock Tolerance setting to accommodate the timing mismatch. To avoid being locked out of the vSphere Client, use two different browsers (e.g., Chrome and Firefox) during this process.
Within vSphere client, modify the Token Trustworthiness Clock Tolerance value to default setting of 600000 milliseconds.
600000 milliseconds.service-control --restart vsphere-ui