# Rasa Actions Server Docker Issue

**URL:** <https://forum.rasa.com/t/rasa-actions-server-docker-issue/48899>\
**Category:** Rasa Open Source\
**Created:** [November 1, 2021, 9:44am UTC](https://forum.rasa.com/t/rasa-actions-server-docker-issue/48899 "2021-11-01T09:44:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronniegoei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ronniegoei/32/17738_2.png) [@ronniegoei](https://forum.rasa.com/u/ronniegoei)\
**Post date:** [November 1, 2021, 9:44am UTC](https://forum.rasa.com/t/rasa-actions-server-docker-issue/48899/1 "2021-11-01T09:44:46Z")

</div>

Greetings

I have followed the Rasa Action Server tutorial from this link:

> **[Building a Rasa Assistant in Docker](https://rasa.com/docs/rasa/docker/building-in-docker/)**
>
> Learn how to build a Rasa assistant in Docker.

it run perfectly, the custom actions can return text (the chuck norris’s joke)

Then i did replicate these to my own work and the “action\_server” docker container keep exited (code 1)

I am using rasa and rasa-sdk version 2.8.1, tried 2.8.12-full but still failed.

Do i have to provide the “Dockerfile” file like in this tutorial?

[![](https://img.youtube.com/vi/_UwEbGVjwEg/maxresdefault.jpg "Understanding Rasa Deployments - Intro to Docker") ](https://www.youtube.com/watch?v=_UwEbGVjwEg)

Thanks for the help

---

<div class="post-metadata">

**Author:** ![InnoOmnia](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/innoomnia/32/17290_2.png) [@InnoOmnia](https://forum.rasa.com/u/InnoOmnia)\
**Post date:** [November 1, 2021, 11:14am UTC](https://forum.rasa.com/t/rasa-actions-server-docker-issue/48899/2 "2021-11-01T11:14:43Z")

</div>

Can you share your Docker commands and command that causes error code?

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [November 1, 2021, 11:38am UTC](https://forum.rasa.com/t/rasa-actions-server-docker-issue/48899/3 "2021-11-01T11:38:36Z")

</div>

@ronniegoei make sure you have mention action image name in the below code.

mention image name what ever you had mention in the image.

```auto
action_endpoint:
  url: 'http://action_server:5055/webhook'

```

OR please share the docker file with us.

```auto

```

---

<div class="post-metadata">

**Author:** ![ronniegoei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ronniegoei/32/17738_2.png) [@ronniegoei](https://forum.rasa.com/u/ronniegoei)\
**Post date:** [November 1, 2021, 1:16pm UTC](https://forum.rasa.com/t/rasa-actions-server-docker-issue/48899/4 "2021-11-01T13:16:48Z")

</div>

Thanks for the responses

@nik202I have mentioned it on endpoint.yml

action\_endpoint: url: “[http://action-server:5055/webhook](http://action-server:5055/webhook)”

[actions.py](https://forum.rasa.com/uploads/short-url/66eLj9nUDP8PnKjf8mtfgtp8O7Z.py) (3.0 KB) Uploading: **init**.py…[actions.cpython-38.pyc](https://forum.rasa.com/uploads/short-url/1aaqu8AyHR1VKVnHLDMypgRZQ4d.pyc) (2.8 KB) [**init**.cpython-38.pyc|attachment](https://forum.rasa.com/uploads/short-url/ruXRHwPRFVfJISxu4hKo2zVB4MJ.pyc) (123 Bytes) [nlu.yml](https://forum.rasa.com/uploads/short-url/ng7glB8NwqaRfH3IET8xKBeVzUI.yml) (1.7 KB) [rules.yml](https://forum.rasa.com/uploads/short-url/zVHPgUeaaSfQAhT3HMk1RoSgtch.yml) (534 Bytes) [stories.yml](https://forum.rasa.com/uploads/short-url/q8UqEthaBRpaMG6oVIBRT8Zc45Z.yml) (744 Bytes) [config.yml](https://forum.rasa.com/uploads/short-url/6kq0ZJK7hlfcQ7ilSaSmfj4j4sx.yml) (1.8 KB) [credentials.yml](https://forum.rasa.com/uploads/short-url/2hpg9hENRHgGnbuPOhmWjTRRT19.yml) (938 Bytes) [Dockerfile](https://forum.rasa.com/uploads/short-url/l0JKbd7AeKxCctTBSGxg4qYRaOL) (186 Bytes) [domain.yml](https://forum.rasa.com/uploads/short-url/AqTnaQtjhA3GVXagPE7ISnNrdrL.yml) (3.1 KB) [endpoints.yml](https://forum.rasa.com/uploads/short-url/vumlsmc3Wkgbrlcu9t22GOUyPYs.yml) (1.4 KB)

Are RASA implement case sensitive text?

Thank you very much

---

<div class="post-metadata">

**Author:** ![ronniegoei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ronniegoei/32/17738_2.png) [@ronniegoei](https://forum.rasa.com/u/ronniegoei)\
**Post date:** [November 1, 2021, 1:17pm UTC](https://forum.rasa.com/t/rasa-actions-server-docker-issue/48899/5 "2021-11-01T13:17:48Z")

</div>

@InnoOmnia three steps that i have done:

1. docker network create action-connect
2. docker run -d -v C:\Users\USER\rasa-env\Docker\actions:/app/actions --net action-connect --name action-server rasa/rasa-sdk:2.8.1
3. docker run -it -v C:\Users\USER\rasa-env\Docker:/app -p 5005:5005 --net action-connect rasa/rasa:2.8.1 shell

Thank you 😀

---

<div class="post-metadata">

**Author:** ![InnoOmnia](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/innoomnia/32/17290_2.png) [@InnoOmnia](https://forum.rasa.com/u/InnoOmnia)\
**Post date:** [November 1, 2021, 1:35pm UTC](https://forum.rasa.com/t/rasa-actions-server-docker-issue/48899/6 "2021-11-01T13:35:22Z")

</div>

ok, here is my steps, some differences although.

This is same

> docker network create action-link

This is same, except version

> docker run -d -v $(pwd)/actions:/app/actions --net action-link --name action-server-prod rasa/rasa-sdk:2.2.0

Same, but I use the name and set the user ID, also I have --rm but that makes no difference and lastly I have --debug, again, not affecting here

> docker run --name=pilleri --user 1003 -it --rm -v $(pwd):/app -p 5013:5005 --net action-link rasa/rasa:2.2.0-full shell --debug

But did you make first action server container? Here is my **Dockerfile**

```auto
#Extend the official Rasa SDK image
FROM rasa/rasa-sdk:2.2.0
#COPY * /app/

# Use subdirectory as working directory
WORKDIR /app

# Copy any additional custom requirements, if necessary (uncomment next line)

# Change back to root user to install dependencies
USER root

# Install extra requirements for actions code, if necessary (uncomment next line)

# Copy actions folder to working directory
COPY ./actions /app/actions

# Install extra requirements for actions code, if necessary (uncomment next line)
RUN python -m pip install --upgrade pip
RUN pip install --no-cache-dir typing_extensions

# By best practices, don't run the code with root user
USER 1003

```

and then command

> docker build . -t rasa-sdk:2.2.0

---

<div class="post-metadata">

**Author:** ![ronniegoei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ronniegoei/32/17738_2.png) [@ronniegoei](https://forum.rasa.com/u/ronniegoei)\
**Post date:** [November 2, 2021, 1:43am UTC](https://forum.rasa.com/t/rasa-actions-server-docker-issue/48899/7 "2021-11-02T01:43:06Z")

</div>

I have followed your steps including the dockerfile and it still showing “exited(1)” on docker hub

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/c/a/ca9f14e707933252ea23d499dcef071c157c157d.png)

I do write “action\_serverr” on purpose to distinguish this from other, are RASA implement case-sensitive input? (i have tried with “action\_server” as well but still no luck)

Edited: I have tried to use 2.2.0 rasa-sdk version but still showing exited(1) Mind to share your endpoints.yml on action\_endpoint section?

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/4/f/4f3192edafadccf077d9deff86e6d0b273a363ba.png)

---

<div class="post-metadata">

**Author:** ![InnoOmnia](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/innoomnia/32/17290_2.png) [@InnoOmnia](https://forum.rasa.com/u/InnoOmnia)\
**Post date:** [November 2, 2021, 6:48am UTC](https://forum.rasa.com/t/rasa-actions-server-docker-issue/48899/8 "2021-11-02T06:48:48Z")

</div>

sure, here it is, same

```auto
action_endpoint:
  url: http://action-server-prod:5055/webhook

```

What you are talking about **Docker hub** and error there? What is your environment? I’m running mine in Ubuntu 18\_04 cloudserver.

---

<div class="post-metadata">

**Author:** ![ronniegoei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ronniegoei/32/17738_2.png) [@ronniegoei](https://forum.rasa.com/u/ronniegoei)\
**Post date:** [November 3, 2021, 7:06am UTC](https://forum.rasa.com/t/rasa-actions-server-docker-issue/48899/9 "2021-11-03T07:06:48Z")

</div>

If i am not misunderstanding your question, the answer is i am using this in virtual environment on my local computer, windows 10.

UPDATE: I found the answer, in actions.py i wrote “from matplotlib import animation” which i dont know why i put this (pardon me i just do copy-paste thing and try it one step at a time 😂)

after i command this line, the action server can run smooth and response correctly

Thank you
