During a VMware Cloud Foundation (VCF) upgrade to version 9.1.x, the Fleet lifecycle component sub-task Perform Fleet lifecycle upgrade fails. The upgrade process stops during the vmsp_upgrade step when a backup is initiated.
Symptoms:
vmsp_upgrade stage.Backup workflow failed for component: vcf-fleet-lcm.E6F5E4F3, A8A3CFC6, or 2DFCE4EF.stderr: jq: parse error: Invalid escape at line 4, column 230.Failed with error code "Backup workflow failed for component: vcf-fleet-lcm"
Reference Code: E6F5E4F3
Step vmsp_upgrade failed. Reference Code: A8A3CFC6.
stderr: jq: parse error: Invalid escape at line 4, column 230
stderr: Error: exit status 5
VMware Cloud Foundation 9.1.0.x
The failure is caused by a bug in the VMSP backup-upload script (upload_to_sftp.sh). When the configured SFTP backup account uses a domain-style username containing a backslash (e.g., domain\username), the script generates an invalid JSON manifest during the post-upload step. Specifically, the backslash is not properly escaped before being passed to jq, resulting in a parse error: Invalid escape and causing the upgrade task to fail.
To resolve this issue, reconfigure the backup credentials to use the User Principal Name (UPN) format, which avoids the use of a literal backslash.
DOMAIN\user format to the user@domain (UPN) format.user@domain format.