Rasa X server forms not working

Hello,

I have deployed my chatbot on a google cloud server following the masterclass. Everything works locally for rasa X, but after deploying my forms are not executed. This is my output when I ran sudo docker-compose logs rasa-production I get this:

Attaching to rasa_rasa-production_1 rasa-production_1 | 2020-03-11 13:23:51 ERROR pika.adapters.utils.io_services_utils - Socket failed to connect: <socket.socket fd=22, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=(‘192.168.48.8’, 54830)>; error=111 (Connection refused) rasa-production_1 | 2020-03-11 13:23:51 ERROR pika.adapters.utils.connection_workflow - TCP Connection attempt failed: ConnectionRefusedError(111, ‘Connection refused’); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, ‘’, (‘192.168.48.2’, 5672)) rasa-production_1 | 2020-03-11 13:23:51 ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, ‘Connection refused’) rasa-production_1 | 2020-03-11 13:23:56 ERROR pika.adapters.utils.io_services_utils - Socket failed to connect: <socket.socket fd=21, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=(‘192.168.48.8’, 54852)>; error=111 (Connection refused) rasa-production_1 | 2020-03-11 13:23:56 ERROR pika.adapters.utils.connection_workflow - TCP Connection attempt failed: ConnectionRefusedError(111, ‘Connection refused’); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, ‘’, (‘192.168.48.2’, 5672)) rasa-production_1 | 2020-03-11 13:23:56 ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, ‘Connection refused’) rasa-production_1 | 2020-03-11 13:24:01 ERROR pika.adapters.utils.io_services_utils - Socket failed to connect: <socket.socket fd=21, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=(‘192.168.48.8’, 54862)>; error=111 (Connection refused) rasa-production_1 | 2020-03-11 13:24:01 ERROR pika.adapters.utils.connection_workflow - TCP Connection attempt failed: ConnectionRefusedError(111, ‘Connection refused’); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, ‘’, (‘192.168.48.2’, 5672)) rasa-production_1 | 2020-03-11 13:24:01 ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, ‘Connection refused’) rasa-production_1 | 2020-03-11 13:24:07 ERROR pika.adapters.utils.io_services_utils - Socket failed to connect: <socket.socket fd=21, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=(‘192.168.48.8’, 54868)>; error=111 (Connection refused) rasa-production_1 | 2020-03-11 13:24:07 ERROR pika.adapters.utils.connection_workflow - TCP Connection attempt failed: ConnectionRefusedError(111, ‘Connection refused’); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, ‘’, (‘192.168.48.2’, 5672)) rasa-production_1 | 2020-03-11 13:24:07 ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, ‘Connection refused’) rasa-production_1 | 2020-03-11 13:24:12 WARNING rasa.core.brokers.pika - Connecting to ‘rabbit’ failed with error ‘(403, ‘ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.’)’. Trying again. rasa-production_1 | 2020-03-11 13:24:12 ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorAMQPHandshakeError: ConnectionClosedByBroker: (403) ‘ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.’ rasa-production_1 | 2020-03-11 13:24:12 ERROR pika.adapters.utils.connection_workflow - AMQPConnectionWorkflow - reporting failure: AMQPConnectionWorkflowFailed: 5 exceptions in all; last exception - AMQPConnectorAMQPHandshakeError: ConnectionClosedByBroker: (403) ‘ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.’; first exception - AMQPConnectorSocketConnectError: ConnectionRefusedError(111, ‘Connection refused’) rasa-production_1 | 2020-03-11 13:24:12 ERROR pika.adapters.base_connection - Full-stack connection workflow failed: AMQPConnectionWorkflowFailed: 5 exceptions in all; last exception - AMQPConnectorAMQPHandshakeError: ConnectionClosedByBroker: (403) ‘ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.’; first exception - AMQPConnectorSocketConnectError: ConnectionRefusedError(111, ‘Connection refused’) rasa-production_1 | 2020-03-11 13:24:12 ERROR pika.adapters.base_connection - Self-initiated stack bring-up failed: AMQPConnectionWorkflowFailed: 5 exceptions in all; last exception - AMQPConnectorAMQPHandshakeError: ConnectionClosedByBroker: (403) ‘ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.’; first exception - AMQPConnectorSocketConnectError: ConnectionRefusedError(111, ‘Connection refused’) rasa-production_1 | 2020-03-11 13:26:45 WARNING rasa.core.brokers.pika - RabbitMQ channel has not been assigned. Adding message to list of unpublished messages and trying to publish them later. Current number of unpublished messages is 0. rasa-production_1 | 2020-03-11 13:26:45 WARNING rasa.core.brokers.pika - RabbitMQ channel has not been assigned. Adding message to list of unpublished messages and trying to publish them later. Current number of unpublished messages is 1. rasa-production_1 | 2020-03-11 13:26:52 ERROR rasa.core.processor - Encountered an exception while running action ‘naam_form’. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information. rasa-production_1 | 2020-03-11 13:26:52 ERROR rasa.core.processor - Encountered an exception while running action ‘fetch_profile’. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information. rasa-production_1 | 2020-03-11 13:26:52 ERROR rasa.core.processor - Encountered an exception while running action ‘ziekenhuis_form’. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.

Any suggestions to solve this?

1 Like

I get the same errors with AMQPConnectorSocketConnectError: ConnectionRefusedError

Did you check the logs of the action server? Do you have an action server configured?