Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: From Liferay 7.0 to 7.1 db upgrade process fails
We are migrating liferay 7.0 (with fix-pack 54) to 7.1 and as a part of it we need to upgrade our portal db to make it compatible with 7.1.
For this process, we followed
the steps from below URL,
https://dev.liferay.com/en/discover/deployment/-/knowledge_base/7-1/running-the-upgrade
Following are steps in brief: -
1. Download liferay portal 7.1
2. added document_media
directory in data folder tomcat for the current database.
3.
added sqljdbc42.jar in lib > ext directory of tomcat for SQL Server
jdbc connection.
4. update relevant paths and db info in
app-server.properties, portal-upgrade-database.properties &
portal-upgrade-ext.properties files.
After above steps when, I run db_upgrade.bat file from the location
\liferay-dxp-7.1.10-ga1\tools\portal-tools-db-upgrade-client,
I
am getting following error in console and process doesn't go ahead,
908485ae-88e9-0018-1a13-c854d0d735be]
[com_liferay_portal_configuration_persistence_impl: 97]
FrameworkEvent ERROR
org.osgi.framework.BundleException:
Exception in
com.liferay.portal.configuration.persistence.internal.activator.ConfigurationPersistenceBundleActivator.start
() of bundle com. liferay.portal.configuration.persistence.impl.
at
org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator
(BundleContextImpl.java:795)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.start
(BundleContextImpl.java:724)
at
org.eclipse.osgi.internal .framework.EquinoxBundle.startWorker0
(EquinoxBundle.java:951)
at
org.eclipse.osgi.internal.framework.EquinoxBundle $
EquinoxModule.startWorker (EquinoxBundle.java:328)
at
org.eclipse.osgi.container.Module.doStart (Module.java:566)
at
org.eclipse.osgi.container.Module.start (Module.java:434)
at
org.eclipse.osgi.container.ModuleContainer $ ContainerStartLevel
.incStartLevel (ModuleContainer.java:1582)
at
org.eclipse.osgi.container.ModuleContainer $
ContainerStartLevel.incStartLevel (ModuleContainer.java:1562)
at
org.eclipse.osgi.container.ModuleContainer $
ContainerStartLevel.doContainerStartLevel
(ModuleContainer.java:1533 )
at
org.eclipse.osgi.container.ModuleContainer $
ContainerStartLevel.dispatchEvent (ModuleContainer.java:1476)
at
org.eclipse.osgi.container.ModuleContainer $
ContainerStartLevel.dispatchEvent (ModuleContainer.java:1)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent
(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager $ EventThread.run
(EventManager.java:340)
Caused by: java.lang
.IllegalArgumentException: URI is not hierarchical
at java.io.File.
<Init> (File.java:418)
at
com.liferay.portal.configuration.persistence.internal.ConfigurationPersistenceManager._verifyConfigurations
(ConfigurationPersistenceManager.java:688)
at com.
liferay.portal.configuration.persistence.internal.ConfigurationPersistenceManager.start
(ConfigurationPersistenceManager.java:175)
at
com.liferay.portal.configuration.persistence.internal.activator.ConfigurationPersistenceBundleActivator.start (ConfigurationPersistenceBundleActivator.java:65)
at
org.eclipse.osgi.internal.framework.BundleContextImpl $ 3.run
(BundleContextImpl.java:774)
at
org.eclipse.osgi.internal.framework.BundleContextImpl $ 3.run
(BundleContextImpl.java:1)
at
java.security.AccessController .doPrivileged (Native Method)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator
(BundleContextImpl.java:767)
... 12 more
Please can you help me in
resolving this issue and upgrading database for Liferay version 7.1.
Thank you in advance !!!
Hi Abhishek,
It seems that one of these properties in the portal-upgrade-ext.properties don't point to the proper path:
module.framework.base.dir=/home/user/servers/liferay7/osgi
liferay.home=/home/user/servers/liferay7
Please, verify their value and execute the upgrade again.
Cheers!
Hi Alberto !
In my steps I have pointed everything to Liferay 7.1 related paths and with old database(which currently I am using for Liferay 7.0). I have double check that these two paths are pointing to correct location(that is liferay 7.1 home and it's osgi folder). Also, I am following same steps as given in post but I am not sure what the root cause is.
Please can you suggest anything else for that ?
Thanks !!
Abhishek Mehta:We are migrating liferay 7.0 (with fix-pack 54) to 7.1 and as a part of it we need to upgrade our portal db to make it compatible with 7.1.
"Fixpack 54" sounds like you're running DXP 7.0, which is the enterprise supported version of Liferay. Upgrades are fully supported with this version, and you should file a ticket with Liferay support to get to the root cause of this problem. Someone in support might have seen this already and be able to find a prompt solution.
Also, make sure that you're using the latest available fixpack of DXP
7.1 to upgrade to, as it will have the latest fixes for upgrade
routines as well.