Failed to init PSC and/or Postgres. Check the SDDC Manager UI Server logs for more details."VMware Cloud Foundation is initializing"/var/log/vmware/vcf/sddc-manager-ui-app/sddcManagerServer.log:YYYY-MM-DDT HH:MM:SS VERBOSE [#############, ################, ##############] [services/logging/opentrace.js, init-pscs-primary, _finish:###] Span init-pscs-primary complete: Total time: ####ms {"duration":####}###.###: VError: PSC Initialization attempt "6" failed: Failed to initiate PSC: Primary psc init failed and failover psc init also failed: Unable to retrieve iDP Metadata: Request failed with status code 500 at Object.initializationPscError (/opt/vmware/vcf/sddc-manager-ui-app/server/src/errors/VCFError.js:###:#)Error Info: {"retryCount":6,"status":403,"errorModule":100,"errorCode":109,"code":"ERR_BAD_RESPONSE"}caused by:###.###: VError: Failed to initiate PSC: Primary psc init failed and failover psc init also failed: Unable to retrieve iDP Metadata: Request failed with status code 500 at Object.initiatePscError (/opt/vmware/vcf/sddc-manager-ui-app/server/src/errors/VCFError.js:###:#)Error Info: {"errorModule":100,"errorCode":108,"code":"ERR_BAD_RESPONSE"}YYYY-MM-DDT HH:MM:SS ERROR [##############, ############, ###############] [services/wrappers/requestPromiseWrapper.js, init-pscs-primary, logAxiosError:##] axios.error.response.data {"data":"Error executing remote command via SSH: WARNING: Your password has expired.\nPassword change required but no TTY available."}/var/log/vmware/vcf/sddc-manager-ui-app/sddcManagerServer.log:YYYY-MM-DDT HH:MM:SS <SDDC Manager Hostname> sddc-manager-ui-app[#####]: /opt/vmware/vcf/sddc-manager-ui-app/server/src/services/sso-initialization.js:###YYYY-MM-DDT HH:MM:SS <SDDC Manager Hostname> sddc-manager-ui-app[#####]: timeout = setTimeout(reject, sshCommandTimeout, new Error(failureMessage));YYYY-MM-DDT HH:MM:SS <SDDC Manager Hostname> sddc-manager-ui-app[#####]: Error: Remote ssh command timed outYYYY-MM-DDT HH:MM:SS <SDDC Manager Hostname> sddc-manager-ui-app[#####]: at /opt/vmware/vcf/sddc-manager-ui-app/server/src/services/sso-initialization.js:###:##YYYY-MM-DDT HH:MM:SS <SDDC Manager Hostname> sddc-manager-ui-app[#####]: at new Promise (<anonymous>)YYYY-MM-DDT HH:MM:SS <SDDC Manager Hostname> sddc-manager-ui-app[#####]: at process.processTicksAndRejections (node:internal/process/task_queues:##:#)YYYY-MM-DDT HH:MM:SS <SDDC Manager Hostname> sddc-manager-ui-app[#####]: Node.js v18.20.4YYYY-MM-DDT HH:MM:SS <SDDC Manager Hostname> sddc-manager-ui-app[#####]: /opt/vmware/vcf/sddc-manager-ui-app/server/src/services/sso-initialization.js:###YYYY-MM-DDT HH:MM:SS <SDDC Manager Hostname> sddc-manager-ui-app[#####]: Error: Remote ssh command timed outRetrieving task counts failed. Http failure response for https://<Ops_FQDN>/vcf-operations/plug/sddc-###/plugin/api/v1/tasks?pageSize=1: 503 OK
This issue occurs if the SDDC Manager fails to establish an SSH connection with the Management Domain vCenter during bootup. Common causes include:
systemctl restart sddc-manager-ui-app
TOKEN=$(curl -d '{"username" : "<sso username>", "password" : "<sso password>"}' -H "Content-Type: application/json" -X POST http://127.0.0.1/v1/tokens | jq -r '.accessToken')curl -X GET 'localhost/v1/system/credentials?entityType=VCENTER&credentialType=SSH' -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN"curl -X PUT 'localhost/v1/system/credentials/<id from above step>' -d '<new password>' -H "Content-type:application/json" -H "Authorization: Bearer $TOKEN"| json_ppsystemctl restart sddc-manager-ui-appFailed to initiate PSC: Primary psc init failed and failover psc init also failed" is also logged if the vCenter server SSH Host Keys stored in the SDDC Manager contain a mismatch.