Smart Proxy stops working after downgrade

Problem

You started Nexus 2.7 nexus/conf against a recently upgraded Nexus nexus/broker directory. You Nexus logs show an error on startup. Now Smart proxy is not working.

2014-04-04 14:38:42 ERROR [jetty-main-thread-1]  org.sonatype.nexus.plugins.capabilities.internal.DefaultCapabilityReference - Could not activate capability MessagingCapability{id='1361d66c7964eea2', config=com.sonatype.nexus.plugins.smartproxy.internal.messaging.MessagingCapabilityConfiguration@7bd778c4} (1361d66c7964eea2)
java.lang.RuntimeException: java.io.IOException: Could not load journal record. Invalid location: 1:503
	at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-14.0.1.jar:na]
	at org.sonatype.sisu.goodies.lifecycle.LifecycleSupport.doFailed(LifecycleSupport.java:105) [goodies-lifecycle-1.7.4.jar:1.7.4]
	at org.sonatype.sisu.goodies.lifecycle.LifecycleSupport$Handler.doFailed(LifecycleSupport.java:64) [goodies-lifecycle-1.7.4.jar:1.7.4]
	...
	at org.eclipse.jetty.server.Server.doStart(Server.java:282) [jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520]
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.11.v20130520.jar:8.1.11.v20130520]
	at org.sonatype.sisu.jetty.Jetty8$JettyWrapperThread.run(Jetty8.java:145) [nexus-jetty8-2.7.2-03.jar:2.7.2-03]
Caused by: java.io.IOException: Could not load journal record. Invalid location: 1:503
	at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:909) ~[na:na]
	at org.apache.activemq.store.kahadb.MessageDatabase.recover(MessageDatabase.java:513) ~[na:na]
	at org.apache.activemq.store.kahadb.MessageDatabase.open(MessageDatabase.java:360) ~[na:na]
	at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:408) ~[na:na]
	at org.apache.activemq.store.kahadb.MessageDatabase.doStart(MessageDatabase.java:237) ~[na:na]
	at org.apache.activemq.store.kahadb.KahaDBStore.doStart(KahaDBStore.java:176) ~[na:na]
	at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:54) ~[na:na]
	at org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.start(KahaDBPersistenceAdapter.java:188) ~[na:na]
	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:512) ~[na:na]
	at com.sonatype.nexus.plugins.smartproxy.internal.messaging.MessagingSystemImpl.doStart(MessagingSystemImpl.java:148) ~[na:na]
	at org.sonatype.sisu.goodies.lifecycle.LifecycleSupport$Handler.doStart(LifecycleSupport.java:70) [goodies-lifecycle-1.7.4.jar:1.7.4]
	at org.sonatype.sisu.goodies.lifecycle.LifecycleHandlerContext$MainMap_Starting.started(LifecycleHandlerContext.java:255) [goodies-lifecycle-1.7.4.jar:1.7.4]
	at org.sonatype.sisu.goodies.lifecycle.LifecycleHandlerContext.started(LifecycleHandlerContext.java:57) [goodies-lifecycle-1.7.4.jar:1.7.4]
	at org.sonatype.sisu.goodies.lifecycle.LifecycleSupport.start(LifecycleSupport.java:129) [goodies-lifecycle-1.7.4.jar:1.7.4]
	... 109 common frames omitted

2014-04-04_1442_broken_spm.png

Solution

Open Administration -> Capabilities as an Nexus Administrator. Select the broken Smart Proxy: Messaging capability and delete it. Add a new Smart Proxy: Messaging capability.

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk