"Failed to take a backup of . Check if exists. /opt/vmware/appliance/bin/create-backup.sh: line 101: [: -ne: unary operator expected"
Version 10.3 of VMware Cloud Director implements a new method of managing certificates.
pem
and .key
file for the HTTP and ConsoleProxy endpoints, each with a unique path.create-backup.sh
script references these paths, so if the files did not properly convert, the backup script will error out.To resolve this issue, the HTTP and ConsoleProxy certificates must be re-imported into each cell in the VCD environment.
For versions 10.3 and later, this requires a .pem
file and a .key
file.
pem
file is effectively the certificate, and the .key
file is the associated key.
Workaround:
To workaround this issue, take a backup of the database using the built-in postgres
utilities, as shown below:
su postgres
/opt/vmware/vpostgres/current/bin/pg_dump vcloud > dbdump.out