org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Error creating shadow repo: java.net.m1-releases

Sonatype JIRA | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Complete an Artifactory import using the full-releases.zip => The following is logged in the migration.log: {noformat} 2009-04-24 15:37:26 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing Artifactory Backup from file: 'C:\Nexus_Utilities_and_Information\Artifactory Migration\full-releases.zip'. 2009-04-24 15:37:26 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Unpacking backup file 2009-04-24 15:40:13 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Parsing artifactory.config.xml 2009-04-24 15:40:13 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Parsing security.xml 2009-04-24 15:40:13 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repositories 2009-04-24 15:40:13 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: codehaus 2009-04-24 15:40:16 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: codehaus 2009-04-24 15:40:16 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: ext-releases-local 2009-04-24 15:40:18 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: ext-releases-local 2009-04-24 15:40:18 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: ext-snapshots-local 2009-04-24 15:40:19 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: ext-snapshots-local 2009-04-24 15:40:19 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: java.net.m1 2009-04-24 15:40:23 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: java.net.m1-releases, java.net.m1-snapshots 2009-04-24 15:40:23 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Spooling the creation of repository metadatas for repository java.net.m1-snapshots 2009-04-24 15:40:23 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Spooling the creation of repository metadatas for repository java.net.m1-releases 2009-04-24 15:40:23 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: java.net.m2 2009-04-24 15:40:26 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: java.net.m2-releases, java.net.m2-snapshots 2009-04-24 15:40:26 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Spooling the creation of repository metadatas for repository java.net.m2-snapshots 2009-04-24 15:40:26 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Spooling the creation of repository metadatas for repository java.net.m2-releases 2009-04-24 15:40:26 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: jboss 2009-04-24 15:40:27 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: jboss 2009-04-24 15:40:27 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: libs-releases-local 2009-04-24 15:40:27 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: libs-releases-local 2009-04-24 15:43:04 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Spooling the creation of repository metadatas for repository libs-releases-local 2009-04-24 15:43:04 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: libs-snapshots-local 2009-04-24 15:43:05 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: libs-snapshots-local 2009-04-24 15:43:06 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: plugins-releases-local 2009-04-24 15:43:07 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: plugins-releases-local 2009-04-24 15:43:07 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: plugins-snapshots-local 2009-04-24 15:43:08 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: plugins-snapshots-local 2009-04-24 15:43:08 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: repo1 2009-04-24 15:43:08 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing groups 2009-04-24 15:43:08 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing group: libs-releases 2009-04-24 15:43:12 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing group: libs-snapshots 2009-04-24 15:43:12 ERROR [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Failed to add a 'maven1' virtual repository for repository 'java.net.m1': Error creating shadow repo: java.net.m1-releases org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Error creating shadow repo: java.net.m1-releases at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createShadowRepo(DefaultArtifactoryMigrator.java:711) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.addVirtualRepository(DefaultArtifactoryMigrator.java:673) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importGroups(DefaultArtifactoryMigrator.java:601) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.migrate(DefaultArtifactoryMigrator.java:216) at org.sonatype.nexus.plugin.migration.artifactory.task.ArtifactoryMigrationTask.doRun(ArtifactoryMigrationTask.java:27) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.sonatype.nexus.configuration.validator.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o id - Virtual Repository ID 'java.net.m1-releases-virtual' conflicts with an existing Virtual Repository ID at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepositoryShadow(DefaultNexusConfiguration.java:972) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositoryShadow(DefaultNexusConfiguration.java:985) at org.sonatype.nexus.DefaultNexus.createRepositoryShadow(DefaultNexus.java:568) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createShadowRepo(DefaultArtifactoryMigrator.java:707) ... 13 more 2009-04-24 15:43:13 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing group: plugins-releases 2009-04-24 15:43:13 ERROR [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Failed to add a 'maven1' virtual repository for repository 'java.net.m1': Error creating shadow repo: java.net.m1-releases org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Error creating shadow repo: java.net.m1-releases at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createShadowRepo(DefaultArtifactoryMigrator.java:711) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.addVirtualRepository(DefaultArtifactoryMigrator.java:673) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importGroups(DefaultArtifactoryMigrator.java:601) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.migrate(DefaultArtifactoryMigrator.java:216) at org.sonatype.nexus.plugin.migration.artifactory.task.ArtifactoryMigrationTask.doRun(ArtifactoryMigrationTask.java:27) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.sonatype.nexus.configuration.validator.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o id - Virtual Repository ID 'java.net.m1-releases-virtual' conflicts with an existing Virtual Repository ID at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepositoryShadow(DefaultNexusConfiguration.java:972) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositoryShadow(DefaultNexusConfiguration.java:985) at org.sonatype.nexus.DefaultNexus.createRepositoryShadow(DefaultNexus.java:568) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createShadowRepo(DefaultArtifactoryMigrator.java:707) ... 13 more 2009-04-24 15:43:14 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing group: plugins-snapshots 2009-04-24 15:43:14 ERROR [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Failed to add a 'maven1' virtual repository for repository 'java.net.m1': Error creating shadow repo: java.net.m1-releases org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Error creating shadow repo: java.net.m1-releases at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createShadowRepo(DefaultArtifactoryMigrator.java:711) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.addVirtualRepository(DefaultArtifactoryMigrator.java:673) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importGroups(DefaultArtifactoryMigrator.java:601) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.migrate(DefaultArtifactoryMigrator.java:216) at org.sonatype.nexus.plugin.migration.artifactory.task.ArtifactoryMigrationTask.doRun(ArtifactoryMigrationTask.java:27) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.sonatype.nexus.configuration.validator.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o id - Virtual Repository ID 'java.net.m1-releases-virtual' conflicts with an existing Virtual Repository ID at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepositoryShadow(DefaultNexusConfiguration.java:972) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositoryShadow(DefaultNexusConfiguration.java:985) at org.sonatype.nexus.DefaultNexus.createRepositoryShadow(DefaultNexus.java:568) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createShadowRepo(DefaultArtifactoryMigrator.java:707) ... 13 more 2009-04-24 15:43:15 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing group: remote-repos 2009-04-24 15:43:15 ERROR [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Failed to add a 'maven1' virtual repository for repository 'java.net.m1': Error creating shadow repo: java.net.m1-releases org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Error creating shadow repo: java.net.m1-releases at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createShadowRepo(DefaultArtifactoryMigrator.java:711) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.addVirtualRepository(DefaultArtifactoryMigrator.java:673) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importGroups(DefaultArtifactoryMigrator.java:601) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.migrate(DefaultArtifactoryMigrator.java:216) at org.sonatype.nexus.plugin.migration.artifactory.task.ArtifactoryMigrationTask.doRun(ArtifactoryMigrationTask.java:27) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.sonatype.nexus.configuration.validator.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o id - Virtual Repository ID 'java.net.m1-releases-virtual' conflicts with an existing Virtual Repository ID at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepositoryShadow(DefaultNexusConfiguration.java:972) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositoryShadow(DefaultNexusConfiguration.java:985) at org.sonatype.nexus.DefaultNexus.createRepositoryShadow(DefaultNexus.java:568) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createShadowRepo(DefaultArtifactoryMigrator.java:707) ... 13 more 2009-04-24 15:43:17 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing security 2009-04-24 15:43:17 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing user: admin-artifactory 2009-04-24 15:43:17 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing user: Administrator 2009-04-24 15:43:17 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing user: anonymous-artifactory 2009-04-24 15:43:17 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing user: jcoder 2009-04-24 15:43:17 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Starting Artifactory Security Migration. 2009-04-24 15:43:17 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing user: admin-artifactory 2009-04-24 15:43:17 DEBUG [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - User 'admin-artifactory' was imported successfully 2009-04-24 15:43:17 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing user: Administrator 2009-04-24 15:43:17 WARN [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Failed to add user: 'Administrator'. User was missing a password. Usually this means the user is from an external Realm, e.g., LDAP. 2009-04-24 15:43:17 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing user: anonymous-artifactory 2009-04-24 15:43:17 DEBUG [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - User 'anonymous-artifactory' was imported successfully 2009-04-24 15:43:17 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing user: jcoder 2009-04-24 15:43:17 WARN [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Failed to add user: 'jcoder'. User was missing a password. Usually this means the user is from an external Realm, e.g., LDAP. 2009-04-24 15:43:17 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Recreating repository metadatas java.net.m1-releases 2009-04-24 15:43:19 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Recreating repository metadatas java.net.m2-snapshots 2009-04-24 15:43:20 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Recreating repository metadatas java.net.m2-releases 2009-04-24 15:43:22 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Recreating repository metadatas java.net.m1-snapshots 2009-04-24 15:43:23 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Recreating repository metadatas libs-releases-local 2009-04-24 15:43:33 WARN [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Migration finished with some errors. {noformat}

    Sonatype JIRA | 8 years ago
    org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Error creating shadow repo: java.net.m1-releases

    Root Cause Analysis

    1. org.sonatype.nexus.configuration.validator.InvalidConfigurationException

      Configuration is invalid! Validation errors follows: o id - Virtual Repository ID 'java.net.m1-releases-virtual' conflicts with an existing Virtual Repository ID

      at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepositoryShadow()
    2. ${project.groupId}:${project.artifactId}
      DefaultNexus.createRepositoryShadow
      1. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepositoryShadow(DefaultNexusConfiguration.java:972)
      2. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositoryShadow(DefaultNexusConfiguration.java:985)
      3. org.sonatype.nexus.DefaultNexus.createRepositoryShadow(DefaultNexus.java:568)
      3 frames
    3. org.sonatype.nexus
      ArtifactoryMigrationTask.doRun
      1. org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createShadowRepo(DefaultArtifactoryMigrator.java:707)
      2. org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.addVirtualRepository(DefaultArtifactoryMigrator.java:673)
      3. org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importGroups(DefaultArtifactoryMigrator.java:601)
      4. org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.migrate(DefaultArtifactoryMigrator.java:216)
      5. org.sonatype.nexus.plugin.migration.artifactory.task.ArtifactoryMigrationTask.doRun(ArtifactoryMigrationTask.java:27)
      5 frames
    4. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139)
      1 frame
    5. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      7. java.lang.Thread.run(Unknown Source)
      7 frames