Is it possible to use rasa x as a model server?

Hi everyone,

I have deploy a Rasa x instance, following the quick installation guide. Also have my bot deployed (rasa server + actions) in another server.

I wonder if I can fetch the models created with the Rasa-X instance, so to be able to use it in my bot server.

So something like: In the endpoints.yml file from my bot

models:
  url: http://<my-Rasa-X-server-address.com>/models/default@latest
  wait_time_between_pulls: none

And if its not possible, what will be a good way to get the models from server to server?

Thanks

H @llschuster, do you know that when you deploy the rasa x instance, the bot is also deployed there! The rasa-production container acts as the rasa server and the app container acts as the action server. This is why you provide e.g. credentials to the rasa x setup.

Hi @erohmensing, yeah I didn’t saw all the services that are part of the installation. many thanks for answering.

Now I’m facing another problem, while trying to connect via socket.io the connection is refused.

I have cors policy set to “*”

ports 80 and 443 are open

Logs from docker-compose logs rasa-x

Attaching to rasa_rasa-x_1 rasa-x_1 | ERROR:pika.adapters.utils.io_services_utils:Socket failed to connect: <socket.socket fd=8, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('172.21.0.6', 53646)>; error=111 (Connection refused) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('172.21.0.2', 5672)) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused') rasa-x_1 | INFO:alembic.runtime.migration:Context impl PostgresqlImpl. rasa-x_1 | INFO:alembic.runtime.migration:Will assume transactional DDL. rasa-x_1 | Starting Rasa X server... 🚀 rasa-x_1 | /usr/local/lib/python3.6/site-packages/rasax/community/server.py:63: RuntimeWarning: coroutine 'ModelService.mark_latest_as_production' was never awaited rasa-x_1 | model_service.mark_latest_as_production() rasa-x_1 | ERROR:pika.adapters.utils.io_services_utils:Socket failed to connect: <socket.socket fd=8, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('172.21.0.6', 53658)>; error=111 (Connection refused) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('172.21.0.2', 5672)) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused') rasa-x_1 | ERROR:pika.adapters.utils.io_services_utils:Socket failed to connect: <socket.socket fd=8, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('172.21.0.6', 53664)>; error=111 (Connection refused) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('172.21.0.2', 5672)) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused') rasa-x_1 | 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-x_1 | INFO:rasax.community.services.event_service:Start consuming 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 5s rasa-x_1 | Traceback (most recent call last): rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/rasax/community/services/event_service.py", line 1007, in continuously_consume rasa-x_1 | consumer.consume() rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/rasax/community/services/event_service.py", line 929, in consume rasa-x_1 | self.channel.start_consuming() rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/pika/adapters/blocking_connection.py", line 1857, in start_consuming rasa-x_1 | self._process_data_events(time_limit=None) rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/pika/adapters/blocking_connection.py", line 2018, in _process_data_events rasa-x_1 | self.connection.process_data_events(time_limit=time_limit) rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/pika/adapters/blocking_connection.py", line 826, in process_data_events rasa-x_1 | self._flush_output(common_terminator) rasa-x_1 | File "/usr/local/lib/python3.6/site-packages/pika/adapters/blocking_connection.py", line 523, 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 | ERROR:pika.adapters.utils.io_services_utils:Socket failed to connect: <socket.socket fd=8, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('172.21.0.6', 53692)>; error=111 (Connection refused) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('172.21.0.2', 5672)) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused') rasa-x_1 | ERROR:pika.adapters.utils.io_services_utils:Socket failed to connect: <socket.socket fd=8, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('172.21.0.6', 53694)>; error=111 (Connection refused) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('172.21.0.2', 5672)) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused') rasa-x_1 | ERROR:pika.adapters.utils.io_services_utils:Socket failed to connect: <socket.socket fd=8, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('172.21.0.6', 53696)>; error=111 (Connection refused) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('172.21.0.2', 5672)) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused') rasa-x_1 | ERROR:pika.adapters.utils.io_services_utils:Socket failed to connect: <socket.socket fd=8, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('172.21.0.6', 53698)>; error=111 (Connection refused) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('172.21.0.2', 5672)) rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused') rasa-x_1 | INFO:rasax.community.services.event_service:Start consuming pika host 'rabbit'