Login to <IP/FQDN> failed. Cannot authenticate using the provided credentials"./common/logs/admin/web.log
<timestamps> [https-jsse-nio-127.0.0.1-8443-exec-4, Ent: HybridityAdmin, , TxId: TxId: ########-####-####-####-###### #######] ERROR c.v.v.h.api.registration. CloudConfig- Remote HCX login failed, response: {"status":"SUCCESS"," statusCode":401,"reason":""," headers":[{<Time Stamp>},{"Server":"Apache"},{" x-transaction-id":"########-## ##-####-####-#############"},{ "X-Content-Type-Options":" nosniff"},{"X-XSS-Protection": "1; mode=block"},{"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate"},{"Pragma":" no-cache"},{"Expires":"0"},{" Strict-Transport-Security":" max-age=31536000 ; includeSubDomains"},{"X-Frame- Options":"SAMEORIGIN"},{"vary" :"accept-encoding"},{"Content- Type":"application\/json"},{" Content-Security-Policy":" style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data:;"},{"Referrer-Policy":" no-referrer"},{"Keep-Alive":" timeout=5, max=100"},{"Connection":"Keep- Alive"},{"Transfer-Encoding":" chunked"}],"cookies":[]," result":"{\n \"timestamp\" : ############,\n \"status\" : 401,\n \"error\" : \"Unauthorized\",\n \"path\" : \"\/hybridity\/api\/sessions\" \n}"}
<timestamps> [https-jsse-nio-127.0.0.1-8443-exec-4, Ent: HybridityAdmin, , TxId: TxId: ########-####-####-####-###### #######] WARN c.v.v.h.api.registration. CloudConfig- Login to https://<IP/FQDN> failed. Cannot authenticate using provided credentials
/common/logs/admin/web.log
<timestamps> [https-jsse-nio-8443-exec-7, , , TxId: ] ERROR c.v.v.h.a.HybridityAuthenticationEntryPo int- AuthenticationEntryPoint - got AuthenticationException
org.springframework.security.authentication. BadCredentialsException: Error validating user <username>@vsphere.local: Status code: 500, Reason: Internal Server Error<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">< S:Body><S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">< faultcode xmlns:ns0="http://docs.oasis-open.org/ws-sx/ws-trust/200512 ">ns0:FailedAuthentication</ faultcode><faultstring>Invalid credentials</faultstring></S: Fault></S:Body></S:Envelope>
....
Caused by: java.lang.RuntimeException: Error validating user <username>@vsphere.local: Status code: 500, Reason: Internal Server Error<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">< faultcode xmlns:ns0="http://docs.oasis-open.org/ws-sx/ws-trust/200512 ">ns0:FailedAuthentication</ faultcode><faultstring>Invalid credentials</faultstring></S: Fault></S:Body></S:Envelope>
<timestamps> [https-jsse-nio-8443-exec-7, , , TxId: ] ERROR c.v.v.h.a.HybridityAuthenticationEntryPo int- Sending Response Error 401 for /hybridity/api/session
VMware HCX
The username or password used for establishing the Site Pairing is incorrect.
Provide a user from the destination/target site's SSO configuration. The user must be included in the HCX Role-Mapping Group configuration.
Note: The administrator@vsphere.local user is included by default.
To ensure the username and password are correct, log in to the target vCenter using the same credentials and verify that you can log in.