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

upgrade of NXRM 2 to NXRM 3 maven assets fails due to IllegalStateException: Missing {attributes:checksum} sha256

    XMLWordPrintable

    Details

    • Notability:
      2

      Description

      A customer was upgrading from NXRM 2.14.19-01 -> NXRM 3.29.0-02 -

      Stack traces were noticed in the NXRM 3 nexus.log during step 8 of 9 ( migrating content ):

      2020-12-11 13:09:12,620+0100 ERROR [plan-executor-13-thread-2]  admin com.sonatype.nexus.migration.repository.ProcessChangesStep - Failed processing of CREATE ext-thirdparty-maven2-proxy-snapshots:/com/fasterxml/jackson/core/jackson-databind/maven-metadata.xml, will ignore and move on. Missing: {attributes::checksum} sha256
      java.lang.IllegalStateException: Missing: {attributes::checksum} sha256
       at com.google.common.base.Preconditions.checkState(Preconditions.java:508)
       at org.sonatype.nexus.common.collect.AttributesMap.require(AttributesMap.java:211)
       at org.sonatype.nexus.common.collect.AttributesMap.require(AttributesMap.java:229)
       at org.sonatype.nexus.common.collect.AttributesMap.require(AttributesMap.java:238)
       at com.sonatype.nexus.migration.repository.migrators.RepositoryMigratorSupport.getHashCodes(RepositoryMigratorSupport.java:322)
       at com.sonatype.nexus.migration.repository.migrators.RepositoryMigratorSupport.getHashCodes(RepositoryMigratorSupport.java:332)
       at com.sonatype.nexus.migration.repository.migrators.orient.Maven2RepositoryMigratorSupport.hardLinkContent(Maven2RepositoryMigratorSupport.java:195)
       at com.sonatype.nexus.migration.repository.migrators.RepositoryMigratorSupport.ingestContent(RepositoryMigratorSupport.java:174)
       at com.sonatype.nexus.migration.repository.migrators.orient.Maven2ProxyRepositoryMigrator.ingestContent(Maven2ProxyRepositoryMigrator.java:63)
       at com.sonatype.nexus.migration.repository.migrators.RepositoryMigratorSupport.createOrUpdate(RepositoryMigratorSupport.java:153)
      

      This types of ERROR messages suggest that the referenced content was not successfully migrated into NXRM3. Initial investigation suggests this could be related to changes from NEXUS-25490.

      Workaround

      Upgrade to a version without this problem - 3.28.1.

      Expected

      Migrate Maven assets and all their attributes from NXRM 2 successfully even if they lack sha256 checksums.

        Attachments

        1. hosted-package-nx2.png
          hosted-package-nx2.png
          154 kB
        2. hosted-package-nx3.png
          hosted-package-nx3.png
          358 kB
        3. proxy-package-nx2.png
          proxy-package-nx2.png
          393 kB
        4. proxy-package-nx3.png
          proxy-package-nx3.png
          414 kB
        5. Screenshot 2021-01-15 at 13.08.35.png
          Screenshot 2021-01-15 at 13.08.35.png
          255 kB
        6. Screenshot 2021-01-15 at 13.09.40.png
          Screenshot 2021-01-15 at 13.09.40.png
          200 kB
        7. Screenshot 2021-01-15 at 13.22.55.png
          Screenshot 2021-01-15 at 13.22.55.png
          317 kB
        8. Screenshot 2021-01-15 at 13.23.05.png
          Screenshot 2021-01-15 at 13.23.05.png
          305 kB
        9. Screenshot 2021-01-15 at 13.23.05.png
          Screenshot 2021-01-15 at 13.23.05.png
          305 kB
        10. success.png
          success.png
          242 kB

          Activity

            People

            Assignee:
            iudovika Igor Udovika
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Joe Tom Joe Tom
            Team:
            NXRM - Rocket Raccoon
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title