[RTFACT-13662] Upgrading to 5.x from 4.x with S3 and IAM Role fails to include the roleName in the new binarystore.xml Created: 08/Feb/17  Updated: 14/Nov/17  Resolved: 19/Feb/17

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Configuration
Affects Version/s: 5.0.0, 5.0.1
Fix Version/s: 5.1.0

Type: Bug Priority: Critical
Reporter: Daniel Augustine Assignee: Nadav Yogev
Resolution: Fixed Votes: 0
Labels: None

Assigned QA: Matan Katz
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.


Generated at Sat Apr 04 12:09:21 UTC 2020 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.