Invalid database configuration: Error decrypting data."
Unable to restore the VMware Cloud Director server configuration.
"
Logs Details
The
/opt/vmware/vcloud-director/
shows errors of the form:YYYY-MM-DD HH:MM:SS | ERROR | main |
ReconfigureDatabaseCommand | Invalid database configuration: Error
decrypting data. |
com.vmware.vcloud.common.
at com.vmware.vcloud.common.
...
Caused
by: javax.crypto.
YYYY-MM-DD HH:MM:SS | ERROR | main |
ReconfigureDatabaseCommand | Invalid database configuration
provided. Aborting configuration of local cell. |
YYYY-MM-DD
HH:MM:SS | DEBUG | main | CellManagementTool
| Exiting with completion code: OTHER |
VMware Cloud Director 10.4.x
VMware Cloud Director 10.5.x
The error was observed during the restore process using a Cloud Director Backup ZIP file.
The error was caused by an issue with decrypting data due to incorrect or missing configuration values in the global.properties
file.
Steps to Implement the Solution:
esponses.properties
to global.properties
:
database.password
user.key.path
user.key.password
user.certificate.path
vcloud.ssl.key.password
chmod 0750 <backup name>.zip
chown vcloud.vcloud <backup name>.zip
Attempt the restore using the updated ZIP file on the NFS.
After these steps, the Cloud Director UI should be restored successfully.
Check logs
tail -f /opt/vmware/var/log/vcd/restore.log