Hello!
Can you share with us yours docker files? and the endpoint.yml?
If you prefer, you can fallow nik202 steps on this comment
Dockerizing my rasa chatbot application that has botfront - #11 by nik202
Dockerfile (89 Bytes) endpoints.yml (1.4 KB)
@itsjhonny These are all commands I ran. docker run -v “%cd%”:/app rasa/rasa:3.0.0-full train docker build . -t rasa/rasa-sdk:3.0.0 docker network create my-project docker run -d -v “%cd%”/actions:/app/actions --net my-project --name action-server rasa/rasa-sdk:3.0.0 docker run -it -v “%cd%”:/app -p 5005:5005 --net my-project rasa/rasa:3.0.0-full shell
Can you make docker ps
to check the action server container is running?
and docker network ls
. to list all network?
To be honest, i prefere to user docker with docker-compose
@Devershi As from the last docker ps
output I can not see the Rasa server. I can only see the Rasa Action Server image and this is the main issue.
running rasa server image:
docker run -v $(pwd):/app rasa/rasa:3.1.0-full train --domain domain.yml --data data --out models
running rasa action server image:
docker run -d -v $(pwd)/actions:/app/actions --net my-project --name action-server rasa/rasa-sdk:3.1.1
I’d strongly suggest to read every steps and try follow as mentioned, need to read everything. If you just started exploring docker and docker-compose, I will suggest get some basic idea of its commands and working.
I am sure, you just missing some step and wish you will sort this out soon. Good Luck!
@nik202 Hello I tried again from start.
Did I miss any steps I am trying to follow the steps can you please help me out.@Devershi If I honestly tell you, the process you are using is more complex and you need to run these steps again and again if you update a single code. But it’s your learning and I’m just suggesting you.
Rather than I suggest seeing my above-mentioned post i.e Dockerizing my rasa chatbot application that has botfront - #11 by nik202 and try to run it. In this only single command need to be run every time you make an update. (Just my honest suggestion, rest I am helping you in this issue too)
Observation: What this %cd% is this pwd? check how you can pass the path of window in docker as my both machines are Mac and ubuntu.
Let me find one video tutorial for your reference, hope that will help you more in a better way.
- HOW TO BUILD A CHATBOT WITH DOCKER | RASA - YouTube | HOW TO CUSTOMIZE THE CHATBOT BUILD WITH DOCKER | RASA - YouTube
- HOW TO LINK ACTION SERVER AND RASA SERVER USING DOCKER - YouTube
These tutorial based on 2.x and you can change the image with 3.x and you can easily update.
@Devershi Please see these video and also check other docker related videos, just I am saying seeing not asking you to implement and cross-check what you are doing with your steps and then follow? Go it?
Yes or No?
Tip: Its working on ubuntu but you can also run these command on windows and Mac too.
Ok surely @nik202 I am following your suggested post right now.
Yes Alright
@Devershi great and good luck. If you need further help tag me, then only I come here. Ciao.
Yes %cd% is same as pwd in windows
Ok
Hi @nik202 I removed all the docker containers and images from my docker desktop and tried again with same commands and somehow the issue got resolved. I don’t know the reason but for now the actions are working. Thank you.
@Devershi I know…congrats, please close this thread as a solution.
Hello @nik202 can you plz help me out here, I followed your shared post to use docker compose and after running it I am facing this error in action server
these were my files for the same Docker file 1 FROM rasa/rasa-sdk:3.1.1WORKDIR /app
COPY requirements.txt requirements.txt
USER root
RUN pip install -r requirements.txt
EXPOSE 5055
USER 1001
Docker file 2 FROM rasa/rasa:3.1.0
WORKDIR ‘/app’
COPY . /app
COPY actions/requirements.txt ./
USER root
RUN pip install -r requirements.txt
RUN rasa train
VOLUME /app/models
CMD [ “run”,“-m”,“/app/models”,“–enable-api”,“–cors”,“*”,“–debug” ,“–endpoints”, “endpoints.yml”, “–log-file”, “out.log”, “–debug”]
EXPOSE 5005
Docker-compose.yml version: ‘3’
services:
rasa:
container_name: "rasa_server"
user: root
build:
context: .
volumes:
- "./:/app"
ports:
- "5005:5005"
action_server:
container_name: "action_server"
build:
context: actions
volumes:
- ./actions:/app/actions
- ./data:/app/data
ports:
- 5055:5055
What am I doing wrong here?
@Devershi sure can you delete all the images and try to run it again?
@Devershi where is your ‘/.local’ file in which folder?
@Devershi I will highly recommend to cross check with my post : Dockerizing my rasa chatbot application that has botfront - #11 by nik202
Good Luck!
@nik202 I don’t understand which file is local i dont have any such file
I deleted all images and tried again giving same error