Hi nik, i am using binding bot html file with flask api, i tried above code, both rasa & action server are running, but not the flask api, please help me, how i can include flask app in dockerfile and docker-compose
First of all, the way you’re aiming for is impractical (but it can also be done). However, you can run your rasa + GUI using docker, and you can easily produce the link about the mobile app and share while using ngrok. There is only one drawback: the link won’t function till your system is open.
@nik202 please find the html file, & flask app, for front ui, how to add this flask app to above Dockerfile templates???
@gayathrik ok.
Step 1 If you are able to create the Rasa and Rasa Actions Docker file its cool.
Step 2 You need to create the docker image for your flask application as shown in the mentioned link:
Once you created this, you will have 3 containers 2 for Rasa and 1 for Flask.
Hope this will help you or if you need further issues, If I have any bandwidth we can discuss over a google meet call.
Cheers.
Hi @nik202, GoodDay
I have deployed my rasa open source project into linux.
How to define all images in docker-compose.yml, Dockerfile and endpoints.yml file for dockerizing the rasa project.
I have created all the images such as rasa, database, redis, nginx, duckling, but while creating action_server facing issue with ssl related and below are the logs.
rasa_1 | 2024-03-29 09:14:53 ERROR rasa.core.actions.action - F ailed to run custom action ‘action_jokes’. Couldn’t connect to the server at 'http://192.168.1.*:5055/webhook’. Is the server running? Error: Cannot con nect to host 192.168.1.236:5055 ssl:default [Connection timed out] rasa_1 | 2024-03-29 09:14:53 ERROR rasa.core.processor - Encoun tered an exception while running action ‘action_jokes’.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information. rasa_1 | Traceback (most recent call last): rasa_1 | File “/opt/venv/lib/python3.10/site-packages/aiohttp/con nector.py”, line 980, in _wrap_create_connection rasa_1 | return await self._loop.create_connection(args, kwa rgs) # type: ignore[return-value] # noqa rasa_1 | File “uvloop/loop.pyx”, line 2039, in create_connection rasa_1 | File “uvloop/loop.pyx”, line 2016, in uvloop.loop.Loop.c reate_connection rasa_1 | TimeoutError: [Errno 110] Connection timed out rasa_1 | rasa_1 | The above exception was the direct cause of the following exception: rasa_1 | rasa_1 | Traceback (most recent call last): rasa_1 | File “/opt/venv/lib/python3.10/site-packages/rasa/core/a ctions/action.py”, line 788, in run rasa_1 | response: Any = await self.action_endpoint.request( rasa_1 | File “/opt/venv/lib/python3.10/site-packages/rasa/utils/ endpoints.py”, line 165, in request rasa_1 | async with session.request( rasa_1 | File “/opt/venv/lib/python3.10/site-packages/aiohttp/cli ent.py”, line 1141, in aenter rasa_1 | self._resp = await self._coro rasa_1 | File “/opt/venv/lib/python3.10/site-packages/aiohttp/cli ent.py”, line 536, in _request rasa_1 | conn = await self._connector.connect( rasa_1 | File “/opt/venv/lib/python3.10/site-packages/aiohttp/con nector.py”, line 540, in connect rasa_1 | proto = await self._create_connection(req, traces, tim eout) rasa_1 | File “/opt/venv/lib/python3.10/site-packages/aiohttp/con nector.py”, line 901, in _create_connection rasa_1 | _, proto = await self._create_direct_connection(req, t races, timeout) rasa_1 | File “/opt/venv/lib/python3.10/site-packages/aiohttp/con nector.py”, line 1206, in _create_direct_connection rasa_1 | raise last_exc rasa_1 | File “/opt/venv/lib/python3.10/site-packages/aiohttp/con nector.py”, line 1175, in _create_direct_connection rasa_1 | transp, proto = await self._wrap_create_connection( rasa_1 | File “/opt/venv/lib/python3.10/site-packages/aiohttp/con nector.py”, line 988, in _wrap_create_connection rasa_1 | raise client_error(req.connection_key, exc) from exc rasa_1 | aiohttp.client_exceptions.ClientConnectorError: Cannot con nect to host 192.168.1.:5055 ssl:default [Connection timed out] rasa_1 | rasa_1 | During handling of the above exception, another exception occurred: rasa_1 | rasa_1 | Traceback (most recent call last): rasa_1 | File “/opt/venv/lib/python3.10/site-packages/rasa/core/p rocessor.py”, line 957, in _run_action rasa_1 | events = await action.run( rasa_1 | File “/opt/venv/lib/python3.10/site-packages/rasa/core/a ctions/action.py”, line 829, in run rasa_1 | raise RasaException( rasa_1 | rasa.shared.exceptions.RasaException: Failed to execute cu stom action ‘action_jokes’. Couldn’t connect to the server at 'http://192.168 .1.2:5055/webhook.
Thanks in advance
@boithi for mentioning all the images in docker-compose ref to docker website it’s simple and I guess you already did that.
As per your logs. The issue is with action_jokes maybe the action is missing in domain.yml or in action.py file check you code again that you mentioned all the actions and then spin the docker container using docker-compose up -d
Good luck
Its not issue with the actions. I have tried in local without docker, the actions are working fine.