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
Failed to upload the competition bundle when using Minio. #2843
Comments
Hi,
|
Thanks for your reply.
Thank you a lot! |
|
Hi there, For some reason s3direct forces "https" into the MinIO url which triggers an SSL error (tested on both Firefox and Opera by analyzing the network requests). I tried adding the following lines to .env (172.23.0.2 is the MinIO docker instance):
and then capture them in codalab/codalab/settings/base.py as follows: AWS_S3_SECURE_URLS = False # strtobool(os.environ.get('AWS_S3_SECURE_URLS', "True"))
AWS_S3_URL_PROTOCOL = 'http'
AWS_S3_ENDPOINT_URL = os.environ.get('AWS_S3_ENDPOINT_URL', None)
# Prints actually show the correct values from .env
print("AWS_S3_SECURE_URLS", AWS_S3_SECURE_URLS)
print('AWS_S3_URL_PROTOCOL', AWS_S3_URL_PROTOCOL)
print('AWS_S3_ENDPOINT_URL', AWS_S3_ENDPOINT_URL) But this doesn't fix the issue. I'm running everything using docker-compose (I created the MinIO docker container separately, I can access its interface via browser, "private" and "public" buckets created and configured). |
We are currently trying to improve the documentation for local installation. |
@160610101 @lrzpellegrini Did you manage to get it to work with a local minio without SSL? @Didayolo Has the documentation already been updated? Would it be possible to provide a docker compose that also includes a local minio setup? That would make things a lot easier for debugging competition bundles without overloading the codalab production server. |
I successfully managed to get it to work, but I had to change many parts of the code. Moreover, I had to use a separate DNS name for MinIO. It's an erratic patchwork and I don't think that my solution would work in general. |
Sorry, it still puzzles us, we still haven't solved this problem. |
Hi there,
I tried to set up Minio storage and the codalab instance on my server. I follow the structure https://github.com/codalab/codalab-competitions/wiki/Minio-storage and finish setting policies using minio's "mc" helper. Now I can visit the codalab but I cannot upload my competiton bundlle. "Sorry, failed to upload the file" it mentioned.
Error reports in the codalab browser but nothing reports in the minio browser. And there are also no errors reported on the back end of the server. So I don't know what the problem is。
Here are some infomation about the instances I ran.
The codalab url: http://119.3.178.155/
The Minio url: http://119.3.178.155:9000
MINIO_ACCESS_KEY:admin
MINIO_SECRET_KEY:admin123456
part of the .env of my instance:
DEFAULT_FILE_STORAGE=storages.backends.s3boto.S3BotoStorage
AWS_ACCESS_KEY_ID=admin
AWS_SECRET_ACCESS_KEY=admin123456
AWS_STORAGE_BUCKET_NAME=compl-public
AWS_STORAGE_PRIVATE_BUCKET_NAME=compl-private
AWS_S3_CALLING_FORMAT=boto.s3.connection.OrdinaryCallingFormat
AWS_S3_HOST=119.3.178.155:9000
AWS_QUERYSTRING_AUTH=False
S3DIRECT_REGION=us-east-1
S3_USE_SIGV4=True
Thank you a lot!
The text was updated successfully, but these errors were encountered: