How to avoid the "Error Code: 301 Moved Permanently" when using the Amazon S3 adapter in TIBCO Data Virtualization?

How to avoid the "Error Code: 301 Moved Permanently" when using the Amazon S3 adapter in TIBCO Data Virtualization?

book

Article ID: KB0071443

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization 8.4.1 and higher

Description

While trying to establish a connection to the Amazon S3 data source in TDV, the user may come across the following error:
Error [datasrc--1]:
Cause: getFileStatus on s3a://s3.eu-west-1.amazonaws.com/datalumenpublic: com.amazonaws.services.s3.model.AmazonS3Exception: The bucket is in this region: <region_name>. Please use this region to retry the request (Service: Amazon S3; Status Code: 301; Error Code: 301 Moved Permanently;...


 

Issue/Introduction

This article mentions the reason for facing the Error Code: 301 Moved Permanently when using the Amazon S3 adapter in TDV.

Resolution

This issue occurs because the 'End Point Region' of the S3 data source is not selected correctly. The user will have to select the specified endpoint that was chosen during the creation of the S3 bucket.

To make it easier, the error message mentions the endpoint region as well. For example: "com.amazonaws.services.s3.model.AmazonS3Exception: The bucket is in this region: us-east-1. Please use this region to retry the request"

In the above error, the region is mentioned as 'us-east-1' so in the drop-down list for the End Point Region the user should choose 'US East(N. Virginia)'.
 

Additional Information

AWS document that lists all the service endpoints:
https://docs.aws.amazon.com/general/latest/gr/rande.html