Karaf shell fails to start after upgrade to Horizon 24

#1

I’ve got a test OpenNMS instance which I’m testing the Jira Plugin. This was originally a 23.0.4 OpenNMS instance, But I upgraded it to 24.0.0, and now the karaf shell fails to start.

I have another test OpenNMS instance that does not have the jira plugin, which the karaf shell works, it is only the Instance where I am testing Jira, where karaf shell is not starting.

the users.properties file is correct with:

admin = admin,_g_:admingroup
_g_\:admingroup = group,admin,manager,viewer,systembundles,ssh

the karaf.log contains the following:

2019-05-10T03:30:41,427 | ERROR | activator-1-thread-2 | BootFeaturesInstaller            | 11 - 
org.apache.karaf.features.core - 4.2.3 | Error installing boot feature repository mvn:org.opennms.karaf/opennms/23.0.4/xml/features
java.lang.RuntimeException: Error resolving artifact org.opennms.karaf:opennms:xml:features:23.0.4: [Could not find artifact org.opennms.karaf:opennms:xml:features:23.0.4] : mvn:org.opennms.karaf/opennms/23.0.4/xml/features
at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:116) ~[11:org.apache.karaf.features.core:4.2.3]
at org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50) ~[11:org.apache.karaf.features.core:4.2.3]
at org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51) ~[11:org.apache.karaf.features.core:4.2.3]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:380) ~[11:org.apache.karaf.features.core:4.2.3]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:375) ~[11:org.apache.karaf.features.core:4.2.3]
at org.apache.karaf.features.internal.service.BootFeaturesInstaller.addRepositories(BootFeaturesInstaller.java:123) [11:org.apache.karaf.features.core:4.2.3]
at org.apache.karaf.features.internal.service.BootFeaturesInstaller.installBootFeatures(BootFeaturesInstaller.java:93) [11:org.apache.karaf.features.core:4.2.3]
at org.apache.karaf.features.internal.service.BootFeaturesInstaller.start(BootFeaturesInstaller.java:87) [11:org.apache.karaf.features.core:4.2.3]
at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:196) [11:org.apache.karaf.features.core:4.2.3]
at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:292) [11:org.apache.karaf.features.core:4.2.3]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
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:834) [?:?]
Caused by: java.io.IOException: Error resolving artifact org.opennms.karaf:opennms:xml:features:23.0.4: [Could not find artifact org.opennms.karaf:opennms:xml:features:23.0.4]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.configureIOException(AetherBasedResolver.java:803) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:774) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:555) ~[?:?]
at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123) ~[?:?]
at java.net.URL.openStream(URL.java:1117) ~[?:?]
at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:113) ~[?:?]
... 14 more
Suppressed: shaded.org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.opennms.karaf:opennms:xml:features:23.0.4
	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:403) ~[?:?]
	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215) ~[?:?]
	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:192) ~[?:?]
	at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:247) ~[?:?]
	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:767) ~[?:?]
	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657) ~[?:?]
	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598) ~[?:?]
	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565) ~[?:?]
	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:555) ~[?:?]
	at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123) ~[?:?]
	at java.net.URL.openStream(URL.java:1117) ~[?:?]
	at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:113) ~[11:org.apache.karaf.features.core:4.2.3]
	at org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50) ~[11:org.apache.karaf.features.core:4.2.3]
	at org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51) ~[11:org.apache.karaf.features.core:4.2.3]
	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:380) ~[11:org.apache.karaf.features.core:4.2.3]
	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:375) ~[11:org.apache.karaf.features.core:4.2.3]
	at org.apache.karaf.features.internal.service.BootFeaturesInstaller.addRepositories(BootFeaturesInstaller.java:123) [11:org.apache.karaf.features.core:4.2.3]
	at org.apache.karaf.features.internal.service.BootFeaturesInstaller.installBootFeatures(BootFeaturesInstaller.java:93) [11:org.apache.karaf.features.core:4.2.3]
	at org.apache.karaf.features.internal.service.BootFeaturesInstaller.start(BootFeaturesInstaller.java:87) [11:org.apache.karaf.features.core:4.2.3]
	at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:196) [11:org.apache.karaf.features.core:4.2.3]
	at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:292) [11:org.apache.karaf.features.core:4.2.3]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	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:834) [?:?]
Caused by: shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error resolving artifact org.opennms.karaf:opennms:xml:features:23.0.4
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:413) ~[?:?]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215) ~[?:?]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:192) ~[?:?]
at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:247) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:767) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565) ~[?:?]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:555) ~[?:?]
at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123) ~[?:?]
at java.net.URL.openStream(URL.java:1117) ~[?:?]
at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:113) ~[?:?]
... 14 more
2019-05-10T03:30:41,655 | INFO  | features-3-thread-1 | FeaturesServiceImpl              | 11 - org.apache.karaf.features.core - 4.2.3 | No deployment change.
2019-05-10T03:30:41,672 | INFO  | features-3-thread-1 | FeaturesServiceImpl              | 11 - org.apache.karaf.features.core - 4.2.3 | Done.
2019-05-10T03:30:41,713 | INFO  | features-3-thread-1 | FeaturesServiceImpl              | 11 - org.apache.karaf.features.core - 4.2.3 | No deployment change.
2019-05-10T03:30:41,714 | INFO  | features-3-thread-1 | FeaturesServiceImpl              | 11 - org.apache.karaf.features.core - 4.2.3 | Done.
2019-05-10T03:30:42,335 | INFO  | Main             | Version                          |  -  -  | HV000001: Hibernate Validator 4.3.2.Final
May 10, 2019 3:48:40 AM org.apache.karaf.main.Main$KarafLockCallback lockAcquired
INFO: Lock acquired. Setting startlevel to 100
2019-05-10T03:48:43,605 | INFO  | Main             | Version                          |  -  -  | HV000001: Hibernate Validator 4.3.2.Final
2019-05-10T03:53:25,563 | INFO  | fileinstall-/opt/opennms/etc | fileinstall                      | 10 - org.apache.felix.fileinstall - 3.6.4 | Updating configuration from org.apache.karaf.features.cfg
2019-05-10T03:54:31,605 | INFO  | fileinstall-/opt/opennms/etc | fileinstall                      | 10 - org.apache.felix.fileinstall - 3.6.4 | Updating configuration from org.apache.karaf.features.cfg
May 10, 2019 3:57:11 AM org.apache.karaf.main.Main$KarafLockCallback lockAcquired
INFO: Lock acquired. Setting startlevel to 100
2019-05-10T03:57:14,484 | INFO  | Main             | Version                          |  -  -  | HV000001: Hibernate Validator 4.3.2.Final
May 10, 2019 4:37:40 AM org.apache.karaf.main.Main$KarafLockCallback lockAcquired
INFO: Lock acquired. Setting startlevel to 100
2019-05-10T04:37:42,648 | INFO  | Main             | Version                          |  -  -  | HV000001: Hibernate Validator 4.3.2.Final
May 10, 2019 5:00:27 AM org.apache.karaf.main.Main$KarafLockCallback lockAcquired
INFO: Lock acquired. Setting startlevel to 100
2019-05-10T05:00:30,050 | INFO  | Main             | Version                          |  -  -  | HV000001: Hibernate Validator 4.3.2.Final
May 10, 2019 5:32:24 AM org.apache.karaf.main.Main$KarafLockCallback lockAcquired
INFO: Lock acquired. Setting startlevel to 100
2019-05-10T05:32:27,182 | INFO  | Main             | Version                          |  -  -  | HV000001: Hibernate Validator 4.3.2.Final
2019-05-10T05:36:13,066 | INFO  | fileinstall-/opt/opennms/etc | fileinstall                      | 10 - org.apache.felix.fileinstall - 3.6.4 | Updating configuration from org.apache.karaf.features.cfg
May 10, 2019 5:37:25 AM org.apache.karaf.main.Main$KarafLockCallback lockAcquired
INFO: Lock acquired. Setting startlevel to 100
2019-05-10T05:37:28,138 | INFO  | Main             | Version                          |  -  -  | HV000001: Hibernate Validator 4.3.2.Final

the errors regarding v23.0.4 features I’ve resolved by removing the pluginManifestData.xml as this also resolved the same error on the server that does not have the jira plugin installed. but on the server that has the jira plugin, the karaf shell is not starting.

netstat shows that port 8101 is not being listened on.

Any help regarding how to resolve this would be much appreciated.

Regards,
John

#2

Bump!

Anyone have any ideas on this?