Error "Failed to copy backup to VSP" when executing restore_and_update_vidb.sh to restore VIDB config on VIDB 9.1
search cancel

Error "Failed to copy backup to VSP" when executing restore_and_update_vidb.sh to restore VIDB config on VIDB 9.1

book

Article ID: 463072

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

  • When following Transition a VCF Identity Broker 9.0.x Instance to the VCF Services Runtime Environment to restore a VMware Identity Broker (VIDB) 9.0 backup configuration into a newly deployed VIDB 9.1 environment, the restore_and_update_vidb.sh script fails with the error:

    Failed to copy backup to VSP


  • Executing the same restore_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

Environment

VMware Identity Broker (VIDB) 9.1
VMware Cloud Foundation (VCF) 9.1

Cause

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.

Resolution

  1. Navigate to VCF Operations > Manage > Fleet Management > Passwords > VCF Management > VCF services runtime page.
  2. Reset either the [email protected] or vmware-system-user password to ensure both accounts are configured with the exact same password.

  3. Once the credentials are fully synchronized, reattempt the restore_and_update_vidb.sh script execution.

Additional Information

Resetting Passwords for VMware Cloud Foundation Services Runtime