ConstraintViolationException Error Upgrading From 2.x to 3.x

Hello all!
I am new to managing nexus and I need to update from Nexus OSS 2.14.13-01 to Nexux OSS 3.16.1-02.
To test the upgrade I’ve cloned the nexus2 repo and both nexus (2 and 3) are in my localhost.
I have upgrade succefully all repos except by 02 private ones. These modules were created for internal use and they are not in Central.

Bellow is the error I get when upgrading these 02 repos and the log error.

2019-05-17 11:13:26,991-0300 DEBUG [plan-executor-4-thread-9]  admin com.sonatype.nexus.migration.repository.RepositoryPrepareStep - Transitioning: RUNNING -> FAILED
2019-05-17 11:13:26,991-0300 WARN  [plan-executor-4-thread-9]  admin com.sonatype.nexus.migration.repository.RepositoryPrepareStep - Prepare repository for upgrade: Private_Snapshots failed
javax.validation.ConstraintViolationException: null
	at org.sonatype.nexus.repository.manager.internal.RepositoryImpl.validate(RepositoryImpl.java:174)
	at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.newRepository(RepositoryManagerImpl.java:183)
	at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.create(RepositoryManagerImpl.java:333)
	at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
	at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
	at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)
	at org.sonatype.nexus.repository.manager.RepositoryManager$create$3.call(Unknown Source)
	at com.sonatype.nexus.migration.repository.RepositoryPrepareStep.doRun(RepositoryPrepareStep.groovy:138)
	at com.sonatype.nexus.migration.plan.Step.run(Step.groovy:271)
	at com.sonatype.nexus.migration.plan.Step$run$1.call(Unknown Source)
	at com.sonatype.nexus.migration.plan.StepExecutor.runSync(StepExecutor.groovy:168)
	at sun.reflect.GeneratedMethodAccessor593.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:169)
	at com.sonatype.nexus.migration.plan.StepExecutor$_runAsync_closure1.doCall(StepExecutor.groovy:197)
	at com.sonatype.nexus.migration.plan.StepExecutor$_runAsync_closure1.doCall(StepExecutor.groovy)
	at sun.reflect.GeneratedMethodAccessor598.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
	at groovy.lang.Closure.call(Closure.java:418)
	at groovy.lang.Closure.call(Closure.java:412)
	at groovy.lang.Closure.run(Closure.java:499)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
2019-05-17 11:13:26,992-0300 DEBUG [plan-executor-4-thread-9]  admin com.sonatype.nexus.migration.repository.RepositoryPrepareStep - Transitioned: FAILED
2019-05-17 11:13:26,992-0300 DEBUG [plan-executor-4-thread-9]  admin com.sonatype.nexus.migration.plan.StepExecutor - Step finished: Step(name:Prepare repository for upgrade: Private_Snapshots, phase:PREPARE)
2019-05-17 11:13:26,992-0300 INFO  [plan-executor-4-thread-1]  admin com.sonatype.nexus.migration.plan.StepExecutor - Step not runnable: Step(name:Upgrade configuration: security.roles, phase:PREPARE)
2019-05-17 11:13:26,992-0300 INFO  [plan-executor-4-thread-1]  admin com.sonatype.nexus.migration.plan.StepExecutor - Step not runnable: Step(name:Upgrade configuration: security.user-role-mappings, phase:PREPARE)
2019-05-17 11:13:26,992-0300 INFO  [plan-executor-4-thread-1]  admin com.sonatype.nexus.migration.plan.StepExecutor - Step not runnable: Step(name:End phase: PREPARE, phase:PREPARE)
2019-05-17 11:13:27,853-0300 DEBUG [qtp11579398-264]  admin com.sonatype.nexus.migration.ui.ProgressComponent - read PREPARE
2019-05-17 11:13:28,854-0300 DEBUG [qtp11579398-210]  admin com.sonatype.nexus.migration.ui.ProgressComponent - read PREPARE

I woul really apreciate some help to upgrade to nexus 3.

Thanks,

Luis

Looking at the stack, there should be an error with a stack trace above that warning. Can you post it?

I can not upload a file, but I share the log in my Drive. Here is the link:

https://drive.google.com/file/d/1g3sw-cLkSNvaKpqAqypZDxJthsMfMjKt/view?usp=sharing

Thanks

This looks like a bug to me:

Validation failed; 1 constraints violated:

  1. URL should be in the format ‘http://www.example.com’, type: class org.sonatype.nexus.repository.config.internal.ConfigurationFacetImpl$SectionWrapper, property: attributes[proxy].remoteUrl, value: http://10.8.1.75/svn/RepositorioCentral/RepositorioCentral/Private%20Snapshots/

Caused by the URL having a space in it. Please raise an issue for this in the ‘dev - nexus’ project at https://issues.sonatype.org.

As a workaround, don’t select this proxy repository when upgrading, and then recreated it in Nexus Repo 3 once the upgrade is complete.

Great! I will try t and report back! Tks!