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

Postgres migration fails with error processing http connection settings

    Details

    • Notability:
      2

      Description

      Database migration to Postgres will not work if http connection settings have been customized.

      Reproduce steps...

      1. Fire up Nexus Repo 3.41.1
      2. Visit "system --> http" and change the number of connection retries from 2 to 3
      3. Shut down Nexus
      4. Run a Postgres migration

      This will fail with:

      13:33:19 [main] INFO o.s.batch.core.step.AbstractStep - Step: [exportFilesStep] executed in 2s484ms
      13:33:19 [main] INFO o.s.batch.core.job.SimpleStepHandler - Executing step: [readFileStep]
      13:33:19 [main] ERROR o.s.batch.core.step.AbstractStep - Encountered an error executing step readFileStep in job migrationFromOrientJob
      com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "retries" (class com.sonatype.nexus.db.migrator.item.record.httpclient.Connection), not marked as ignorable (6 known properties: "useTrustStore", "timeout", "enableCircularRedirects", "maximumRetries", "userAgentSuffix", "enableCookies"])
      at [Source: (File); line: 1, column: 80853] (through reference chain: com.sonatype.nexus.db.migrator.item.export.ExportItem["records"]>java.util.ArrayList[32]>com.sonatype.nexus.db.migrator.item.record.httpclient.HttpClientRecord["connection"]->com.sonatype.nexus.db.migrator.item.record.httpclient.Connection["retries"])
      at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61)
      at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:987)
      at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1974)
      at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1701)
      at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1679)
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:330)
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:187)
      at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:324)
      at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:225)
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:197)
      at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:139)
      at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:107)
      at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:263)
      at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray(CollectionDeserializer.java:357)
      at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:244)
      at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:28)
      at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:324)
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:187)
      at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:322)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Hardeep Nagra Hardeep Nagra
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title