Image Upload via CLI Fails with “[Errno 9] Bad File Descriptor, error: unexpected EOF”
search cancel

Image Upload via CLI Fails with “[Errno 9] Bad File Descriptor, error: unexpected EOF”

book

Article ID: 406131

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

  • When attempting to upload an image via the controller CLI as part of the upgrade preparation, the operation fails with the following error:
    Error: [Errno 9] Bad file descriptor
    OR
    error: unexpected EOF
  • Command to check the image details:
     > show image image_name

Environment

  • ALL

Cause

  • The error occurs when the image file is corrupted or incomplete. Common reasons:

    • Interrupted or partial image download

    • File corruption during transfer or storage

    • MD5 checksum mismatch with Broadcom portal reference

Resolution

  • Download a fresh copy of the image from the official Broadcom download portal.
  • Verify the MD5 checksum of the image before uploading:
      • Checking the MD5 checksum value of image on windows:

      • Checking the MD5 checksum value of image on controller:

      • Compare the generated checksum with the one published on the portal:

      • If matched: Proceed with the upload.
      • If mismatched: Re-download the image and re-verify.
  • Retry the CLI image upload after successful checksum validation