Remediation for a vSphere Lifecycle Manager (vLCM) Image-based cluster fails because stale ESX Agent Manager (EAM) agency entries are present in the vCenter Server database.
A general system error occurred: Remediation for an Image based cluster failed
'vSphere ESX Agent Manager' service reported issue: Agency ########-############ required solutions [VEE-veecdp] are not properly configured'vSphere ESX Agent Manager' service reported issue: Agency is unable to determine required solutions from its configured offline depots
/var/log/vmware/eam/eam.log file contains entries similar to the following (for example, when using Veeam Continuous Data Protection (CDP) ):YYYY-MM-DDTHH:MM:SS | INFO | vim-inv-update | IssueHandlerBase.java | 116 | Updating issues:New issues: []Removed issues: [
eam.issue.HostNotReachable {time = YYYY-MM-DDTHH:MM:SS,description = <unset>,key = ####,agency = 'Agency:########-############:null', -> Agency IDagencyName = 'IoFilter-VEE_bootbank_veecdp',solutionId = 'VirtualCenter',solutionName = 'VirtualCenter',agent = 'Agent:#######################:null',agentName = '#######################',host = 'HostSystem:host-#######################',hostName = 'esxi-example.com',}
Stale agencies (such as NSX or vCLS) appear in the ESX Agent Manager pane as "uninstalled but present" or with a "warning" status.
While looking into vCenter -> Administration -> vCenter Server Extensions -> vSphere ESX Agent Manager Configure Tab shows the following error:
Offline depot http://url/to/iofilter/zip/package/VMW-some-name-version.zip hosted as https://vcenter-url:443/eam/vib?id=a-guid cannot be uploaded in vSphere Lifecycle Manager
Stale ESX Agent Manager (EAM) agency entries remain in the vCenter Server database (VCDB) after a manual removal or uninstallation attempt. The EAM service fetches these stale records, causing a mismatch with the current cluster image and blocking remediation.
Follow these steps to destroy the stale agency via the Managed Object Browser (MOB).
eam.log file (format: Agency:########-############).https://<vCenter-FQDN>/eam/mob/?moid=<Agency-ID>.If the MOB method does not resolve the warning:
Take a backup or powered-off snapshot of the vCenter Server Appliance.
SSH into the vCenter Server as the root user.
Stop the vpxd and eam service before making changes to the database:
service-control --stop vpxdservice-control --stop eamConnect to the vCenter Server database:
/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDBCheck the entries using the following query:
select * from VPX_EXT_DATA where EXT_ID = 'com.vmware.vim.eam';Note down the stale agency from the above command and remove it from the VCDB:
delete from VPX_EXT_DATA where EXT_ID = 'com.vmware.vim.eam' and data_key = 'Agency:#############-#############';Start the vpxd and eam service.
service-control --start vpxdservice-control --start eamRe-try the remediation.
Impact/Risks: