You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shouldn't the domain appears somewhere here? Like codabench.org instead of rabbit?
I get the following error:
[2022-03-28 14:38:15,413: ERROR/MainProcess] consumer: Cannot connect to amqp://26df2d3e-345e-472b-9d41-6e1ae58c4202:**@rabbit:5672/f561486f-803a-4612-ab79-d8fecb6badf1: failed to resolve broker hostname.
Trying again in 2.00 seconds...
[2022-03-28 14:38:17,438: ERROR/MainProcess] consumer: Cannot connect to amqp://26df2d3e-345e-472b-9d41-6e1ae58c4202:**@rabbit:5672/f561486f-803a-4612-ab79-d8fecb6badf1: failed to resolve broker hostname.
Trying again in 4.00 seconds...
Or, when I edit the broker URL by hand:
[2022-03-28 14:34:47,967: ERROR/MainProcess] consumer: Cannot connect to amqp://[...]:**@codabench.org:5672//: [Errno 99] Cannot assign requested address.
Trying again in 2.00 seconds...
[2022-03-28 14:34:58,097: ERROR/MainProcess] consumer: Cannot connect to amqp://[...]:**@codabench.org:5672//: [Errno 99] Cannot assign requested address.
Trying again in 4.00 seconds...
UPDATE: for a GPU worker, I tried to manually change rabbit to www.codabench.org
Still not working:
[2022-08-31 13:08:45,434: ERROR/MainProcess] consumer: Cannot connect to amqp://2e6b227b-c960-44c4-8104-505e9f45077f:**@www.codabench.org:5672/11401520-1b5e-4290-bc2c-6f17526c0343: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1108).
Trying again in 2.00 seconds...
EDIT: Finally, by removing BROKER_USE_SSL=True from the .env file, the worker is connected to the queue:
[2022-08-31 14:15:08,167: INFO/MainProcess] Connected to amqp://2e6b2[...]-c960-44c[...]:**@www.codabench.org:5672/1140152[...]
[2022-08-31 14:15:08,180: INFO/MainProcess] mingle: searching for neighbors
[2022-08-31 14:15:09,220: INFO/MainProcess] mingle: all alone
[2022-08-31 14:15:09,258: INFO/MainProcess] compute-worker@37ca1eecf812 ready.
Also we should look into the code that generates BROKER_URLs when making queues manually and have it use the DOMAIN_NAME as well. I'm curious if anyone thinks this is a bad idea? One potential issue is if rabbit doesn't publish it's ports it may be unreachable but I don't think that is the case as I see in the "rabbit" service ports are being published. This makes sense as rabbit is reachable from other VMs.
If you have a DOMAIN_NAME available, it should be a good idea to generate the BROKER_URL from it in the queue management page. For now, I have edited the Queue Management wiki page to indicate how the copy-pasted BROKER_URL should be modified ( codabench.org instead of rabbit ).
Activity
Didayolo commentedon Mar 28, 2022
Also, what is this for?
In .env:
In the setup command:
EDIT: simply create a folder and reference it as
HOST_DIRECTORY. This folder will be shared between the container and the host (compute worker).Didayolo commentedon Aug 31, 2022
UPDATE: for a GPU worker, I tried to manually change rabbit to www.codabench.org
Still not working:
EDIT: Finally, by removing
BROKER_USE_SSL=Truefrom the.envfile, the worker is connected to the queue:Didayolo commentedon Oct 5, 2022
@dtuantran @bbearce
What about this? It is working now, right?
bbearce commentedon Oct 5, 2022
Didayolo commentedon Oct 6, 2022
@bbearce
I was thinking of the setup of compute workers. Is it working fine now? For CPU and GPU? And by just following the wiki instructions?
Thanks
bbearce commentedon Oct 11, 2022
Didayolo commentedon Oct 11, 2022
I've improved the documentation.
Maybe the remaining problem is the BROKER URL generated by CodaBench:
bbearce commentedon Oct 11, 2022
So I agree. In docker-compose.yml under compute_worker service we see:
BROKER_URL=pyamqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@${RABBITMQ_HOST}:${RABBITMQ_PORT}//
I think it would be better if we used:
BROKER_URL=pyamqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@${DOMAIN_NAME}:${RABBITMQ_PORT}//
Also we should look into the code that generates BROKER_URLs when making queues manually and have it use the DOMAIN_NAME as well. I'm curious if anyone thinks this is a bad idea? One potential issue is if rabbit doesn't publish it's ports it may be unreachable but I don't think that is the case as I see in the "rabbit" service ports are being published. This makes sense as rabbit is reachable from other VMs.
acletournel commentedon Oct 12, 2022
If you have a DOMAIN_NAME available, it should be a good idea to generate the BROKER_URL from it in the queue management page. For now, I have edited the Queue Management wiki page to indicate how the copy-pasted BROKER_URL should be modified (
codabench.orginstead ofrabbit).Didayolo commentedon Oct 12, 2022
Fix : #728