vpxd-svcs service failed to start with following errors from vpxd-svcs.log logs.
:566) [commons-pool2-2.12.0.jar:2.12.0]
at org.apache.commons.pool2.impl.GenericObjectPool.addObject(GenericObjectPool.java:222) [commons-pool2-2.12.0.jar:2.12.0]
at com.vmware.cis.server.util.impl.InitPoolTask.run(InitPoolTask.java:44) [inventory-server.jar:?]
at java.base/java.lang.Thread.run(Unknown Source) [?:?]
<YYYY-MM-DD>T<time> [Thread-11 [] INFO com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor opId=] Provided credentials are not valid.
<YYYY-MM-DD>T<time> [Thread-11 [] WARN com.vmware.cis.server.util.impl.InitPoolTask opId=] Init pool encountered exception: com.vmware.cis.server.util.exception.AuthenticationException at attempt 15
<YYYY-MM-DD>T<time> [Thread-11 [] ERROR com.vmware.vim.sso.client.impl.SoapBindingImpl opId=] SOAP faultcom.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: Invalid credentials Please see the server log to find more detail regarding exact cause of the failure.at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:163) ~[jaxws-rt-2.3.4.jar:2.3.4]at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:98) ~[jaxws-rt-2.3.4.jar:2.3.4]at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:244) ~[jaxws-rt-2.3.4.jar:2.3.
<YYYY-MM-DD>T<time> [inventoryPermissionConverterScheduler-1 [] ERROR com.vmware.vcenter.trustmanagement.migration.InventoryPermissionConverter opId=] VPXD AuthZ inventory permission conversion failedcom.vmware.svcaccount.token.exceptions.AcquireTokenException: SAML token request was rejectedat com.vmware.svcaccount.token.TokenClient.acquireTokenForSvcAccount(TokenClient.java:192) ~[svcaccountlib.jar:?]at com.vmware.svcaccount.token.TokenClient.acquireHokToken(TokenClient.java:144) ~[svcaccountlib.jar:?]at com.vmware.vcenter.trustmanagement.vapi.impl.setup.ServiceUtil.getAuthenticatedSsoAdminClient(ServiceUtil.java:244) ~[libservice.jar:?]at com.vmware.vcenter.trustmanagement.migration.InventoryPermissionConverter.getCurrentSsoDomains(InventoryPermissionConverter.java:120) ~[libservice.jar:?]at com.vmware.vcenter.trustmanagement.migration.InventoryPermissionConverter.convertAliasPermissions(InventoryPermissionConverter.java:91) [libservice.jar:?]at jdk.internal.reflect.GeneratedMethodAccessor285.invoke(Unknown Source) ~[?:?]at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) [spring-context-5.3.42.jar:5.3.42]at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) [spring-context-5.3.42.jar:5.3.42]at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:?]at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?]at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]at java.base/java.lang.Thread.run(Unknown Source) [?:?]Caused by: com.vmware.vim.sso.client.exception.AuthenticationFailedException: Provided credentials are not valid.
<YYYY-MM-DD>T<time> [3179]INFO:vmware.appliance.backup_restore.schedule_impl:Schedule with id 'default' updated successfully.
<YYYY-MM-DD>T<time> [3179]ERROR:vmware.appliance.extensions.authentication.authentication_sso:Unhandled exception during SAML token validation
Traceback (most recent call last):
File "/usr/lib/applmgmt/lib/extensions/py/vmware/appliance/extensions/authentication/authentication_sso.py", line 507, in validate
self.validate_certificate()
File "/usr/lib/applmgmt/lib/extensions/py/vmware/appliance/extensions/authentication/authentication_sso.py", line 674, in validate_certificate
self.add_x509_pem_header(c)) for c in certsFromToken]
File "/usr/lib/applmgmt/lib/extensions/py/vmware/appliance/extensions/authentication/authentication_sso.py", line 674, in <listcomp>
self.add_x509_pem_header(c)) for c in certsFromToken]
File "/usr/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1825, in load_certificate
_raise_current_error()
File "/usr/lib/python3.7/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.crypto.Error: []
<YYYY-MM-DD>T<time> [3179]ERROR: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 507, in validate
self.validate_certificate()
File "/usr/lib/applmgmt/lib/extensions/py/vmware/appliance/extensions/authentication/authentication_sso.py", line 674, in validate_certificate
self.add_x509_pem_header(c)) for c in certsFromToken]
File "/usr/lib/applmgmt/lib/extensions/py/vmware/appliance/extensions/authentication/authentication_sso.py", line 674, in <listcomp>
self.add_x509_pem_header(c)) for c in certsFromToken]
File "/usr/lib/python3.7/site-packages/OpenSSL/crypto.py", line 1825, in load_certificate
_raise_current_error()
File "/usr/lib/python3.7/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.crypto.Error: []
ldif collected from vCenter looks like this:
dn: cn=vsphere.local,cn=IdentityProviders,cn=vsphere.local,cn=Tenants,cn=IdentityManager,cn=Services,dc=vsphere,dc=localobjectClass: vmwSTSIdentityStoreobjectClass: topcn: vsphere.localvmwSTSAlias: SYSTEM-DOMAIN <------ Legacy Configuration vmwSTSAuthenticationType: SRPvmwSTSConnectionStrings: ldap:/vcenter_fqdn:389vmwSTSDomainName: vsphere.localvmwSTSDomainType: SYSTEM_DOMAINvmwSTSGroupBaseDN: DC=vsphere,DC=localvmwSTSProviderType: IDENTITY_STORE_TYPE_VMWARE_DIRECTORYvmwSTSServiceUseMachineAccount: falsevmwSTSTimeout: 0vmwSTSUpnSuffixes: SYSTEM-DOMAIN <------Legacy ConfigurationvmwSTSUserBaseDN: DC=vsphere,DC=local
VMware vCenter Server 8.X
Issue occurred because of the python openssl library not able to load the certificates due to crypto error.
1. Take powered down snapshots of all linked vCenters.
2. Download Jxplorer and Java through the KB Using JXplorer to connect to the vSphere Single Sign-on
3. Navigate to Services > IdentityManager > Tenants > vsphere.local > Identity Providers > vsphere.local and remove both configurations (vmwSTSUpnSuffixes: SYSTEM-DOMAIN and vmwSTSAlias: SYSTEM-DOMAIN) as these are legacy configurations.
4. Restart services on vCenter: service-control --stop --all && service-control --start --all