Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-15297

Direct upgrade from Artifactory 4.x Enterprise to 5.6.0 fails

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.6.1
    • Component/s: None
    • Labels:
    • Regression:
      Yes

      Description

      Issue:

      Direct upgrade from Artifactory 4.x Enterprise to 5.6.0 fails

      Steps to reproduce the issue

      1. 4.16.0 HA+shared NFS
      2. set artifactory.upgrade.allowAnyUpgrade.forVersion=5.6.0 on primary node's system prop
      3. curl https://bintray.com/jfrog/artifactory-pro-rpms/rpm -o bintray-jfrog-artifactory-pro-rpms.repo && mv bintray-jfrog-artifactory-pro-rpms.repo /etc/yum.repos.d
      4. yum install jfrog-artifactory-pro
      5. service artifactory start
      6. fails as seen in attached localhost.2017-11-16.log

      Error messages

      16-Nov-2017 07:57:27.947 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener]
      java.lang.NullPointerException
      at org.artifactory.common.ConstantValues.getString(ConstantValues.java:362)
      at org.artifactory.environment.converter.local.version.v1.NoNfsMasterEncryptionKeysConverter.getConvertedFiles(NoNfsMasterEncryptionKeysConverter.java:53)

      ...

      16-Nov-2017 07:57:27.948 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.artifactory.webapp.servlet.logback.LogbackConfigListener]
      java.lang.IllegalStateException: Artifactory home not initialized
      at org.artifactory.webapp.servlet.logback.LogbackConfigListener.initArtifactoryHome(LogbackConfigListener.java:55)
      at org.artifactory.webapp.servlet

      SEE attached localhost.2017-11-16.log for complete message

      Work-around

      Use the 'Two-phase, zero downtime' method at https://www.jfrog.com/confluence/display/RTF/Upgrading+an+Enterprise+HA+Cluster#UpgradinganEnterpriseHACluster-UpgradingFromVersion5.4.5andBelowtoVersion5.5andAbove

        Attachments

          Activity

            People

            • Assignee:
              nadavy Nadav Yogev
              Reporter:
              joshuah Joshua Han
              Assigned QA:
              Gilad Kalchheim (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: