【问题标题】:Sonatype Nexus upgraded to 3.19.1 from 3.17.1 and wont startSonatype Nexus 从 3.17.1 升级到 3.19.1 并且无法启动
【发布时间】:2020-01-03 10:04:53
【问题描述】:

我将 Sonatype Nexus 从 3.17.1 升级到 3.19.1。
现在它不会启动,我检查了日志。

日志显示“缺少配方:helm-proxy”
我确实按照链接设置了 helm 代理插件 Nexus Helm recipe
完整的日志如下。

 2019-11-01 15:29:45,358+1100 ERROR [FelixStartLevel]  *SYSTEM org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl - Failed transition: NEW -> STARTED
java.lang.IllegalStateException: Missing recipe: helm-proxy
        at com.google.common.base.Preconditions.checkState(Preconditions.java:585)
        at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.recipe(RepositoryManagerImpl.java:161)
        at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.newRepository(RepositoryManagerImpl.java:179)
        at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.restoreRepositories(RepositoryManagerImpl.java:271)
        at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.doStart(RepositoryManagerImpl.java:253)
        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:193)
        at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56)
        at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:199)
        at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:111)
        at org.sonatype.nexus.extender.NexusContextListener.moveToPhase(NexusContextListener.java:311)
        at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:208)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1431)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:748)
2019-11-01 15:29:45,379+1100 ERROR [FelixStartLevel]  *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Failed to start nexus
java.lang.IllegalStateException: Missing recipe: helm-proxy
        at com.google.common.base.Preconditions.checkState(Preconditions.java:585)
        at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.recipe(RepositoryManagerImpl.java:161)
        at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.newRepository(RepositoryManagerImpl.java:179)
        at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.restoreRepositories(RepositoryManagerImpl.java:271)
        at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.doStart(RepositoryManagerImpl.java:253)
        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:193)
        at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56)
        at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:199)
        at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:111)
        at org.sonatype.nexus.extender.NexusContextListener.moveToPhase(NexusContextListener.java:311)
        at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:208)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1431)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:748)

知道出了什么问题。 如果我选择一个新的空数据目录,Nexus 就会启动。但是我会丢失我现有的数据。

更新
我能够提出来。下载了 nexus-repository-helm-0.0.12.jar 文件的新副本,并且 nexus 重新上线。 但是我仍然无法将其作为服务提出。我必须执行 nexus/bin/nexus start 才能启动它。 nexus.log 中也没有日志。

来自日志 -xe 的日志

Nov 01 16:54:29 lndevopsnx  polkitd[867]: Unregistered Authentication Agent for unix-process:6536:123145 (system bus name :1.60, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Nov 01 16:54:29 lndevopsnx systemd[1]: Started nexus service.
-- Subject: Unit nexus.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nexus.service has finished starting up.
--
-- The start-up result is done.
Nov 01 16:54:29 lndevopsnx systemd[1]: nexus.service: main process exited, code=exited, status=255/n/a
Nov 01 16:54:30 lnpdevopsnx nexus[6732]: Shutting down nexus
Nov 01 16:54:30 lndevopsnx nexus[6732]: nexus is not running.
Nov 01 16:54:30 lndevopsnx systemd[1]: Unit nexus.service entered failed state.

【问题讨论】:

    标签: nexus sonatype


    【解决方案1】:

    我能够提出来。下载了 nexus-repository-helm-0.0.12.jar 文件的新副本,并且 nexus 重新上线。但是我仍然无法将其作为服务提出。我必须执行 nexus/bin/nexus start 才能启动它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-03
      • 2015-02-14
      • 2017-12-17
      • 1970-01-01
      • 2014-09-04
      • 1970-01-01
      • 1970-01-01
      • 2014-07-05
      相关资源
      最近更新 更多