The VMware Cloud Director appliance deployment fails when you enable the setting to expire the root password upon the first login

As I have been trying to deploy the vCloud Director 10.1 in my home lab, I have faced the below errors, and I wanted to share with others the resolution in case you are facing it and have missed it in the release notes.

“No nodes found in cluster, this likely means PostgreSQL is not running on this node. Consult the management UI from another node where PostgreSQL is running. Otherwise, check /opt/vmware/var/log/vcd/vcd_ova_ui_app.log if you think this is an error.”

The following error in the /opt/vmware/var/log/vcd/vcd_ova_ui_app.log file:

————–/opt/vmware/var/log/vcd/vcd_ova_ui_app.log Start———————

2020-04-19 13:23:52,026 | ERROR | uWSGIWorker1Core0 | ERROR: Command ‘[‘sudo’, ‘-n’, ‘-u’, ‘postgres’, ‘/opt/vmware/appliance/bin/api/replicationClusterStatus.py’]’ returned non-zero exit status 255.

2020-04-19 13:23:52,027 | ERROR | uWSGIWorker1Core0 | Return code: 255

2020-04-19 13:23:52,027 | DEBUG | uWSGIWorker1Core0 | Got cluster status: {}

2020-04-19 13:24:16,968 | DEBUG | uWSGIWorker1Core0 | Appliance is of type primary or standby

2020-04-19 13:24:16,969 | DEBUG | uWSGIWorker1Core0 | getting cluster status: [‘/opt/vmware/appliance/bin/api/replicationClusterStatus.py’]

2020-04-19 13:24:17,098 | ERROR | uWSGIWorker1Core0 | ERROR: Command ‘[‘sudo’, ‘-n’, ‘-u’, ‘postgres’, ‘/opt/vmware/appliance/bin/api/replicationClusterStatus.py’]’ returned non-zero exit status 255.

2020-04-19 13:24:17,099 | ERROR | uWSGIWorker1Core0 | Return code: 255

2020-04-19 13:24:17,099 | DEBUG | uWSGIWorker1Core0 | Got cluster status: {}

———–/opt/vmware/var/log/vcd/vcd_ova_ui_app.log End————————

Usually there is two common names for the above issue with vCloud Director 10.1 Virtual Appliance Deployment:

  1. Your NFS Share permissions were not accurate or not reachable
  2. You had left the “expire the root password upon first login” checked as you were completing the installation wizard of the vCD Appliance. This is a known issue with vCloud Director 10.1 and included in the vCD 10.1 release note. Below is a copy of how it is stated in vCD 10.1 release note:

“The VMware Cloud Director appliance deployment fails when you enable the setting to expire the root password upon the first login

If you attempt to deploy an appliance with enabled Expire Root Password Upon First Login setting, the deployment fails and the /opt/vmware/var/log/firstboot log file displays an error:

[ERROR] postgresauth script failed to execute.

Workaround: Disable the Expire Root Password Upon First Login setting and specify an initial root password that contains at least eight characters, one uppercase character, one lowercase character, one numeric digit, and one special character.”

The vCloud Director release note can be found at: https://docs.vmware.com/en/VMware-Cloud-Director/10.1/rn/VMware-Cloud-Director-101-Release-Notes.html

After fixing it

Speak Your Mind

*