Skip to content

Fix broker URL - #728

Closed
Didayolo wants to merge 3 commits into
developfrom
broker-url-fix
Closed

Didayolo wants to merge 3 commits into
developfrom
broker-url-fix

Conversation

@Didayolo

@Didayolo Didayolo commented Oct 12, 2022 •

Copy link
Copy Markdown
Member

Fix for #690

There are also the following changes, not shown for some reason*:

https://github.com/codalab/codabench/pull/726/files

*I have done a merge and revert by mistake, so the history thinks these commits are already merged.


Error in production when trying to create a queue, apparently due to the firewall configuration:

requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='www.codabench.org', port=15672): Max retries exceeded with url: /api/users/26df2d3e-345e-472b-9d41-6e1ae58c4202 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fe68516c4f0>, 'Connection to www.codabench.org timed out. (connect timeout=5)'))

Summary of changes:

  • Added "DOMAIN_NAME" variable in settings/base.py
  • RABBITMQ_HOST -> DOMAIN_NAME in queues/models.py
  • RABBITMQ_HOST -> DOMAIN_NAME in docker-compose.yml not sure if needed?
  • RABBITMQ_HOST -> DOMAIN_NAME in queues/rabbit.py not sure if needed?

@Didayolo Didayolo changed the title Update docker-compose.yml Fix broker URL Oct 13, 2022
@Didayolo

Copy link
Copy Markdown
Member Author

TODO:

  • Default value of DOMAIN_NAME to localhost
  • In queues/models.py, if localhost then it becomes RabbitMQ host?

@Didayolo

Copy link
Copy Markdown
Member Author

Another TODO:

New pull request from scratch

@Didayolo Didayolo closed this Oct 13, 2022
@Didayolo
Didayolo deleted the broker-url-fix branch October 13, 2022 15:04
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

Successfully merging this pull request may close these issues.

1 participant