Failed with exit code 256 error encountered when upgrading VMware Cloud Director 10.x with the CDROM mounted
search cancel

Failed with exit code 256 error encountered when upgrading VMware Cloud Director 10.x with the CDROM mounted

book

Article ID: 381783

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • An upgrade of VMware Cloud Director 10.x fails and an error similar to the following is found in the file /opt/vmware/var/log/vami/updatecli.log:

    29/10/2024 16:20:25 [ERROR] Failed with exit code 65024
    29/10/2024 16:20:25 [INFO] Update status: Running post-install scripts
    29/10/2024 16:20:25 [INFO] Running /opt/vmware/var/lib/vami/update/data/job/10/post_install '10.3.3.9786' '10.5.1.11019' 4
    Failed with status of 4 while installing version 10.5.1.11019
    VM version is still 10.3.3.9786
    29/10/2024 16:20:25 [ERROR] Failed with exit code 256
    29/10/2024 16:20:25 [INFO] Update status: Running VMware tools reconfiguration
    29/10/2024 16:20:25 [INFO] Running /opt/vmware/share/vami/vami_reconfigure_tools
    vmware-toolbox-cmd is /bin/vmware-toolbox-cmd
    vmtoolsd wrapper not required on this VM with systemd.
    29/10/2024 16:20:25 [INFO] Update status: Done VMware tools reconfiguration
    29/10/2024 16:20:25 [INFO] Update status: Error while running package installation and post-install scripts
    29/10/2024 16:20:25 [ERROR] Failure: updatecli exiting abnormally
    29/10/2024 16:20:25 [INFO] Install Finished


  • During the update, errors similar to the following are seen in /opt/vmware/var/log/vami/updatecli.log:

    filesystem-1.1-4.ph3.x86_64
    error: unpacking of archive failed on file /mnt/cdrom: cpio: chmod failed - No such file or directory
    error: filesystem-1.1-4.ph3.x86_64: install failed

    and

    error: filesystem-1.1-3.ph2.x86_64: erase skipped


  • The VMware Cloud Director appliance has the CDROM mounted.

Environment

VMware Cloud Director 10.x

Cause

When an upgrade of the VMware Cloud Director 10.x appliance includes an update for the filesystem package for the system, attempts to unpack and install the package interact with /mnt/cdrom and will fail if an item is mounted at that location.

Resolution

Unmount the CDROM and perform the upgrade as documented:

Upgrading the VMware Cloud Director Appliance