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

Nexus 2 migration to Nexus 3 (postgres db) fails due permissions of unsupported formats

    Details

      Description

      Attempting to migrate only maven repositories and server settings from Nexus 2 to Nexus 3 with postgres DB fails due to all permissions being transferred which contains formats not supported by new databases in Nexus 3.

      Steps to reproduce:

      1) Setup Nexus 2 instance that has Maven and NPM repo content

      2) Set up new Nexus 3 instance configured with Postgres DB

      3) Start migration selecting server config and repository content. At repository list, only maven repos are selectable, so select all maven repos.

      4) During the prepare phase  some of the steps will remain initializing and the continue button is greyed out and migration will not move further.

      Nexus 3 logs show:

      2021-06-22 15:46:04,861+0100 INFO [plan-executor-15-thread-1] admin com.sonatype.nexus.migration.plan.StepExecutor - Step not runnable: Step(name:Upgrade configuration: security.roles, phase:PREPARE)
      2021-06-22 15:46:04,861+0100 INFO [plan-executor-15-thread-1] admin com.sonatype.nexus.migration.plan.StepExecutor - Step not runnable: Step(name:Upgrade configuration: security.user-role-mappings, phase:PREPARE)
      2021-06-22 15:46:04,861+0100 INFO [plan-executor-15-thread-1] admin com.sonatype.nexus.migration.plan.StepExecutor - Step not runnable: Step(name:Upgrade configuration: capability.iq, phase:PREPARE)
      2021-06-22 15:46:04,862+0100 INFO [plan-executor-15-thread-1] admin com.sonatype.nexus.migration.plan.StepExecutor - Step not runnable: Step(name:End phase: PREPARE, phase:PREPARE) =
      

      Notice that IQ migration also fails.

      I suspect it due to migration transfers all permissions including ones related to NPM.

        Attachments

        1. prepare.png
          512 kB
          Mahendra Surani

          Activity

            People

            Assignee:
            jhill Joshua Hill
            Reporter:
            msurani Mahendra Surani
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title