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

Not Found Cache TTL timeout setting of "-1" fails upgrade from Nexus 2x to 3x

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: 2.14.5, 3.6.1, 3.7.0
    • Fix Version/s: None
    • Component/s: Migration
    • Labels:
    • Story Points:
      2

      Description

      In Nexus 2.x instance, if the Not Found Cache TTL timeout is set to -1, then this fails the migration.

      You see the following warning in the logs. 

      2017-12-27 17:32:38,825+0200 INFO [plan-executor-8-thread-2] admin org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl - Creating repository: servicemix -> Configuration\{repositoryName='servicemix', recipeName='maven2-proxy', attributes=\{proxy=\{contentMaxAge=-1, metadataMaxAge=1440, remoteUrl=http://svn.apache.org/repos/asf/servicemix/m2-repo/}, negativeCache=\{timeToLive=-1, enabled=true}, maven=\{layoutPolicy=PERMISSIVE, versionPolicy=RELEASE}, storage=\{strictContentTypeValidation=false, blobStoreName=default}, httpclient=\{autoBlock=true, connection=\{enableCircularRedirects=false, enableCookies=false, useTrustStore=false}}}}
      2017-12-27 17:32:38,830+0200 WARN [plan-executor-8-thread-2] admin org.sonatype.nexus.repository.config.internal.ConfigurationFacetImpl - Validation failed; 1 constraints violated:
       1) must be greater than or equal to 0, type: class org.sonatype.nexus.repository.config.internal.ConfigurationFacetImpl$SectionWrapper, property: attributes[negativeCache].timeToLive, value: -1
      2017-12-27 17:32:38,834+0200 DEBUG [plan-executor-8-thread-2] admin com.sonatype.nexus.migration.repository.RepositoryPrepareStep - Transitioning: RUNNING -> FAILED
      2017-12-27 17:32:38,834+0200 WARN [plan-executor-8-thread-2] admin com.sonatype.nexus.migration.repository.RepositoryPrepareStep - Prepare repository for upgrade: servicemix failed
      javax.validation.ConstraintViolationException: null
      

      Also caused the migration to hang on a group repo containing the above repo.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              msurani Mahendra Surani
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title