Cortex Single Instance process failed with S3 error

136 views
Skip to first unread message

Vikram Yerneni

unread,
Sep 8, 2020, 8:00:42 PM9/8/20
to Cortex Project
Fellas,
I created custom S3 bucket and updated the "single-process-config-blocks.yaml" file with the same (I masked the bucket name down below in the error). I downloaded  the Cortex binaries and ran the Single Instance process on a CentOS Machine and it failed with error:

level=error ts=2020-09-08T23:53:11.552191Z caller=blocks_scanner.go:150 msg="unable to run the initial blocks scan" err="Get \"https://s3bucketname.s3.dualstack.us-east-1.amazonaws.com/?delimiter=%2F&encoding-type=url&fetch-owner=true&list-type=2&prefix=\": 301 response missing Location header"


Has anyone got this issue before?


Thanks
Vikram Yerneni
 

Vikram Yerneni

unread,
Sep 9, 2020, 11:12:14 AM9/9/20
to Cortex Project
Let me add little bit more details here:

When I am using the Single Instance / SIngle Process Cortex installation ( Single Instance ) and i am suing the S3 bucket configuration in single-process-config-blocks.yaml as shown below:

s3:
bucket_name: testbucket
endpoint: s3.dualstack.us-east-1.amazonaws.com
# Configure your S3 credentials below.
secret_access_key: xxxxxxxxxxxxxxxxxxxx
access_key_id: xxxxxxxxxxxxxxxxxxxx

 And when I initialized the cortex, its throwing the below error:
level=error ts=2020-09-08T23:53:11.552191Z caller=blocks_scanner.go:150 msg="unable to run the initial blocks scan" err="Get \"https://testbucket.s3.dualstack.us-east-1.amazonaws.com/?delimiter=%2F&encoding-type=url&fetch-owner=true&list-type=2&prefix=\": 301 response missing Location header"

I think I am missing some additional configuration from cortex here to connect to the S3 bucket... Any clue fellas??

Vikram Yerneni

unread,
Sep 9, 2020, 12:18:20 PM9/9/20
to Cortex Project
Nevermind... Found the root-cause and Submitted a request: 3150
Reply all
Reply to author
Forward
0 new messages