RabbitMQ connection refused

Hi,

I’m trying to connect my Rasa Open Source bot to Rasa X. I’m following these steps but when i’m starting my Rasa bot I get this error :

rasa_1           | 2020-06-22 17:00:02 ERROR    pika.adapters.utils.io_services_utils  - Socket failed to connect: <socket.socket fd=22, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('127.0.0.1', 41584)>; error=111 (Connection refused)
rasa_1           | 2020-06-22 17:00:02 ERROR    pika.adapters.utils.connection_workflow  - TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('0.0.0.0', 5672))

Here is the result of docker-compose ps

         Name                       Command               State                           Ports
------------------------------------------------------------------------------------------------------------------------
rasa_app_1               ./entrypoint.sh run python ...   Up      5055/tcp
rasa_db_1                /opt/bitnami/scripts/postg ...   Up      5432/tcp
rasa_duckling_1          duckling-example-exe --no- ...   Up      8000/tcp
rasa_nginx_1             /opt/bitnami/entrypoint.sh ...   Up      0.0.0.0:50001->8080/tcp, 0.0.0.0:50002->8443/tcp
rasa_rabbit_1            /opt/bitnami/scripts/rabbi ...   Up      15672/tcp, 25672/tcp, 4369/tcp, 0.0.0.0:5672->5672/tcp
rasa_rasa-production_1   rasa x --no-prompt --produ ...   Up      5005/tcp
rasa_rasa-worker_1       rasa x --no-prompt --produ ...   Up      5005/tcp
rasa_rasa-x_1            sh -c user_id=$(id -u) &&  ...   Up      5002/tcp
rasa_redis_1             /opt/bitnami/scripts/redis ...   Up      6379/tcp

And here is the result of lsof -i -P -n | grep 5672 :

docker-pr 15678      root    4u  IPv6 46876110      0t0  TCP *:5672 (LISTEN)

The RabbitMQ is listening to the correct port, which seems to be open, but the Rasa bot can’t connect to it.

Thanks a lot for any help, i’m a bit lost ! :slight_smile:

Anyone ?

I’m feeling it’s the last issue before getting my bot to work properly, and I’m totally lost here :disappointed_relieved:

Sorry to find this so late - The PIKA errors generally aren’t a problem, what’s the end result you see? Can you open Rasa X and log in? Hope you’ve found a solution in the mean time.

were you able to make it work?