Legacy Knowledge Base
Published Sep. 10, 2025

Upgrade from Liferay DXP 7.2 FP5 to Liferay DXP 7.3 GA1 fails

Written By

Dávid Hegedüs

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When running the DB upgrade process from Liferay DXP 7.2 FP5 to Liferay DXP 7.3 GA1, it fails due to Duplicate column name 'defaultVirtualHost':
2020-11-18 10:40:00.406 INFO  [main][UpgradeProcess:115] Failed upgrade process com.liferay.portal.upgrade.v7_2_x.UpgradeVirtualHost in 12 ms 
2020-11-18 10:40:00.406 INFO  [main][UpgradeProcess:115] Failed upgrade process com.liferay.portal.upgrade.PortalUpgradeProcess in 16 ms
com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.sql.SQLSyntaxErrorException: Duplicate column name 'defaultVirtualHost'     at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:109)     
at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:156)     
at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:119)     
at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:180)     
at com.liferay.portal.tools.DBUpgrader._upgradePortal(DBUpgrader.java:337)     
at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:152)     
at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:144)     
at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:124)     
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     
at java.lang.reflect.Method.invoke(Method.java:498)     
at com.liferay.portal.tools.db.upgrade.client.DBUpgraderLauncher.main(DBUpgraderLauncher.java:54)
Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.sql.SQLSyntaxErrorException: Duplicate column name 'defaultVirtualHost'     at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:109)     
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:131)     
at com.liferay.portal.upgrade.PortalUpgradeProcess.doUpgrade(PortalUpgradeProcess.java:130)     
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:104)      ... 12 more

Environment

  • Liferay DXP 7.2
  • Liferay DXP 7.3

Resolution

  • Before running the DB upgrade please delete the osgi/state
  • As a workaround, the issue can be resolved by deleting the 'defaultVirtualHost' and  'languageId' columns from the 'VirtualHost' table.

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base