# Unable to deploy the Rasa Chatbot

**URL:** <https://forum.rasa.com/t/unable-to-deploy-the-rasa-chatbot/63666>\
**Category:** Rasa Open Source\
**Created:** [October 2, 2024, 4:37am UTC](https://forum.rasa.com/t/unable-to-deploy-the-rasa-chatbot/63666 "2024-10-02T04:37:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronitkothari22](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ronitkothari22/32/24632_2.png) [@Ronitkothari22](https://forum.rasa.com/u/Ronitkothari22)\
**Post date:** [October 2, 2024, 4:37am UTC](https://forum.rasa.com/t/unable-to-deploy-the-rasa-chatbot/63666/1 "2024-10-02T04:37:21Z")

</div>

FROM rasa/rasa:3.6.2-full

USER root

WORKDIR /app

COPY . /app

RUN rasa train

# Set environment variable to silence SQLAlchemy warning

ENV SQLALCHEMY\_SILENCE\_UBER\_WARNING=1

# Set environment variable for the port

ENV PORT 10000

USER 1001

# Expose the port on which Rasa will run

EXPOSE $PORT

# Start Rasa server

CMD [“rasa”, “run”, “–enable-api”, “–cors”, “\*”, “–port”, “$PORT”]

Error message:

```auto
rasa: error: argument {init,run,shell,train,interactive,telemetry,test,visualize,data,export,x,evaluate}: invalid choice: '/bin/bash' (choose from 'init', 'run', 'shell', 'train', 'interactive', 'telemetry', 'test', 'visualize', 'data', 'export', 'x', 'evaluate')

```

Additional error information:

Copy

```auto
Oct 2 09:00:29 AM **==> Exited with status 2**
Oct 2 09:00:29 AM **==> Common ways to troubleshoot your deploy: https://docs.render.com/troubleshooting-deploys**
Oct 2 09:00:35 AMusage: rasa [-h] [--version]
Oct 2 09:00:35 AM {init,run,shell,train,interactive,telemetry,test,visualize,data,export,x,evaluate}
Oct 2 09:00:35 AM ...

```

This problem persists even after trying various formats for the CMD instruction, including:

1. Using shell form: `CMD rasa run --enable-api --port $PORT --cors "*" --debug`
2. Using exec form: `CMD ["rasa", "run", "--enable-api", "--port", "$PORT", "--cors", "*", "--debug"]`

---

<div class="post-metadata">

**Author:** ![matlafu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/matlafu/32/24220_2.png) [@matlafu](https://forum.rasa.com/u/matlafu)\
**Post date:** [October 2, 2024, 7:31am UTC](https://forum.rasa.com/t/unable-to-deploy-the-rasa-chatbot/63666/2 "2024-10-02T07:31:43Z")

</div>

Are you importing rasa 3.6.2 or 3.6.20? Maybe that “0” fixes the error 🤔

FROM rasa/rasa:3.6.2-full VS FROM rasa/rasa:3.6.20-full

I had a similar error, I solved it by setting the ENTRYPOINT to [“rasa”] after the COPY ./app

(…)

USER 1001

COPY …/ /app

WORKDIR /app

ENTRYPOINT [“rasa”]

(…)

Then, in the dockercompose I´m running the command

```auto
services:
  rasa_server:
    container_name: xxx-rasa
    platform: linux/amd64
    build:
      context: ../
      dockerfile: docker/Dockerfile.rasa
    ports:
      - "5005:5005"
    env_file:
      - .env-docker
    volumes:
      - ./:/app
    command: ["run", "--cors", "*", "--debug", "--endpoints", "endpoints.yml"]

```

If that doesn´t work, u can run “docker inspect nameofservice” and see what is the command being run, that helped me a lot to find the source 🙂
