https://FQDN/sts/STSService/vsphere.local /var/log/vmware/vsphere-ui/logs/apigw.log we see entries similar to:[YYYY-MM-DDTHH:MM:SS.995Z] [WARN ] agw-token-acq22 ######## ###### 200029 AsyncTokenProvider [] Token acquisition took too long: 31568 ms[YYYY-MM-DDTHH:MM:SS.462Z] [WARN ] agw-token-acq23 ######## ###### 200030 AsyncTokenProvider [] Token acquisition took too long: 37028 ms[YYYY-MM-DDTHH:MM:SS8Z] [WARN ] agw-token-acq24 ######## ###### 200031 AsyncTokenProvider [] Token acquisition took too long: 31359 msThe issue has been resolved in vCenter Server version 7.0 P05 (U3d) and later. The fix involves an increased default timeout for token acquisition from the STS service.
Workaround:
In cases where patching the vCenter Server is not possible, the workaround for this issue is to extend the token acquisition timeout from the default 30 seconds to 2 minutes. The steps for implementing this workaround are as follows:
cd /usr/lib/vmware-vsphere-ui/plugin-packages/cis-data-service-plugin/pluginscp api-gateway-server.war ~unzip api-gateway-server.warvi WEB-INF/spring/bundle-context.xml<constructor-arg index="6" value="30" /> <!-- tokenAcquisitionTimeout --><constructor-arg index="7" value="SECONDS" /> <!-- timeUnitForTokenAcquisitionTimeout --><constructor-arg index="6" value="2" /> <!-- tokenAcquisitionTimeout --><constructor-arg index="7" value="MINUTES" /> <!-- timeUnitForTokenAcquisitionTimeout -->rm api-gateway-server.warzip -rm api-gateway-server.war META-INF WEB-INFchmod 755 api-gateway-server.warservice-control --restart vsphere-ui------------------------------------------------------------------------------------------------------------
Note: It is very important the the file permissions of api-gateway-server.war are 755 (rwxr-xr-x). If the permissions are incorrect, the login functionality will not work.