Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-32577

Nexus 2 to Nexus 3 migration failing to load list of repositories

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.39.0, 2.15.1
    • Fix Version/s: None
    • Component/s: Migration

      Description

      Issue:

      Nexus 2 to Nexus 3 migration fails to load list of repositories.

      Nexus 3 nexus.log

      2022-05-31 15:11:37,637+0100 ERROR [qtp2129265368-126] admin org.sonatype.nexus.extdirect.internal.ExtDirectExceptionHandler - Failed to invoke action method: migration_Repository.read, java-method: com.sonatype.nexus.migration.ui.RepositoryComponent.read
      javax.ws.rs.NotFoundException: HTTP 404 Not Found
      

      Nexus 2 request.log

      127.0.0.1 - - [31/May/2022:15:11:37 +0100] "GET /nexus/service/siesta/migrationagent/repository/gsp-stage-26821 HTTP/1.1" 404 581 16
      

      Nexus 2 nexus.log

      2022-05-31 15:11:37,621+0100 WARN  [qtp2057969053-29] *UNKNOWN org.sonatype.nexus.plugins.siesta.NoSuchRepositoryExceptionMapper - (ID e328a803-10f4-4fa9-abe4-f50d9e700fbd) Response: [404] (no entity/body) mapped from org.sonatype.nexus.proxy.NoSuchRepositoryException/Repository with ID="gsp-stage-26821" not found
      

      Root Cause:

      Issue is that nexus.xml contains references to repositories that do not exist. A group repo has a member that does not exist, a common occurrence with staging repos.

      Expected behaviour:

      • If repository does not exist then skip it and continue with migration.
      • Skip any group repos that have no members.
      • Exclude staging repos from repos being listed during migration (as staging repos cannot be migrated).

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            msurani Mahendra Surani
            Last Updated By:
            Abrash Pervaiz Abrash Pervaiz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title