Upgrade from 3.14 to 3.15 fails

Hi there,

Because of the NXRM 3.14 critical security vulnerability, I am trying to upgrade our instance to the latest release of 3.15.

What I did so far

I basically followed your instructions for upgrading NXRM to a more recent version:

  • Downloaded nexus-3.15.2-01-unix.tar.gz from your website (I’m on Ubuntu 16.04)
  • Untar it in the /opt folder : sudo tar xvzf nexus-3.15.2-01-unix.tar.gz -C /opt
  • Copied the modified configuration files and SSL certificates from our old version:

sudo cp /opt/nexus/etc/jetty/jetty-https.xml /opt/nexus-3.15.2-01/etc/jetty/

sudo cp -R /opt/nexus/etc/ssl/ /opt/nexus-3.15.2-01/etc/

sudo cp /opt/nexus/bin/nexus.vmoptions /opt/nexus-3.15.2-01/bin/nexus.vmoptions

  • Changed the owner to a user NXRM has access to:
    sudo chown -R nexus:nexus /opt/nexus-3.15.2-01/

  • Stopped the Nexus Repository service

sudo systemctl stop nexus.service

  • Changed the /opt/nexus symbolic link to the new folder and set the ownership to nexus: sudo ln -sfn /opt/nexus-3.15.2-01 /opt/nexus

sudo chown -Rh nexus:nexus /opt/nexus

  • Start the Nexus Repository service: sudo systemctl start nexus.service

From there the service starts but after a few seconds systemctl status shows me that NXRM is failed.
FWIW changing the symbolic link to go back to using NXRM 3.14 works.

Below is an extract of the nexus.log generated from starting nexus.service after setting it up to using the 3.15 version (starting from the first error message):

2019-03-15 07:59:18,804+0100 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI - Missing job-detail for key: nexus.something
2019-03-15 07:59:18,806+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task ‘blbl- Docker - Delete incomplete uploads’ [repository.docker.upload-purge] : state=WAITING
2019-03-15 07:59:18,808+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task ‘blbl - Docker - Proxy - docker.gcr.io-proxy - delete unused’ [repository.docker.gc] : state=WAITING
2019-03-15 07:59:18,822+0100 WARN [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI - Job missing listener; omitting from results: nexus.7415f55f-b76a-42eb-a3e5-3131fd3ed1ae
2019-03-15 07:59:18,858+0100 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI - Failed transition: NEW -> STARTED
java.lang.NullPointerException: null
at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI.recoverInterruptedJobs(QuartzSchedulerSPI.java:217)
at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI.doStart(QuartzSchedulerSPI.java:207)
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:168)
at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:100)
at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:195)
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:748)
2019-03-15 07:59:18,859+0100 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Failed to start nexus
java.lang.NullPointerException: null
at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI.recoverInterruptedJobs(QuartzSchedulerSPI.java:217)
at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI.doStart(QuartzSchedulerSPI.java:207)
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:168)
at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:100)
at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:195)
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:748)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - java.lang.NullPointerException
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI.recoverInterruptedJobs(QuartzSchedulerSPI.java:217)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI.doStart(QuartzSchedulerSPI.java:207)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport.start(StateGuardLifecycleSupport.java:67)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:193)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:168)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:100)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:195)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1429)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
2019-03-15 07:59:18,861+0100 ERROR [FelixStartLevel] *SYSTEM java.lang.Throwable - at java.lang.Thread.run(Thread.java:748)
2019-03-15 07:59:18,872+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Uptime: 35 seconds and 249 milliseconds (nexus-oss-edition/3.15.2.01)
2019-03-15 07:59:18,874+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Stop SECURITY
2019-03-15 07:59:18,874+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Stop EVENTS
2019-03-15 07:59:18,874+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Stop SCHEMAS
2019-03-15 07:59:18,878+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Stop UPGRADE
2019-03-15 07:59:18,878+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Stop RESTORE
2019-03-15 07:59:18,878+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Stop STORAGE
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping 5 pools
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping pool: security
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping pool: component
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping pool: audit
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping pool: config
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping pool: accesslog
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping 5 instances
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping instance: security
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping instance: component
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping instance: audit
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping instance: config
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseManagerImpl - Stopping instance: accesslog
2019-03-15 07:59:18,880+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - OrientDB Server is shutting down…
2019-03-15 07:59:18,881+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - Shutting down protocols
2019-03-15 07:59:18,881+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.plugin.OServerPluginManager - Shutting down plugins:
2019-03-15 07:59:18,881+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.plugin.OServerPluginManager - - jmx
2019-03-15 07:59:18,881+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - Shutting down databases:
2019-03-15 07:59:18,881+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.Orient - Orient Engine is shutting down…
2019-03-15 07:59:18,881+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.Orient - - shutdown storage: security…
2019-03-15 07:59:18,913+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.Orient - - shutdown storage: component…
2019-03-15 07:59:18,963+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.Orient - - shutdown storage: audit…
2019-03-15 07:59:18,973+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.Orient - - shutdown storage: config…
2019-03-15 07:59:18,990+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.Orient - - shutdown storage: OSystem…
2019-03-15 07:59:18,991+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.Orient - - shutdown storage: accesslog…
2019-03-15 07:59:19,556+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.core.Orient - OrientDB Engine shutdown complete
2019-03-15 07:59:19,556+0100 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - OrientDB Server shutdown complete
2019-03-15 07:59:19,561+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseServerImpl - Shutdown
2019-03-15 07:59:19,563+0100 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.node - [29D83F34-C9C17EA9-9F3BBD12-9AE21630-6073B232] stopping …
2019-03-15 07:59:19,663+0100 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.node - [29D83F34-C9C17EA9-9F3BBD12-9AE21630-6073B232] stopped
2019-03-15 07:59:19,663+0100 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.node - [29D83F34-C9C17EA9-9F3BBD12-9AE21630-6073B232] closing …
2019-03-15 07:59:19,666+0100 INFO [FelixStartLevel] *SYSTEM org.elasticsearch.node - [29D83F34-C9C17EA9-9F3BBD12-9AE21630-6073B232] closed
2019-03-15 07:59:19,667+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘dockerhub-proxy#negative-cache’ removed from EhcacheManager.
2019-03-15 07:59:19,668+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘NexusAuthorizingRealm.authorizationCache’ removed from EhcacheManager.
2019-03-15 07:59:19,668+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘nuget.org-proxy#odata-query-cache’ removed from EhcacheManager.
2019-03-15 07:59:19,668+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘nuget.org-proxy#negative-cache’ removed from EhcacheManager.
2019-03-15 07:59:19,668+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘docker-quay.io-proxy#negative-cache’ removed from EhcacheManager.
2019-03-15 07:59:19,668+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘assetDownloadCountStoreCache’ removed from EhcacheManager.
2019-03-15 07:59:19,669+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘nuget-group#odata-query-cache’ removed from EhcacheManager.
2019-03-15 07:59:19,669+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘docker.gcr.io-proxy#negative-cache’ removed from EhcacheManager.
2019-03-15 07:59:19,669+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘npmjs-proxy#negative-cache’ removed from EhcacheManager.
2019-03-15 07:59:19,669+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘NexusAuthenticatingRealm.authenticationCache’ removed from EhcacheManager.
2019-03-15 07:59:19,669+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘LdapRealm.authorizationCache’ removed from EhcacheManager.
2019-03-15 07:59:19,670+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘maven-central#negative-cache’ removed from EhcacheManager.
2019-03-15 07:59:19,670+0100 INFO [FelixStartLevel] *SYSTEM org.ehcache.core.EhcacheManager - Cache ‘pypi-proxy#negative-cache’ removed from EhcacheManager.
2019-03-15 07:59:19,670+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.cache.internal.ehcache.EhCacheManagerProvider - Cache-manager closed
2019-03-15 07:59:19,672+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Stop KERNEL

Why does this fail?

Hello,

Your three copy commands seem to have the wrong version in them - should they have been to the new version 3.15.2 or was this just a typo ?

Regards.

Hi Michael,

Sorry, that was a typo when typing the question. The three copy commands were indeed to 3.15 in my terminal.