liferay 7.4.3.41-ga4 db_upgrade.sh Error missing com.liferay.petra.log4j

Mark Clarke, modified 3 Years ago. Regular Member Posts: 107 Join Date: 3/3/12 Recent Posts

Hi all,

When running the db_upgrade.sh scrit for liferay-ce-portal-7.4.3.41-ga41 I get the following error:

2022-09-09 19:27:20.828 ERROR [main][DBUpgrader:79] null
com.liferay.portal.kernel.log.LogSanitizerException: java.lang.RuntimeException: org.osgi.framework.BundleException: Could not resolve module: com.liferay.osgi.log.service.extender [19]_  Unresolved requirement: Import-Package: com.liferay.petra.log4j; version="1.2.0"_ [Sanitized]
	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:289) ~[portal-impl.jar:?]
	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:209) ~[portal-impl.jar:?]
	at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:127) [portal-impl.jar:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at com.liferay.portal.tools.db.upgrade.client.DBUpgraderLauncher.main(DBUpgraderLauncher.java:54) [com.liferay.portal.tools.db.upgrade.client.jar:?]
Caused by: com.liferay.portal.kernel.log.LogSanitizerException: org.osgi.framework.BundleException: Could not resolve module: com.liferay.osgi.log.service.extender [19]_  Unresolved requirement: Import-Package: com.liferay.petra.log4j; version="1.2.0"_ [Sanitized]
	at org.eclipse.osgi.container.Module.start(Module.java:444) ~[org.eclipse.osgi.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428) ~[org.eclipse.osgi.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:447) ~[org.eclipse.osgi.jar:?]
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.lambda$_setUpInitialBundles$6(ModuleFrameworkImpl.java:1530) ~[com.liferay.portal.bootstrap.jar:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:829) ~[?:?]

Near as I can tell the Petra lpkg is missing?

Thanks

Jamie Sammons, modified 3 Years ago. Regular Member Posts: 107 Join Date: 3/3/12 Recent Posts

Found the problem. Some entries in the db_upgrade property files where pointing to the older liferay version.