VM backup and datastore file upload failures with HTTP 500 or "NFC_VALIDATION_ERROR" after vCenter 9.1.2 upgrade
search cancel

VM backup and datastore file upload failures with HTTP 500 or "NFC_VALIDATION_ERROR" after vCenter 9.1.2 upgrade

book

Article ID: 464008

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

After upgrading vCenter to version 9.1.2 (build 25946533), datastore file transfers fail and the following issues are observed:

  • Image-level backups for virtual machines fail. This behavior is typically observed with backup solutions that leverage datastore access file transfers.
  • The backup appliance reports an HTTP 500 or HTTP 504 error code when attempting to download any virtual machine configuration files (for example, the NVRAM file) via datastore HTTP access (/folder/...).
  • vCenter logs display an NFC validation error during the file download attempt:

    /var/log/vmware/vpxd/vpxd.log

    YYYY-MM-DDTHH:MM:SS.###Z ERROR vpxd ### [vc@### sub="NfcLib"] [NFC ERROR]NfcFssrvrIoMsgValidator: length ###### out of range [1, 262144]
    YYYY-MM-DDTHH:MM:SS.###Z ERROR vpxd ### [vc@### sub="NfcLib"] [NFC ERROR]NfcFssrvr_IO: Failed to receive io reply: Validation failed (NFC_VALIDATION_ERROR)
    YYYY-MM-DDTHH:MM:SS.###Z ERROR vpxd ### [vc@### sub="HTTP server /folder"] NfcFssrvr_IO returned 34, fileIOErr: 0

  • The issue is prevalent for virtual machines with an NVRAM file size larger than 256 KB.
  • Uploading files (such as ISO or VMDK) to the datastore using PowerCLI (Copy-DatastoreItem) or vCenter APIs fails with any of the following error messages.

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

    The remote server returned an error: (500) Internal Server Error.

Environment

  • vCenter 9.1.2
  • VMware ESX 9.1.2

Cause

NFC message validation in vCenter 9.1.2 rejects file transfer chunks exceeding 256 KiB, causing HTTP 500 errors when vpxd requests larger 1 MiB chunks.

Resolution

This is a known issue affecting VMware vCenter 9.1.2. The Broadcom Engineering team is working to fix this issue in a future patch release.

Workaround

  1. SSH into the vCenter Appliance as root user.
  2. Take a backup of the vpxd service configuration file.

    cp /etc/vmware-vpx/vpxd.cfg /etc/vmware-vpx/vpxd.cfg.bak.$(date +%F)

  3. Stop VPXD service.

    service-control --stop vmware-vpxd

  4. Add the buffersize parameter to increase the buffersize to 256MB by running the following command.

    /usr/lib/vmware-vpx/py/xmlcfg.py -f /etc/vmware-vpx/vpxd.cfg set folder/transfers/bufferSize "262144"

    Notes:
    Ignore the SyntaxWarning message when running the command above. This warning does not impact the results.

    /usr/lib/vmware-vpx/py/xmlcfg.py:89: SyntaxWarning: "\[" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\["? A raw string is also an option.
      mo = re.search("[\[\]/']",key[startIndex:])

  5. Start the VPXD service.

    service-control --start vmware-vpxd

Notes:

  1. Adding the buffersize following the above instructions may affect the VM backup performance if the network latency is high between vCenter and ESX hosts.
  2. Broadcom updates this KB when a permanent product fix is available. Subscribe to this KB to receive updates on changes..
    1. Manually remove the workaround setting after updating vCenter to the fixed version.