"Exception occurred in postInstallHook for B2B-patching. Please check the logs for more details. Take corrective action and then resume."
On the vCenter Server, in /var/log/vmware/vmon/vmon.log, there are 'connection refused' errors while performing a health check against the imagebuilder service:
YYYY-MM-DDTYY:MM:SSZ In(05) host-#### <imagebuilder> Running the API Health command as user imagebuilder
YYYY-MM-DDTYY:MM:SSZ In(05) host-#### <imagebuilder-healthcmd> Constructed command: /usr/bin/python /usr/lib/vmware-vmon/vmonApiHealthCmd.py -n imagebuilder -u /vmw/imagebuilder/httpd/healthstatus -t 30
YYYY-MM-DDTYY:MM:SSZ Wa(03) host-#### <imagebuilder> Service api-health command's stderr: Exception while retrieving health xml from url http://localhost:8099/vmw/imagebuilder/httpd/healthstatus. Exception: <urlopen error [Errno 111] Connection refused>
vmon service terminates the imagebuilder service startup task, deeming it unresponsive:YYYY-MM-DDTYY:MM:SSZ In(05) host-#### <imagebuilder> Running the API Health command as user imagebuilder
YYYY-MM-DDTYY:MM:SSZ In(05) host-#### <imagebuilder-healthcmd> Constructed command: /usr/bin/python /usr/lib/vmware-vmon/vmonApiHealthCmd.py -n imagebuilder -u /vmw/imagebuilder/httpd/healthstatus -t 30
YYYY-MM-DDTYY:MM:SSZ In(05) host-#### <imagebuilder> Service start operation timed out.
YYYY-MM-DDTYY:MM:SSZ In(05) host-#### <imagebuilder-healthcmd> Cancelling execution of pid ####
YYYY-MM-DDTYY:MM:SSZ Wa(03) host-#### <imagebuilder> Found empty StopSignal parameter in config file. Defaulting to SIGTERM
YYYY-MM-DDTYY:MM:SSZ ERROR vmware_b2b.patching.phases.patcher Patch hook Patch got unhandled exception.
Traceback (most recent call last):
File "/storage/core/software-packages/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 203, in patch
_patchComponents(ctx, userData, statusAggregator.reportingQueue)
File "/storage/core/software-packages/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 84, in _patchComponents
_startDependentServices(c)
File "/storage/core/software-packages/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 53, in _startDependentServices
serviceManager.start(depService)
File "/storage/core/software-packages/scripts/patches/libs/sdk/service_manager.py", line 901, in wrapper
return getattr(controller, attr)(*args, **kwargs)
File "/storage/core/software-packages/scripts/patches/libs/sdk/service_manager.py", line 794, in start
super(VMwareServiceController, self).start(serviceName)
File "/storage/core/software-packages/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 imagebuilder. Details {
"detail": [
{
"id": "install.ciscommon.service.failstart",
"translatable": "An error occurred while starting service '%(0)s'",
"args": [
"imagebuilder"
],
"localized": "An error occurred while starting service 'imagebuilder'"
Increasing the time-outs as outlined in the following KB does not resolve the issue: vCenter Server upgrade from 7.0 U2 to 7.0 U3c fails with error "Exception occured in postInstallHook"
YYYY-MM-DDTYY:MM:SSZ warning vpxd[#####] [Originator@#### sub=Default opID=########] [VdbStatement] SQL execution took too long: SELECT EVENT_ID, CHAIN_ID, EVENT_TYPE, EXTENDED_CLASS, CREATE_TIME, USERNAME, CATEGORY, VM_ID,VM_NAME, HOST_ID, HOST_NAME, COMPUTERESOURCE_ID, COMPUTERESOURCE_TYPE,COMPUTERESOURCE_NAME, DATACENTER_ID, DATACENTER_NAME, DATASTORE_ID, DATASTORE_NAME, NETWORK_ID, NETWORK_NAME, NETWORK_TYPE, DVS_ID, DVS_NAME, STORAGEPOD_ID, STORAGEPOD_NAME, CHANGE_TAG_ID FROM VPXV_EVENT_ALL WHERE CREATE_TIME>=? AND EVENT_ID<? ORDER BY EVENT_ID DESC LIMIT 10;
vpxv_event_all.updateExtension request for the imagebuilder service.This is a known issue and currently there is no resolution.
Workaround:
VPXV_EVENT_ALL, as per the example above, please refer /storage/seat disk 100% full on vCenter Server Appliance 6.x/7.x/8.xNote: The above issue can be encountered for vmware-updatemgr and vmware-vsan-health services. The same plan of action is applicable for them.