Problem to start a conversation

Hello,

I want to set a better title for the topic, but I don’t know exactly the main source of the problem. I’m trying to test Rasa X from the begging. I follow the Get Started instruction to create the system in Docker for Windows 10. All containers goes up and the system is accessable in locahost. I can create NLU, train and responses (NOTE: Add some feedback in the first field for the invalid input, like “Response ‘sdfdsfsdf’ does not begin with ‘utter_’ prefix.”). To this point, everything is fine.

When I go the “Talk to the bot” tab, the bot never process after my message. It get stuck. I was expecting to be able to do this: https://youtu.be/POcgUi34Aow?t=166

Pressing F12 there is this message:

{“version”:“0.31.5”,“status”:“failure”,“message”:“Failed to predict the next action for conversation_id ‘aca60c01f58f40448a49b7a5aa8abb21’.”,“reason”:“ActionPredictionFailed”,“details”:“500, message=‘Internal Server Error’, url=URL(‘http://rasa-production:5005/conversations/aca60c01f58f40448a49b7a5aa8abb21/predict?include_events=ALL&token=qwrjdJfYyiePrKjSV5PuFYgNUOPGc56JgsrcOVmnz8FLlfbL’)”,“help”:null,“code”:400}

In docker, it gives me this log:

`rasa-x_1 | Starting Rasa X server... ?`

`rasa-x_1 | INFO:rasax.community.services.event_consumers.pika_consumer:Start consuming queue 'rasa_production_events' on pika host 'rabbit'.`

`rasa-x_1 | ERROR:pika.adapters.blocking_connection:Unexpected connection close detected: ConnectionClosedByBroker: (320) "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'"`

`rasa-x_1 | ERROR:rasax.community.services.event_service:Caught an exception while consuming events. Will retry in 5 s.`

`rasa-x_1 | Traceback (most recent call last):`

`rasa-x_1 | File "/usr/local/lib/python3.7/site-packages/rasax/community/services/event_service.py", line 1667, in continuously_consume`

`rasa-x_1 | consumer.consume()`

`rasa-x_1 | File "/usr/local/lib/python3.7/site-packages/rasax/community/services/event_consumers/pika_consumer.py", line 180, in consume`

`rasa-x_1 | self.channel.start_consuming()`

`rasa-x_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 1866, in start_consuming`

`rasa-x_1 | self._process_data_events(time_limit=None)`

`rasa-x_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 2027, in _process_data_events`

`rasa-x_1 | self.connection.process_data_events(time_limit=time_limit)`

`rasa-x_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 825, in process_data_events`

`rasa-x_1 | self._flush_output(common_terminator)`

`rasa-x_1 | File "/usr/local/lib/python3.7/site-packages/pika/adapters/blocking_connection.py", line 522, in _flush_output`

`rasa-x_1 | raise self._closed_result.value.error`

`rasa-x_1 | pika.exceptions.ConnectionClosedByBroker: (320, "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'")`

`rasa-x_1 | WARNING:rasax.community.telemetry:An error occured when trying to send the telemetry event: HTTPSConnectionPool(host='api.segment.io', port=443): Max retries exceeded with url: /v1/track (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff91d086a90>, 'Connection to api.segment.io timed out. (connect timeout=2)'))`

`rasa-x_1 | INFO:rasax.community.services.event_consumers.pika_consumer:Start consuming queue 'rasa_production_events' on pika host 'rabbit'.`

`rasa-x_1 | WARNING:rasax.community.telemetry:An error occured when trying to send the telemetry event: HTTPSConnectionPool(host='api.segment.io', port=443): Max retries exceeded with url: /v1/track (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff91d091850>, 'Connection to api.segment.io timed out. (connect timeout=2)'))`

`rasa-worker_1 | 2020-08-11 19:55:16 ERROR pika.adapters.utils.io_services_utils - Socket failed to connect: <socket.socket fd=21, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.48.8', 39268)>; error=111 (Connection refused)`

`rasa-worker_1 | 2020-08-11 19:55:16 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-worker_1 | 2020-08-11 19:55:16 ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused')`

`rasa-worker_1 | 2020-08-11 19:55:21 ERROR pika.adapters.utils.io_services_utils - Socket failed to connect: <socket.socket fd=25, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.48.8', 39292)>; error=111 (Connection refused)`

`rasa-worker_1 | 2020-08-11 19:55:21 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-worker_1 | 2020-08-11 19:55:21 ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused')`

`rasa-worker_1 | 2020-08-11 19:55:26 ERROR pika.adapters.utils.io_services_utils - Socket failed to connect: <socket.socket fd=25, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.48.8', 39306)>; error=111 (Connection refused)`

`rasa-worker_1 | 2020-08-11 19:55:26 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-worker_1 | 2020-08-11 19:55:26 ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused')`


`rasa-production_1 | 2020-08-11 19:55:16 ERROR pika.adapters.utils.io_services_utils - Socket failed to connect: <socket.socket fd=18, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.48.7', 58624)>; error=111 (Connection refused)`

`rasa-production_1 | 2020-08-11 19:55:16 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-08-11 19:55:16 ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused')`

`rasa-production_1 | 2020-08-11 19:55:21 ERROR pika.adapters.utils.io_services_utils - Socket failed to connect: <socket.socket fd=25, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.48.7', 58648)>; error=111 (Connection refused)`

`rasa-production_1 | 2020-08-11 19:55:21 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-08-11 19:55:21 ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused')`

`rasa-production_1 | 2020-08-11 19:55:26 ERROR pika.adapters.utils.io_services_utils - Socket failed to connect: <socket.socket fd=25, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.48.7', 58662)>; error=111 (Connection refused)`

`rasa-production_1 | 2020-08-11 19:55:26 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-08-11 19:55:26 ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused')`

`rasa-production_1 | Starting Rasa X in production mode... ?`

`rasa-production_1 | [2020-08-11 20:01:38 +0000] [1] [ERROR] Exception occurred while handling uri: 'http://rasa-production:5005/webhooks/rasa/webhook'`

`rasa-production_1 | Traceback (most recent call last):`

`rasa-production_1 | File "/opt/venv/lib/python3.7/site-packages/sanic/app.py", line 940, in handle_request`

`rasa-production_1 | handler, args, kwargs, uri, name = self.router.get(request)`

`rasa-production_1 | File "/opt/venv/lib/python3.7/site-packages/sanic/router.py", line 411, in get`

`rasa-production_1 | return self._get(request.path, request.method, "")`

`rasa-production_1 | File "/opt/venv/lib/python3.7/site-packages/sanic/router.py", line 475, in _get`

`rasa-production_1 | raise NotFound("Requested URL {} not found".format(url))`

`rasa-production_1 | sanic.exceptions.NotFound: Requested URL /webhooks/rasa/webhook not found`

Informations about the project: .env:

RASA_X_VERSION=0.31.5 RASA_VERSION=1.10.5 RASA_TOKEN=qwrjdJfYyiePrKjSV5PuFYgNUOPGc56JgsrcOVmnz8FLlfbL RASA_X_TOKEN=aWHz5FgYzMLoSMxao3tmrGxKGEGC9sdjBgH3LiAn17elDkTD PASSWORD_SALT=SU0Wf8Uklvcx0JO30vdF7BQCMc2FRxSk5CED8kQ19KYXCmU6 JWT_SECRET=KvRZS1gXMdUBLOhFP2zYeHflyxm3806LCAVBdbjVbE39HTho RABBITMQ_PASSWORD=MCWWwPh0dPkY5goN36RaTaD9JMGvNBRtsl6cRLXqRgzIqOe4 DB_PASSWORD=8N5d3ZBl2JFQ4Dy1hLPxuPI0AbcrL9HAzdIAGl7YUDVB8k7Y REDIS_PASSWORD=hZQnPdo66hDzNF5OMI3HdAZp9z3kPdGHXilh6SZw0b7xiTin RASA_X_DEMO_VERSION=0.31.5

If any information is needed, please ask. Best regards,

Same problem here. Any luck resolving this issue? I used docker compose tutorial for setting up.

1 Like