Nexus running on docker failed to run after update - Sonatype Nexus Repository - Sonatype Community

Nexus running on docker failed to run after update

post by sushant.singh30 on Mar 8, 2021

I was upgrading my nexus image from 3.19 to 3.30, after upgrade nexus is failing to start with below error:

2021-03-08 11:34:01,911+0000 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Failed to start nexus java.lang.IllegalStateException: Missing recipe: composer-hosted  at com.google.common.base.Preconditions.checkState(Preconditions.java:589)  at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.recipe(RepositoryManagerImpl.java:160)  at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.newRepository(RepositoryManagerImpl.java:178)  at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.restoreRepositories(RepositoryManagerImpl.java:270)  at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.doStart(RepositoryManagerImpl.java:252)  at org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport.start(StateGuardLifecycleSupport.java:69)  at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)  at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuardLifecycleSupport.java:193)  at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:57)  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:321)  at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:218)  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) 2021-03-08 11:34:01,914+0000 ERROR [FelixStartLevel] *SYSTEM Felix - Framework listener delivery error. java.lang.IllegalStateException: Missing recipe: composer-hosted  at com.google.common.base.Preconditions.checkState(Preconditions.java:589)  at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.recipe(RepositoryManagerImpl.java:160)  at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.newRepository(RepositoryManagerImpl.java:178)  at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.restoreRepositories(RepositoryManagerImpl.java:270)  at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.doStart(RepositoryManagerImpl.java:252)  at org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport.start(StateGuardLifecycleSupport.java:69)  at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)  at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuardLifecycleSupport.java:193)  at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:57)  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:321)  at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:218)  at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1431)  at org.apache.felix.framework.FrameworkStartLevelImpl.run(FelixStartLevelImpl.java:308)  at java.lang.Thread.run(Thread.java:748)

post by mpiggott on Mar 8, 2021

Missing recipe: composer-hosted

Composer has never been part of Nexus, probably you added it or used a custom distribution. You need to either install that plugin again or remove the repository.

post by sushant.singh30 on Mar 8, 2021

Thanks for reply Matthew!!

I don’t remember installing plugin manually, anyways how can I install plugin again when nexus is not running and where can I find this plugin? It would be great if you help in that.

post by mmartz on Mar 8, 2021

post by mpiggott on Mar 8, 2021

Probably you’ll need to ask in the Github issues for a new release of the plugin.

post by ciprian.filipas on Apr 10, 2023

We are facing this problem now with composer-proxy. We’ve updated from 3.42 to 3.51 and the docker container is no longer starting. We’ve rebuilt the plugin ourselves and updated the versions in the POM.xml. We’ve run out of ideas. Is anyone able to throw a piece of advice our direction?

Thanks in advance.