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

Amazon aws submit error on local instance || error : POST net::ERR_CONNECTION_RESET #3411

Open
nandanitis opened this issue Aug 2, 2023 · 2 comments
Assignees
Labels
Setup Anything related to the deployment of CodaLab

Comments

@nandanitis
Copy link

Hello,
I am running a local setup on my system. I have setup all the docker images properly. And all are running good.
While creating competition( I took iris.zip as sample ), the submission fails, giving as

image

image

My aws in env is :
DEFAULT_FILE_STORAGE=storages.backends.s3boto3.S3Boto3Storage
AWS_ACCESS_KEY_ID=#######
AWS_SECRET_ACCESS_KEY=########
AWS_STORAGE_BUCKET_NAME=nandcode-public
AWS_STORAGE_PRIVATE_BUCKET_NAME=nandcode-private
AWS_S3_CALLING_FORMAT=boto.s3.connection.OrdinaryCallingFormat
AWS_S3_HOST=s3.amazonaws.com
AWS_QUERYSTRING_AUTH=False
S3DIRECT_REGION=us-west-1
^^Set the S3DIRECT_REGION to the AWS region of your storage buckets
AWS_S3_REGION_NAME=us-west-1
AWS_S3_SIGNATURE_VERSION=s3v4

Virtual Host style addressing, 2020+
AWS_S3_ADDRESSING_STYLE=virtual
S3DIRECT_URL_STRUCTURE=http://{1}.{0}

I am using http without SSL, and when i click submit there is no change in the docker/django log file . So it could be a connection error.

I have set up all the USER( in aws IAM ) and bucket policies and CORS perfectly. I tried all the ways , but not able to solve the error . Please help me out to solve the error. Its me bugging me so much. For any more information let me know

@Didayolo Didayolo added the Setup Anything related to the deployment of CodaLab label Aug 9, 2023
@dtuantran
Copy link
Collaborator

Dear @nandanitis ,

Have you checked AWS S3 docs if they support HTTP request ? Maybe they accept only HTTPS.

Regards,

@nandanitis
Copy link
Author

Amazon accepts both http and https. Issuse is from the code side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Setup Anything related to the deployment of CodaLab
Projects
None yet
Development

No branches or pull requests

3 participants