Symptoms:
- While upgrading vCenter server from 7.0U2 to 7.0U3c, upgrade failure reported withe error "Exception occured in postInstallHook"
- Patching reports successful, but some of the services failed to start due to timeout hence the upgrade marked as failed
- /var/log/vmware/applmgmt/update_microservice.log shows similar entries:
2021-07-04 10:25:04,206 - 15535 -update_b2b::_runScriptHook: 354 -DEBUG - update script result file '{\n "end_time":
2021-07-04T10:25:04.083Z",\n "error": {\n "componentKey": "last_component:Patch",\n "detail": [\n "id": "ur.services.start.text",\n "localized": "Failed to start all services after successful patching.",\n "translatable": "Failed to start all services after successful patching."\n
2021-07-04 10:25:04,210 - 15535- task_manager::update: 80 - DEBUG - UpdateTask: status=RESUMABLE, progress=80, message={'id': 'com.vmware.appliance.postinstall_errors', 'default_message': 'Data conversion/Post install hook failed', 'args': []}
2021-07-04 10:25:04,249 - 15535 - dbfunctions::executeDML: 54 - DEBUG - Executing Query {INSERT INTO progress VALUES(NULL, ?, DATETIME('now'), ?, ?, ?)} with parameters ('failed', 'Installation failed', 100, 95)
2021-07-04 10:25:04,265 - 15535-update_b2b::postInstallHook:2345 - DEBUG - Returning from postInstallHook(), data conversion failed
2021-07-04 10:25:04,265 - 15535 -update_b2b:: postInstallHook:2352 - ERROR - Exception occured in postInstallHook
2021-07-04 10:25:04,266 - 15535 -task_manager:: update: 80 - DEBUG - UpdateTask: status=RESUMABLE, progress=80, message={'id': 'com.vmware.appliance.plain_message', 'default_message': '%s', 'args': ['Exception occured in postInstallHook']}
- startAllServices.err.log shows similar entries
2021-07-04T10:12:31.242Z ERROR service-control Service-control failed. Error: Failed to start services in profile ALL. RC=1, stderr=Failed to start imagebuilder, updatemgr, vsan-health services. Error: Operation timed out
2021-07-04T10:25:02.984Z ERROR service-control Service-control failed. Error: Failed to start services in profile ALL. RC=1, stderr=Failed to start imagebuilder, updatemgr, vsan-health services. Error: Operation timed out
- /var/log/vmware/cloudvm/service-control.log shows similar entries
2021-07-04T10:25:01.726Z INFO service-control Stopped:
vmcam vmware-hvc vmware-imagebuilder vmware-pod vmware-vcha vmware-vdtc vmware-vsan-health
2021-07-04T10:25:02.984Z ERROR service-control Service-control failed. Error: Failed to start services in profile ALL. RC=1, stderr=Failed to start imagebuilder, updatemgr, vsan-health services. Error: Operation timed out
Note: The preceding log excerpts are only examples. Date, time and environmental variables may vary depending on your environment.