Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS S3 Bucket - 403 Signing Error. #3374

Closed
AyJayHam opened this issue May 22, 2023 · 2 comments
Closed

AWS S3 Bucket - 403 Signing Error. #3374

AyJayHam opened this issue May 22, 2023 · 2 comments

Comments

@AyJayHam
Copy link

Hi, I am actually also facing issues when setting up Codalab with amazon s3 bucket.

I do get an 403 error as well. Digging into the requests I was able to find out that the reason i get this error is that Amazon throws. an error:The request signature we calculated does not match the signature you provided. Check your key and signing method. - which comes with the 403.

My .env file is set up correctly with the IAM user and the initial requests are successfully going through. But once Codalab tries to store the zip competition bundle file in the bucket the signing fails.

My env:
image

I looked through #3054 but it did not help.

It might have something todo with the boto3 being used.

Happy for any help!

@AyJayHam
Copy link
Author

I was able to resolve my issue.
The error was related to the AWS-S3_HOST. It needs to be without the region as given in the example file.

For having it working self hosted however 2 things still need to be updated:

  1. the rabbitmq docker image needs to be set to a newer version as otherwise installation fails
  2. the max_size for image_url_base in the django model files needs to be increased as the generated amazon urls which are pasted into that field when using s3 will have more than 350 chars.

@Didayolo
Copy link
Collaborator

Glad to hear you could solve your issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants