Backup tool is failing to store files into virtual machines during backup operation: Failed to upload recovery tool on destination VM VM_NAME with error 130.
search cancel

Backup tool is failing to store files into virtual machines during backup operation: Failed to upload recovery tool on destination VM VM_NAME with error 130.

book

Article ID: 392318

calendar_today

Updated On: 04-02-2025

Products

VMware vSphere ESXi

Issue/Introduction

Backup Tool will fail to push required files using VMware Tools API as the VMware Tools installed on the VM is returning status as 500.

Sample of log on third party backup tool NetBackup:

<timestamp> [<PID>.<PID>] <2> curlUpload: http status code: 500
<timestamp> [<PID>.<PID>] <16> curlUpload: NB_curl_easy_getinfo() returned status as 500
<timestamp> [<PID>.<PID>] <16> curlUpload: response body: <error> <errorCode>22</errorCode> <errorInfo>The file name is not valid</errorInfo> </error>
<timestamp> [<PID>.<PID>] <16> uploadFileToVMwareVM: Failed to stream the contents of file to destination vm
<timestamp> [<PID>.<PID>] <16> bpVMutil: Failed to upload recovery tool on destination VM VM_NAME with error 130. Make sure there is sufficient space or permissions available at the staging location.
<timestamp> [<PID>.<PID>] <2> virtlogcallback: bpvmutil_vmcerror_to_monitor: FTL - Failed to upload recovery tool on destination VM VM_NAME with error 130. Make sure there is sufficient space or permissions available at the staging location.: SYM_VMC_SOAP_FILE_DOES_NOT_EXIST_FAULT

 

Attempt to push files using PowerCLI Copy-VMGuestFile will also fail with error 500 (Internal Server Error) since it uses the same VMware Tools API.

"Response code does not indicate success: 500 (Internal Server Error)."

"CategoryInfo : NotSpecified: (:) [Copy-VMGuestFile], ViError"

"FullyQualifiederrorId : Client20_vmGuestServiceImp]_UploadFileToGuest_UploadError, VMware .VimAutomation.ViCore.Cmdlets . Commands .CopyVMGuestFile"

 

Considerations:

  • Virtual machine is working properly.
  • No disk space problems.
  • Permissions are valid on vCenter, ESXi and guest OS.
  • Manually adding the file to the same location required works normally.

 

 

Environment

vSphere all versions

Third Party tool to push files into the guest OS

 

Cause

Mismatch of Guest OS defined on the VM and the Guest OS installed.

For instance, a VM is defined as Windows but it got Linux installed.

Resolution

Change the guest OS version to the correct one as per the documentation: Change the Configured Guest Operating System