Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

"Unable to successfully execute post-install.sh" error while patching vCenter Server Appliance 6.5 (67978)

Last Updated: 8/5/2019Categories: TroubleshootingTotal Views: 8275Language:
Chinese (Simplified)JapaneseEnglish

1 like this article

Subscribe to get an email
newsletter with new updates

1 people found this helpful Please provide article feedback:

Symptoms

Patching vCenter Server Appliance 6.5 fails during stage 2 while executing post installation scripts.

In the /var/log/vmware/applmgmt/software-package.log file, you see entries similar to

2019-04-10T04:26:34.100 [56914]DEBUG:vmware.vherd.base.extensibility.script_executor:Script hook 'update_script:PatchHook' failed. Exception
Traceback (most recent call last):
File "/usr/lib/applmgmt/base/py/vmware/vherd/base/extensibility/script_executor.py", line 61, in executeHook
executionResult = scriptExtension(args)
File "/usr/lib/applmgmt/base/py/vmware/update/extensions.py", line 103, in __call__
result = self.extension(*args)\
File "/usr/lib/applmgmt/base/py/vmware/update/extensions.py", line 120, in _func
return func(*args)
File "/storage/core/software-packages/scripts/update_script_day0_patching.py", line 245, in patch
raise InternalError("Unable to successfully execute post-install.sh")
InternalError: Unable to successfully execute post-install.sh
2019-04-10T04:26:34.100 [52259]DEBUG:vmware.vherd.base.software_update:Failed to execute /storage/core/software-packages/scripts/update_script.py:PatchHook. Exception: Traceback (most recent call last):
File "/usr/lib/applmgmt/base/py/vmware/vherd/base/software_update.py", line 1091, in _runScriptHook
result = scriptExecutor.executeHook(updateScript, hook, specs)
File "/usr/lib/applmgmt/base/py/vmware/vherd/base/extensibility/script_executor_processor.py", line 71, in executeHook
raise ex
InternalError: Unable to successfully execute post-install.sh

In messages logs, you see entries similar to:

2019-04-10T04:25:23.653028+00:00 photon-machine sendmail[57082]: My unqualified host name (photon-machine) unknown; sleeping for retry
2019-04-10T03:45:41.913246+00:00 photon-machine sendmail[41255]: unable to qualify my own domain name (photon-machine) -- using short name
2019-04-10T04:26:33.701483+00:00 photon-machine systemd[1]: sendmail.service: Start operation timed out. Terminating.
2019-04-10T04:26:33.713601+00:00 photon-machine systemd[1]: Failed to start Sendmail Mail Transport Agent.
2019-04-10T04:26:33.713834+00:00 photon-machine systemd[1]: sendmail.service: Unit entered failed state.
2019-04-10T04:26:33.714040+00:00 photon-machine systemd[1]: sendmail.service: Failed with result 'timeout'.

Cause

This issue occurs when:

Post Install script during patching triggers the below function:

update sendmail.cf post patch
if [ $deploymentType == 'embedded' -o $deploymentType == 'management' ]
then
/usr/lib/vmware-vpx/config_sendmail.sh
fi

Sendmail is dependent on other binaries which is provided by same package and one of them (newaliases) requires FQDN configured hostname to succeed.

FQDN is missing in the /etc/hosts file.

Resolution

To resolve this issue, verify DNS and reboot the appliance to regenerate the /etc/hosts file.

Workaround

To work around this issue, configure/update the FQDN manually by editing the /etc/hosts file and update the patch again.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Failure Snippet

Failure Snippet.jpg

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Result 1 of 1

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vCenter Server Appliance

Related Versions:

VMware vCenter Server Appliance 6.5.x

Take Our Survey

Support Assistant