Patching of the vCenter Server is stuck at 83% during RPM installation
search cancel

Patching of the vCenter Server is stuck at 83% during RPM installation

book

Article ID: 426377

calendar_today

Updated On:

Products

VMware vCenter Server 8.0 VMware vSphere ESXi

Issue/Introduction

When attempting to patch or update a vCenter Server Appliance (VCSA) 8.x via the vCenter Management Interface (VAMI), the process stalls at 83% during the phase: "Setting up appliance-photon repo and installing RPMS". This behavior typically occurs due to a session timeout in the VAMI web interface after the Photon OS RPM installation phase completes.

Symptoms:

  • Update hangs at 83% in the VAMI progress bar.
  • Message displayed: "Setting up appliance-photon repo and installing RPMS".
  • Logs indicate the RPM installation completed successfully, but the handoff to the vCenter Server RPM phase failed to trigger.

  • Upon reviewing the update logs, you observe that the Photon OS RPM installation has technically finished, but the process does not proceed to the next stage.
Log File Location: /var/log/vmware/applmgmt/update_microservice.log

Log Excerpt:
dracut:  rd.lvm.lv=vg_root_0/lv_root_0
dracut:  root=/dev/mapper/vg_root_0-lv_root_0 rootfstype=ext4 rootflags=rw,relatime
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/boot/initrd.img-5.10.245-1.ph4' ***
dracut: *** Creating initramfs image file '/boot/initrd.img-5.10.245-1.ph4' done ***

Complete!
yyyy-mm-ddT18:44:32+0000 All packages were upgraded to latest versions successfully.
yyyy-mm-ddT18:44:32+0000 Rebuilding RPMDB.
yyyy-mm-ddT18:44:37+0000 successfully rebuilt RPMDB.
yyyy-mm-ddT18:44:37+0000 --install-all option was passed.
yyyy-mm-ddT18:44:37+0000 all packages from provided repos are already installed.
], stderr [initramfs (re)generation triggerin 1 2 2.0-7.ph4
initrd generation of kernel 5.10.245-1.ph4 will be triggered later
Warning: The unit file, source configuration file or drop-ins of vmtoolsd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: The unit file, source configuration file or drop-ins of vgauthd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
initrd of kernel 5.10.238-2.ph4 removed
(re)generate initramfs for all kernels, transfilertriggerin 2.0-7.ph4
]
yyyy-mm-dd 18:44:37,229 - 628614 -   update_b2b_target::           executeInstallRpms:2143 -   INFO - Installation of Photon RPMS completed successfully.
yyyy-mm-dd 18:44:37,229 - 628614 -   update_b2b_target::                 isDowngrade:2459 -   INFO - It is downgrade: False
yyyy-mm-dd 18:44:37,229 - 628614 -   functions_target::               runInstallVCRpm: 166 -   INFO - Installing VC RPMS.
yyyy-mm-dd 18:44:37,229 - 628614 -   functions_target::                    runCommand:  82 -  DEBUG - Invoking command [/bin/bash --login -c /bin/rpm -U
hv /storage/seat/software-update243upp4v/stage/*.rpm]
Environment
Product: VMware vCenter Server Appliance

Environment

  • VMware vCenter Server 8.x

Cause

The vCenter Appliance Management Interface (VAMI) web session times out during the resource-intensive RPM installation phase. While the backend installation succeeds, the UI fails to reflect the completion of the process.

Resolution

  1. Revert to Snapshot: Power off the vCenter Server Appliance and revert to the pre-patching snapshot taken prior to the update attempt.
  2. Perform Patching via CLI: Use the Command Line Interface (CLI) to bypass VAMI session timeouts:
    • SSH into the vCenter Server Appliance as root.
    • Access the Appliance shell (appliancesh) to appliance shell by running the below command:

      /bin/appliancesh
    • Stage the packages: 
      software-packages stage --iso --acceptEulas
    • Verify staged packages: 
      software-packages list --staged
    • Install the staged packages: 
      software-packages install --staged
  3. For additional context on CLI patching, refer to the following guide: Patching vCenter Server Appliance via CLI.

 

Additional Information

If you require further assistance or if the update fails via CLI, contact Broadcom Support: Contact Broadcom Support.