Nexus OSS not starting after adding the R repository plug-in

309 views
Skip to first unread message

Kaliyug Antagonist

unread,
Mar 13, 2018, 7:11:42 AM3/13/18
to Nexus Users

Nexus OSS 3.7.1-02 running on RHEL 7. I am referring to the 'permanent install' section of the R plug-in.

I added the entries in the nexus-oss-feature-3.7.1-02-features.xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="nexus-oss-feature">
    <feature name="nexus-oss-feature" description="com.sonatype.nexus.assemblies:nexus-oss-feature" version="3.7.1.02">
        <details>com.sonatype.nexus.assemblies:nexus-oss-feature</details>
        <feature prerequisite="true" dependency="false">nexus-core-feature</feature>
.
.
.
<!--Start: Added for R plug-in-->
        <feature version="3.7.1.02" prerequisite="false" dependency="false">nexus-repository-rubygems</feature>
        <feature version="1.0.1" prerequisite="false" dependency="false">nexus-repository-r</feature>
        <feature version="3.7.1.02" prerequisite="false" dependency="false">nexus-repository-yum</feature>
        <!--End: Added for R plug-in-->
        <bundle>mvn:com.sonatype.nexus/nexus-licensing-extension/3.7.1-02</bundle>
.
.
.
    <feature name="nexus-rutauth-plugin" description="com.sonatype.nexus.plugins:nexus-rutauth-plugin" version="3.7.1.02">
        <details>com.sonatype.nexus.plugins:nexus-rutauth-plugin</details>
        <bundle>mvn:com.sonatype.nexus.plugins/nexus-rutauth-plugin/3.7.1-02</bundle>
    </feature>
    <!--Start: Added for R plug-in-->
    <feature name="nexus-repository-r" description="org.sonatype.nexus.plugins:nexus-repository-r" version="1.0.1">
        <details>org.sonatype.nexus.plugins:nexus-repository-r</details>
        <bundle>mvn:org.sonatype.nexus.plugins/nexus-repository-r/1.0.1</bundle>
    </feature>
    <!--End: Added for R plug-in-->
</features>

When I restart Nexus, I get errors in nexus.log. On a quick search in the Maven public repository, I didn't find any artifacts or anything at all pertaining to 'mvn:org.sonatype.nexus.plugins/nexus-repository-r/1.0.1'. Shouldn't that tag have something that makes it pickup the artifact /system/org/sonatype/nexus/plugins/nexus-repository-r/1.0.1/nexus-repository-r-1.0.1.jar?

org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=nexus-oss-feature; type=karaf.feature; version="[3.7.1.02,3.7.1.02]"; filter:="(&(osgi.identity=nexus-oss-feature)(type=karaf.feature)(version>=3.7.1.02)(version<=3.7.1.02))" [caused by: Unable to resolve nexus-oss-feature/3.7.1.02: missing requirement [nexus-oss-feature/3.7.1.02] osgi.identity; osgi.identity=nexus-repository-r; type=karaf.feature; version="[1.0.1,1.0.1]" [caused by: Unable to resolve nexus-repository-r/1.0.1: missing requirement [nexus-repository-r/1.0.1] osgi.identity; osgi.identity=org.sonatype.nexus.plugins.nexus-repository-r; type=osgi.bundle; version="[1.0.1,1.0.1]"; resolution:=mandatory [caused by: Unable to resolve org.sonatype.nexus.plugins.nexus-repository-r/1.0.1: missing requirement [org.sonatype.nexus.plugins.nexus-repository-r/1.0.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.sonatype.nexus.blobstore.api)(version>=3.8.0))"]]]
    at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)
    at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:389)
    at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)
    at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:347)
    at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)
    at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)
    at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)
    at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2018-03-13 10:45:19,633+0000 ERROR [jetty-main-1]  *SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Failed to initialize
java.lang.RuntimeException: org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=nexus-oss-feature; type=karaf.feature; version="[3.7.1.02,3.7.1.02]"; filter:="(&(osgi.identity=nexus-oss-feature)(type=karaf.feature)(version>=3.7.1.02)(version<=3.7.1.02))" [caused by: Unable to resolve nexus-oss-feature/3.7.1.02: missing requirement [nexus-oss-feature/3.7.1.02] osgi.identity; osgi.identity=nexus-repository-r; type=karaf.feature; version="[1.0.1,1.0.1]" [caused by: Unable to resolve nexus-repository-r/1.0.1: missing requirement [nexus-repository-r/1.0.1] osgi.identity; osgi.identity=org.sonatype.nexus.plugins.nexus-repository-r; type=osgi.bundle; version="[1.0.1,1.0.1]"; resolution:=mandatory [caused by: Unable to resolve org.sonatype.nexus.plugins.nexus-repository-r/1.0.1: missing requirement [org.sonatype.nexus.plugins.nexus-repository-r/1.0.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.sonatype.nexus.blobstore.api)(version>=3.8.0))"]]]
    at org.sonatype.nexus.extender.NexusContextListener.contextInitialized(NexusContextListener.java:176)
    at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:47)
    at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:1)
    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
    at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
    at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
    at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)
    at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)
    at org.sonatype.nexus.bootstrap.osgi.BootstrapListener.contextInitialized(BootstrapListener.java:101)
    at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:843)
    at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:533)
    at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:816)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:345)
    at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1406)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1368)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)
    at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:522)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at com.codahale.metrics.jetty9.InstrumentedHandler.doStart(InstrumentedHandler.java:92)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
    at org.eclipse.jetty.server.Server.start(Server.java:422)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.server.Server.doStart(Server.java:389)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.sonatype.nexus.bootstrap.jetty.JettyServer$JettyMainThread.run(JettyServer.java:274)
Caused by: org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=nexus-oss-feature; type=karaf.feature; version="[3.7.1.02,3.7.1.02]"; filter:="(&(osgi.identity=nexus-oss-feature)(type=karaf.feature)(version>=3.7.1.02)(version<=3.7.1.02))" [caused by: Unable to resolve nexus-oss-feature/3.7.1.02: missing requirement [nexus-oss-feature/3.7.1.02] osgi.identity; osgi.identity=nexus-repository-r; type=karaf.feature; version="[1.0.1,1.0.1]" [caused by: Unable to resolve nexus-repository-r/1.0.1: missing requirement [nexus-repository-r/1.0.1] osgi.identity; osgi.identity=org.sonatype.nexus.plugins.nexus-repository-r; type=osgi.bundle; version="[1.0.1,1.0.1]"; resolution:=mandatory [caused by: Unable to resolve org.sonatype.nexus.plugins.nexus-repository-r/1.0.1: missing requirement [org.sonatype.nexus.plugins.nexus-repository-r/1.0.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.sonatype.nexus.blobstore.api)(version>=3.8.0))"]]]
    at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)
    at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:389)
    at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)
    at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:347)
    at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)
    at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)
    at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)
    at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2018-03-13 10:45:19,633+0000 WARN  [jetty-main-1]  *SYSTEM org.eclipse.jetty.webapp.WebAppContext - Failed startup of context o.e.j.w.WebAppContext@1a1e279e{/,file:///usr/lib/nexus-3.7.1-02/public/,UNAVAILABLE}
java.lang.RuntimeException: org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=nexus-oss-feature; type=karaf.feature; version="[3.7.1.02,3.7.1.02]"; filter:="(&(osgi.identity=nexus-oss-feature)(type=karaf.feature)(version>=3.7.1.02)(version<=3.7.1.02))" [caused by: Unable to resolve nexus-oss-feature/3.7.1.02: missing requirement [nexus-oss-feature/3.7.1.02] osgi.identity; osgi.identity=nexus-repository-r; type=karaf.feature; version="[1.0.1,1.0.1]" [caused by: Unable to resolve nexus-repository-r/1.0.1: missing requirement [nexus-repository-r/1.0.1] osgi.identity; osgi.identity=org.sonatype.nexus.plugins.nexus-repository-r; type=osgi.bundle; version="[1.0.1,1.0.1]"; resolution:=mandatory [caused by: Unable to resolve org.sonatype.nexus.plugins.nexus-repository-r/1.0.1: missing requirement [org.sonatype.nexus.plugins.nexus-repository-r/1.0.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.sonatype.nexus.blobstore.api)(version>=3.8.0))"]]]
    at org.sonatype.nexus.extender.NexusContextListener.contextInitialized(NexusContextListener.java:176)
    at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:47)
    at org.sonatype.nexus.bootstrap.osgi.ListenerTracker.addingService(ListenerTracker.java:1)
    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
    at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
    at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
    at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)
    at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)
    at org.sonatype.nexus.bootstrap.osgi.BootstrapListener.contextInitialized(BootstrapListener.java:101)
    at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:843)
    at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:533)
    at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:816)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:345)
    at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1406)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1368)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)
    at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:522)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)

Rich Seddon

unread,
Mar 13, 2018, 9:37:34 AM3/13/18
to Nexus Users
It looks like the plugin has been built for version 3.8.0, so it won't work with version 3.7.1.

filter:="(&(osgi.wiring.package=org.sonatype.nexus.blobstore.api)(version>=3.8.0))"

You'll need to adjust the version in the pom file before building and/or upgrade your Nexus 3 instance:

Alexei Znamensky

unread,
Mar 14, 2018, 5:14:31 AM3/14/18
to Kaliyug Antagonist, Nexus Users
Hi Kaliuyg,

It *seems* (not doing a thorough check at this moment) that your build of the R plugin is expecting to find the nexus blobstore component v3.8.0 (or higher). Since you are on 3.7.x, it fails. Double check the R plugin build, and either update to Nexus 3.8 (or 3.9, while at it), or use an older version of the plugin. Which is probably a bad idea.

Cheers,
AZ

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/2ce51c6c-cc6b-45d1-9cb8-86d29c43fa06%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
--
Alexei "RUSSOZ" Znamensky | russoz EM gmail com
"I don't know... fly casual!" -- Han Solo

Kaliyug Antagonist

unread,
Mar 14, 2018, 8:41:47 AM3/14/18
to Nexus Users, kaliyuga...@gmail.com
Yeah, the upgrade worked :)

Kaliyug Antagonist

unread,
Mar 15, 2018, 3:27:40 AM3/15/18
to Nexus Users, kaliyuga...@gmail.com
Yeah, the upgrade worked :)

On Wednesday, March 14, 2018 at 10:14:31 AM UTC+1, Alexei Znamensky wrote:

Bradley Beck

unread,
Mar 16, 2018, 9:45:41 AM3/16/18
to Kaliyug Antagonist, Nexus Users
Your nexus-repository-r plugin appears to have a dependency on NXRM version 3.8.0:
filter:="(&(osgi.wiring.package=org.sonatype.nexus.blobstore.api)(version>=3.8.0))"
You will need to make sure that nexus-repository-r is built against the same version on which you wish to deploy.

--

Jeffry Hesse

unread,
Mar 16, 2018, 4:00:57 PM3/16/18
to Bradley Beck, Kaliyug Antagonist, Nexus Users
I went and created a PR for updating to 3.9.0-01 if any one is interested in reviewing/taking a gander:


Reply all
Reply to author
Forward
0 new messages