Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-12397

nexus-public base template binary fails to start due to DependencyResolver$UnresolvedDependencyException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.1, 3.3.0
    • Fix Version/s: 3.4.0
    • Component/s: Build
    • Labels:
      None
    • Environment:
      BASE MacOSX
    • Story Points:
      3
    • Sprint:
      Core Team - Sprint 94

      Description

      While testing 3.2.1, I ran ./run.sh and forgot to designate pro or oss. This ends up running base. However, I noticed that my run did not succeed, it errored and shut down with the below.

      On repro attempt, I did notice that if you run oss/pro first, it failed with different errors (I didn't write them down). However, if you do a fresh build then run ./run.sh this seems reproducable.

      2017-02-14 11:32:17,689-0500 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.upgrade.internal.UpgradeServiceImpl - Failed transition: NEW -> STARTED
      org.sonatype.nexus.upgrade.plan.DependencyResolver$UnresolvedDependencyException: 1 unresolved dependency: ComponentDatabaseUpgrade_1_2{upgrades=@org.sonatype.nexus.common.upgrade.Upgrades(model=component, from=1.1, to=1.2), dependsOn=[]} requires UpgradeDependency{model='component', version='1.1'}
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.8.0_40]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [na:1.8.0_40]
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [na:1.8.0_40]
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [na:1.8.0_40]
      	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83) [na:na]
      	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105) [na:na]
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60) [na:na]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235) [na:na]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247) [na:na]
      	at org.sonatype.nexus.upgrade.plan.DependencyResolver.resolve(DependencyResolver.groovy:149) [na:na]
      	at org.sonatype.nexus.upgrade.internal.UpgradeManager.order(UpgradeManager.java:113) [na:na]
      	at org.sonatype.nexus.upgrade.internal.UpgradeManager.plan(UpgradeManager.java:81) [na:na]
      	at org.sonatype.nexus.upgrade.internal.UpgradeServiceImpl.doStart(UpgradeServiceImpl.java:82) [na:na]
      	at org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport.start(StateGuardLifecycleSupport.java:67) [org.sonatype.nexus.common:3.3.0.SNAPSHOT]
      	at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39) [org.sonatype.nexus.common:3.3.0.SNAPSHOT]
      	at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:191) [org.sonatype.nexus.common:3.3.0.SNAPSHOT]
      	at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56) [org.sonatype.nexus.common:3.3.0.SNAPSHOT]
      	at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:154) [org.sonatype.nexus.extender:3.3.0.SNAPSHOT]
      	at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:94) [org.sonatype.nexus.extender:3.3.0.SNAPSHOT]
      	at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:186) [org.sonatype.nexus.extender:3.3.0.SNAPSHOT]
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1429) [org.apache.felix.framework-5.6.1.jar:na]
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [org.apache.felix.framework-5.6.1.jar:na]
      	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
      2017-02-14 11:32:17,692-0500 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Failed to start nexus
      org.sonatype.nexus.upgrade.plan.DependencyResolver$UnresolvedDependencyException: 1 unresolved dependency: ComponentDatabaseUpgrade_1_2{upgrades=@org.sonatype.nexus.common.upgrade.Upgrades(model=component, from=1.1, to=1.2), dependsOn=[]} requires UpgradeDependency{model='component', version='1.1'}
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.8.0_40]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [na:1.8.0_40]
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [na:1.8.0_40]
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [na:1.8.0_40]
      	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83) [na:na]
      	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105) [na:na]
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60) [na:na]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235) [na:na]
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247) [na:na]
      	at org.sonatype.nexus.upgrade.plan.DependencyResolver.resolve(DependencyResolver.groovy:149) [na:na]
      	at org.sonatype.nexus.upgrade.internal.UpgradeManager.order(UpgradeManager.java:113) [na:na]
      	at org.sonatype.nexus.upgrade.internal.UpgradeManager.plan(UpgradeManager.java:81) [na:na]
      	at org.sonatype.nexus.upgrade.internal.UpgradeServiceImpl.doStart(UpgradeServiceImpl.java:82) [na:na]
      	at org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport.start(StateGuardLifecycleSupport.java:67) [na:na]
      	at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39) [na:na]
      	at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:191) [na:na]
      	at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56) [na:na]
      	at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:154) [na:na]
      	at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:94) [na:na]
      	at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:186) [na:na]
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1429) [org.apache.felix.framework-5.6.1.jar:na]
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [org.apache.felix.framework-5.6.1.jar:na]
      	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
      ERROR: Framework listener delivery error.
      org.sonatype.nexus.upgrade.plan.DependencyResolver$UnresolvedDependencyException: 1 unresolved dependency: ComponentDatabaseUpgrade_1_2{upgrades=@org.sonatype.nexus.common.upgrade.Upgrades(model=component, from=1.1, to=1.2), dependsOn=[]} requires UpgradeDependency{model='component', version='1.1'}
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
      	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
      	at org.sonatype.nexus.upgrade.plan.DependencyResolver.resolve(DependencyResolver.groovy:149)
      	at org.sonatype.nexus.upgrade.internal.UpgradeManager.order(UpgradeManager.java:113)
      	at org.sonatype.nexus.upgrade.internal.UpgradeManager.plan(UpgradeManager.java:81)
      	at org.sonatype.nexus.upgrade.internal.UpgradeServiceImpl.doStart(UpgradeServiceImpl.java:82)
      	at org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport.start(StateGuardLifecycleSupport.java:67)
      	at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      	at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:191)
      	at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56)
      	at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:154)
      	at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:94)
      	at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:186)
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1429)
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
      	at java.lang.Thread.run(Thread.java:745)
      

      Attaching full log as well in case I missed something.

      As far as I know this is not intentional. I am pretty sure I've run base in the past without modifications, however, it stopped being useful to me so haven't done so in a while. If intentional, it'd be good to know what to do to get it working (as well as to know that).

      Acceptance criteria: the base template distribution will start without error

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ecobb Eric Cobb
              Reporter:
              jtom Joe Tom
              Last Updated By:
              Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title