restore_and_update_vidb.sh script fails with the error:
Failed to copy backup to VSPrestore_and_update_vidb.sh script with -x parameter to review execution trace, the below output errors are observed:
# bash -vx restore_and_update_vidb.sh \ --backup-file <BACKUP_FILE_PATH> \ --vsp-fleet-fqdn <FLEET_FQDN> \ --vsp-platform-fqdn <PLATFORM_FQDN> \ --vidb-fqdn <VIDB_FQDN> \ --ops-fqdn <OPS_FQDN> \ --vidb-cert-file <CERT-FILE-PATH> \ --vidb-key-file <PRIVATEKEY-FILE-PATH>Output:[INFO] Copying backup file to VSP (<VCF_Management_services_Control_plane_node_IP>)...+ sshpass -p '<VSP_admin_password>' scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null vidb-backups/vidb_backup.dump 'vmware-system-user@<VCF_Management_services_Control_plane_node_IP>:~/'+ '[' 5 -eq 0 ']'+ log_error 'Failed to copy backup to VSP'+ echo -e '\033[0;31m[ERROR]\033[0m Failed to copy backup to VSP'[ERROR] Failed to copy backup to VSP
VMware Identity Broker (VIDB) 9.1
VMware Cloud Foundation (VCF) 9.1
The failure occurs due to a password mismatch between the VSP Runtime (or VCF Management services) [email protected] account and the vmware-system-user local OS account. The script is configured to prompt for the VSP password (for [email protected]) and use a single password variable (VSP_PASSWORD) for both the platform token authentication (via [email protected]) and the SCP transfer (via vmware-system-user), strictly requiring both accounts to share identical credentials.
Reset either the [email protected] or vmware-system-user password to ensure both accounts are configured with the exact same password.
Once the credentials are fully synchronized, reattempt the restore_and_update_vidb.sh script execution.