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

"Error while running post-install scripts" while upgrading vRealize Automation Appliances (60453)

Last Updated: 8/18/2023Categories: TroubleshootingTotal Views: 7783Language:
Chinese (Simplified)JapaneseEnglish

3 like this article

Subscribe to get an email
newsletter with new updates

3 people found this helpful Please provide article feedback:

Symptoms

When upgrading vRealize Automation appliances you may experience failures related to duplicates in the database for the vRealize Orchestrator service.

The failure shown in the UI will be similar to the following:

Failed to install updates(Error while running post-install scripts)
VA-check: finished
Pre-install: failed
Post-install: failed
Update failed (code 0-2). Check logs in /opt/vmware/var/log/vami or retry update later.

The errors listed in /var/log/bootstrap/preupdate.log will include:

2018-09-27 18:53:23+00:00 /etc/bootstrap/preupdate.d/00-00-02-check-vro-duplicates starting...
<!--: spam
Content-Type: text/html

<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> -->
<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> -->
</font> </font> </font> </script> </object> </blockquote> </pre>
</table> </table> </table> </table> </table> </font> </font> </font><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#6622aa">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>&lt;type 'exceptions.TypeError'&gt;</strong></big></big></font></td

Resolution

This issue is resolved in VMware vRealize Automation 7.6, available at VMware Downloads.

Workaround

To work around this issue,

Important: Before proceeding ensure that you have backup of the environment.

Download the attached zip file (vco-cfg-cli-7.5.0.24754-10044198) and extract the contents.

Copy the vco-cfg-cli-7.5.0.24754-10044198.rpm file to a directory on vRealize Automation primary appliance.

Install the package using the command:

rpm -hiv vco-cfg-cli-7.5.0.24754-10044198.rpm

Run the command:

/usr/lib/vco-cli/bin/vro-configure.sh db-validate

Note: The following queries can be used to check the same:

select * from (

select categoryid, name, count(*)-1, 'vmo_configelement' as type from vmo_configelement group by categoryid, name having count(*) > 1

union

select parentcategoryid, name, count(*)-1, 'vmo_configelementcategory' as type from vmo_configelementcategory group by parentcategoryid, name having count(*) > 1

union

select elementid, '' as name, count(*)-1, 'vmo_configelementcontent' as type from vmo_configelementcontent group by elementid having count(*) > 1

union

select '' as id, name, count(*)-1, 'vmo_package' as type from vmo_package group by name having count(*) > 1

union

select packageid, '' as name, count(*)-1, 'vmo_packagecontent' as type from vmo_packagecontent group by packageid having count(*) > 1

union

select policyid, '' as name, count(*)-1, 'vmo_policycontent' as type from vmo_policycontent group by policyid having count(*) > 1

union

select categoryid, name, count(*)-1, 'vmo_resourceelement' as type from vmo_resourceelement group by categoryid, name having count(*) > 1

union

select elementid, '' as name, count(*)-1, 'vmo_resourceelementcontent' as type from vmo_resourceelementcontent group by elementid having count(*) > 1

union

select scriptmodulecategoryid, name, count(*)-1, 'vmo_scriptmodule' as type from vmo_scriptmodule group by scriptmodulecategoryid, name having count(*) > 1

union

select '' as id, name, count(*)-1, 'vmo_scriptmodulecategory' as type from vmo_scriptmodulecategory group by name having count(*) > 1

union

select scriptmoduleid, '' as name, count(*)-1, 'vmo_scriptmodulecontent' as type from vmo_scriptmodulecontent group by scriptmoduleid having count(*) > 1

union

select dunesobjectid, version, count(*)-1, 'vmo_versionhistorycontent' as type from vmo_versionhistorycontent group by dunesobjectid, version having count(*) > 1

union

select workflowid, '' as name, count(*)-1, 'vmo_workflowcontent' as type from vmo_workflowcontent group by workflowid having count(*) > 1

) as u;

Copy the list of duplicate entries (focused on id and name) for reference.

Connect to the postgres database using the command:

su postgres /opt/vmware/vpostgres/current/bin/psql vcac

Run the following command(s) by referencing the correct ID and NAME from step 4 to remove one of each of the duplicate entries (it doesn't matter which is removed):

delete from vmo_resourceelement where categoryid = '<UUID_1>' and name = ‘de_DE.properties;

​delete from vmo_configelement where categoryid = '<UUID_1>' and name = ‘de_DE.properties';

Exit the postgres command using: \q

Re-run the command to ensure you have no further duplicates:

/usr/lib/vco-cli/bin/vro-configure.sh db-validate

The correct response should be:
The command does not need database configuration update.
Create additional backups/snapshots and retry your vRealize Automation upgrade.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

60453_1_vco-cfg-cli-7.5.0.24754-10044198

Additional Resources

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

KB
•
Download and Install VMware Fusion (2014097)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Aria Automation

Related Versions:

VMware vRealize Automation 7.6.x

VMware vRealize Automation 7.5.x

Take Our Survey

Support Assistant