"An unknown error occurred while performing the operation" error received while trying to Check Compliance in Lifecycle Manager on vCenter
search cancel

"An unknown error occurred while performing the operation" error received while trying to Check Compliance in Lifecycle Manager on vCenter

book

Article ID: 397593

calendar_today

Updated On: 07-03-2025

Products

VMware vSphere ESXi

Issue/Introduction

  • While performing a Check Compliance operation against an image managed host or cluster fails with error:  "An unknown error occurred while performing the operation"


 

  • The /var/run/log/lifecycle.log on the ESXi host may have an error similar to:

YYYY-MM-DDThh:mm:ssZ Er(11) lifecycle[2240255]: Scanner:906 Failed to validate/extract the softwareSpec: 'VMware-VM-Tools_12.2.5.#####-######'
YYYY-MM-DDThh:mm:ssZ Er(11) lifecycle[2240255]: Scanner:907 Traceback (most recent call last):
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: File "/tmp/esx-update-2240255/lib64/python3.11/site-packages/vmware/esximage/ImageManager/Scanner.py", line 3388, in scan
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: self.stagedSoftwareSpec = self.getImageProfileScanSpec(
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: File "/tmp/esx-update-2240255/lib64/python3.11/site-packages/vmware/esximage/ImageManager/Scanner.py", line 1355, in getImageProfileScanSpec
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: compInfo = self.scanLocalComponents(imageProfile,
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: File "/tmp/esx-update-2240255/lib64/python3.11/site-packages/vmware/esximage/ImageManager/Scanner.py", line 1123, in scanLocalComponents
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: probs = hostComps.Validate(self._depotMgr.vibs)
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: File "/tmp/esx-update-2240255/lib64/python3.11/site-packages/vmware/esximage/Bulletin.py", line 1613, in Validate
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: return scanner.Validate()
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: File "/tmp/esx-update-2240255/lib64/python3.11/site-packages/vmware/esximage/ComponentScanner.py", line 1530, in Validate
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: self._GetAllProblems()
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: File "/tmp/esx-update-2240255/lib64/python3.11/site-packages/vmware/esximage/ComponentScanner.py", line 740, in _GetAllProblems
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: compRelation = self.componentScanResult[comp.id]
YYYY-MM-DDThh:mm:ssZ Er(11)[+] lifecycle[2240255]: KeyError: 'VMware-VM-Tools_12.2.5.#####-######'

 

 

Environment

vCenter Server 7.x , 8.x

vSphere ESXi 7.x , 8.x

Cause

The scan is failing due to a staged image on the host.

Resolution

 The staged content needs to be removed by following the below steps as per the ESXi version

ESXi 7.x

  1. Check if either of the paths below exist and have contents

    /tmp/stagebootbank 
    /tmp/stageliveimage

  2. Remove the ones that exist or contents

    esxcli system visorfs ramdisk remove -t /tmp/stagebootbank
    rm -rf /tmp/stagebootbank

    or 

    esxcli system visorfs ramdisk remove -t /tmp/stageliveimage
    rm -rf /tmp/stageliveimage

  3. Retry the Check Compliance again

 

ESXi 8.x

  1. If this path exists and contains files

    /var/vmware/lifecycle/stagebootbank

  2. Remove the contents

    rm -rf /var/vmware/lifecycle/stagebootbank/*

  3. Retry the Check Compliance task