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

Upgrading to 5.x from 4.x with S3 and IAM Role fails to include the roleName in the new binarystore.xml

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0.0, 5.0.1
    • Fix Version/s: 5.1.0
    • Component/s: Configuration
    • Labels:
      None
    • Sprint:
      Leap 6

      Description

      When upgrading from Artifactory 4 to 5.0.1 or below with an existing binarystore.xml that uses the IAM Role settings for S3, which requires the <roleName> tag, the upgrade process which creates a new binarystore.xml file in $ARTIFACTORY_HOME/etc/binarystore.xml removes the <roleName> tag and causes Artifactory to fail starting up with an exception stating that "The identity field is required". It is stating this message because with no <roleName> and no <identity> field, it has no means to authenticate with S3. Below is what it should look like:

      <provider id="s3" type="s3">
      <roleName>*********</roleName>
      <endpoint>s3.amazonaws.com</endpoint>
      <bucketName>**********</bucketName>
      <refreshCredentials>true</refreshCredentials>
      </provider>

      You can workaround this by simply adding the <roleName> tag manually, but it is not 100% clear where the error is when viewing the logs at first.

        Attachments

          Activity

            People

            Assignee:
            nadavy Nadav Yogev
            Reporter:
            daniela Daniel Augustine
            Assigned QA:
            Matan Katz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: