SDDC manager upgrade bundle fails with BundleRepoWriteFailureException in SDDC Manager
search cancel

SDDC manager upgrade bundle fails with BundleRepoWriteFailureException in SDDC Manager

book

Article ID: 440478

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

Introduction When you attempt to download software bundles in VMware Cloud Foundation (VCF) SDDC Manager, the download fails with a BundleRepoWriteFailureException. This issue typically occurs due to insufficient disk space in the bundle repository or incorrect file system permissions.

Symptoms

  • Bundle downloads fail in the SDDC Manager UI.
  • The /var/log/vcf/lcm/lcm.log file contains the following error:
    •  com.vmware.vcf.bundle.exception.BundleRepoWriteFailureException: Failed to write bundle to repository
    • The /var/lib/vcf/bundle-repo partition shows high disk utilization (e.g., 80% or higher).

 

Environment

vCF SDDC manager 5.x

Cause

  • Disk Space Exhaustion: The /var/lib/vcf/bundle-repo directory has insufficient space to accommodate new bundles, often caused by accumulated old backups or large bundles.
  • Incorrect Permissions: The vcf_lcm user or vcf group does not have the required write permissions for the bundle repository directories.

Resolution

  • Run VDT to see what issues it finds VDT KB article
  • Check space with df -h
  • If necessary, remove old bundles with the bundle cleanup script:
    • /vcf/lcm/lcm-app/bin/bundle_cleanup.py <bundle_id>
  • Purge old backups to free disk space
    • /opt/vmware/vcf/lcm/lcm-app/bin/nsx_backup_cleaner.py --purge

  • Verify and correct directory permissions (example that may not apply to your system's problems)
    • chmod -R 775 /var/lib/vcf/bundle-repo

    • chown -R vcf_lcm:vcf /var/lib/vcf/bundle-repo