Symptoms:
Attempting to update a vCenter 7.0 server to 7.0 U3 or higher fails.
Updating through the VAMI fails with the message "Exception occurred in postInstallHook"
The /var/log/vmware/applmgmt/PatchRunner.log file shows messages similar to the following:
YYYY-MM-DDTHH:MM:SS ERROR vmware_b2b.patching.phases.patcher Patch hook Patch got unhandled exception.
Traceback (most recent call last):
File "/storage/updatemgr/software-updateyon2ybxo/stage/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 203, in patch
_patchComponents(ctx, userData, statusAggregator.reportingQueue)
File "/storage/updatemgr/software-updateyon2ybxo/stage/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 84, in _patchComponents
_startDependentServices(c)
File "/storage/updatemgr/software-updateyon2ybxo/stage/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 53, in _startDependentServices
serviceManager.start(depService)
File "/storage/updatemgr/software-updateyon2ybxo/stage/scripts/patches/libs/sdk/service_manager.py", line 901, in wrapper
return getattr(controller, attr)(*args, **kwargs)
File "/storage/updatemgr/software-updateyon2ybxo/stage/scripts/patches/libs/sdk/service_manager.py", line 794, in start
super(VMwareServiceController, self).start(serviceName)
File "/storage/updatemgr/software-updateyon2ybxo/stage/scripts/patches/libs/sdk/service_manager.py", line 665, in start
raise IllegalServiceOperation(errorText)
service_manager.IllegalServiceOperation: Service cannot be started. Error: Error executing start on service eam. Details {
"detail": [
{
"id": "install.ciscommon.service.failstart",
"translatable": "An error occurred while starting service '%(0)s'",
"args": [
"eam"
],
"localized": "An error occurred while starting service 'eam'"
}
],
"componentKey": null,
"problemId": null,
"resolution": null
}
The /var/log/vmware/eam/web/catalina.log shows messages similar to the following:
YYYY-MM-DDTHH:MM:SS | ERROR | localhost-startStop-1 | ContextLoader.java | 350 | Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esxAgentMgr' defined in class path resource [eam-server-beans.xml]: Cannot resolve reference to bean
'eamPatcher' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eamPatcher' defined in class pat
h resource [eam-server-beans.xml]: Cannot resolve reference to bean 'patchConfigFile' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationE
xception: Error creating bean with name 'patchConfigFile' defined in class path resource [eam-server-beans.xml]: Bean instantiation via constructor failed; nested exception is org.springfra
mework.beans.BeanInstantiationException: Failed to instantiate [com.vmware.eam.upgrade.infra.impl.PatchConfigFile]: Constructor threw exception; nested exception is com.vmware.eam.EamIOExce
ption: Cannot get input stream of runtime.modification