Repository navigation
Closed
Labels
Description
Several issues are encountered when following this installation guide: https://github.com/codalab/codabench/wiki/Codabench-Installation
1. Email confirmation
- Improve the documentation.
When deploying a local instance, as the email server is not configured by default, it is tricky to validate user accounts.
One work-around is to:
- Find the confirmation link in the Django logs using
docker-compose logs -f django - Replace
example.combylocalhostto open it on the browser.
(Another work-around is to manage the account by hand in the Django container.)
2. Problem with storage
- We fixed MinIO buckets creation (Wait until MinIO is up before proceeding #783)
- We need to fix the policy setup to have directly the "read/write" policy on the public bucket (to fix the issue with logos not displayed). The fix: Use "mc anonymous set" instead of "mc policy set" for public bucket policy #786
Line 76 in 6bf601a
| /usr/bin/mc policy set download minio_docker/$AWS_STORAGE_BUCKET_NAME; |
3. Step "run the following commands"
Maybe we just let it as it is.
At the end of the guide, we manually create the database and collect the static resources.
Can't this be handled directly by the docker-compose up -d command?
4. Endpoint URL
- Document this troubleshooting.
Some people (@bbearce) have to manually change the endpoint URL to have it working:
docker-compose logs -f minio- Grab first of these:
minio_1 | Browser Access:
minio_1 | http://172.27.0.5:9000 http://127.0.0.1:9000
- Set
AWS_S3_ENDPOINT_URL=http://172.27.0.5:9000
Activity
Didayolo commentedon Feb 23, 2023
About the storage problem, on my side the buckets creation failed.
At the beginning of the logs:
When uploading a bundle:
When login to MinIO at
localhost:9000and creating the buckets by hand, it then works: I am able to upload a bundle (but the competition logo is missing).Note: this test was done on MacOS
acletournel commentedon Mar 10, 2023
I have modified the wiki page with a few more hints for .env file, minio bucket policy configuration (the reason for logos not being dispayed) and the sequence of the different installation steps. @Didayolo @ihsaan-ullah : please, can you try again your local installation settings following these instructions ?
Didayolo commentedon Mar 14, 2023
@acletournel
I see you have edited the following page:
https://github.com/codalab/codabench/wiki/How-to-deploy-Codabench-on-your-server
While I was working on improving the basic installation guide:
https://github.com/codalab/codabench/wiki/Codabench-Installation
The first one is about deploying a "production" environment, while the second is a simple local installation guide.
Maybe some information should be merged in order to have a complete setup guide. I'll have a look at it.
Didayolo commentedon Mar 14, 2023
@acletournel
Please share your Flower error logs here.
acletournel commentedon Mar 15, 2023
While working on local codabench instances, I found out that my flower docker container is unstable and continuously restarts:
I am using the current codabench/develop branch
dockers logs show: ImportError:
cannot import name 'Command' from 'celery.bin.base' (/usr/local/lib/python3.11/site-packages/celery/bin/base.py)which seems to be incompatibility with a new celery 5 version: mher/flower#1031
Flower is 0.9.3 according to Dockerfile.flower and celery is 4.2.1 according to requirements.txt ?
Codabench-test doesn't have the problem, but runs a flower dockerhub image mehr/flower and not a local built one.
Codabench-prod doesn't have the problem and run a local built image competitions-v2_flower.
Didayolo commentedon Mar 16, 2023
@bbearce @acletournel
Some news. I realized that I'm able to access MinIO from
http://localhost:9000but not fromhttp://minio:9000.However, as you can see in the "create buckets" logs, Codabench tries to access it through
http://minio:9000:This is not related to the
AWS_S3_ENDPOINT_URLdefined in.envfile. It is actually hard coded indocker-compose.ymlfile:codabench/docker-compose.yml
Line 73 in 46f68ee
I guess there are two solutions:
docker-compose.ymlconfigminiotolocalhostin my local configDidayolo commentedon Mar 16, 2023
I think I found a fix!
Didayolo commentedon Mar 21, 2023
I've added more information on the part "advanced configuration" of the guide:
https://github.com/codalab/codabench/wiki/Codabench-Installation