# Installing rasa via Docker problems

**URL:** <https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310>\
**Category:** Rasa Open Source\
**Created:** [August 30, 2021, 1:21pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310 "2021-08-30T13:21:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![bferster](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bferster/32/16714_2.png) [@bferster](https://forum.rasa.com/u/bferster)\
**Post date:** [August 30, 2021, 1:21pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/1 "2021-08-30T13:21:20Z")

</div>

I’m brand new to Docker and trying to set up Rasa on a Debian server. Per instructions in: [Building a Rasa Assistant in Docker](https://rasa.com/docs/rasa/docker/building-in-docker), I have installed Docker and Docker-Compose , made a new folder under ~/htdocs, and ran this cmd:

```auto
sudo docker run -v $(pwd):/app rasa/rasa:2.8.3-full init --no-prompt

```

I seemed to download Rasa somewhere, but got lots of errors:

```auto
Unable to find image 'rasa/rasa:2.8.3-full' locally
2.8.3-full: Pulling from rasa/rasa
16ec32c2132b: Pull complete 
a501038a8cc1: Pull complete 
a80f4ea9d197: Pull complete 
0e9a7af05311: Pull complete 
576cc544fc22: Pull complete 
d48bc0d837a0: Pull complete 
4f4fb700ef54: Pull complete 
955cbb09f006: Pull complete 
Digest: sha256:382d45ed2158d49decfc8287e9d822517154c9081fc803268e7bba98a33a19a6
Status: Downloaded newer image for rasa/rasa:2.8.3-full
2021-08-30 13:03:27 WARNING rasa.utils.common - Failed to write global config. Error: [E
rrno 13] Permission denied: '/app/.config'. Skipping.
Welcome to Rasa! 烙

To get started quickly, an initial project will be created.
If you need some help, check out the documentation at https://rasa.com/docs/rasa.
Warning: Output is not to a terminal (fd=1).
Warning: Input is not to a terminal (fd=0).
Traceback (most recent call last):
File "/usr/lib/python3.8/distutils/file_util.py", line 41, in _copy_file_contents
     fdst = open(dst, 'wb')
PermissionError: [Errno 13] Permission denied: './credentials.yml'

 During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
 File "/opt/venv/bin/rasa", line 8, in <module>
 sys.exit(main())
 File "/opt/venv/lib/python3.8/site-packages/rasa/ __main__.py", line 117, in main
cmdline_arguments.func(cmdline_arguments)
python File "/opt/venv/lib/python3.8/site-packages/rasa/cli/scaffold.py", line 235, in run
init_project(args, path)
File "/opt/venv/lib/python3.8/site-packages/rasa/cli/scaffold.py", line 128, in init_project
create_initial_project(path)
File "/opt/venv/lib/python3.8/site-packages/rasa/cli/scaffold.py", line 136, in create_initial_project
 copy_tree(scaffold_path(), path)
File "/usr/lib/python3.8/distutils/dir_util.py", line 174, in copy_tree
 copy_file(src_name, dst_name, preserve_mode,File "/usr/lib/python3.8/distutils/file_util.py", line 151, in copy_file
_copy_file_contents(src, dst)
File "/usr/lib/python3.8/distutils/file_util.py", line 43, in _copy_file_contents raise DistutilsFileError(
distutils.errors.DistutilsFileError: could not create './credentials.yml': Permission denied

```

---

<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:** [August 30, 2021, 1:26pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/2 "2021-08-30T13:26:48Z")

</div>

@bferster

Please try this command and let me know please

`docker run --user 1000 -v $(pwd):/app rasa/rasa:2.8.3-full init --no-prompt`

then talk to the bot

`docker run --user 1000 -it -v $(pwd):/app rasa/rasa:2.8.3-full shell`

Good Luck! I hope this will solve your issue.

---

<div class="post-metadata">

**Author:** ![afnaan](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@afnaan](https://forum.rasa.com/u/afnaan)\
**Post date:** [August 30, 2021, 1:31pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/3 "2021-08-30T13:31:54Z")

</div>

hey, type this command into your terminal sudo docker run -it --rm --user 0 -v $(pwd):/app rasa/rasa:latest init --no-prompt

- -it is interactive mode
- –rm removes the container after you stop it

Hope this helps you.

---

<div class="post-metadata">

**Author:** ![bferster](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bferster/32/16714_2.png) [@bferster](https://forum.rasa.com/u/bferster)\
**Post date:** [August 30, 2021, 2:07pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/4 "2021-08-30T14:07:53Z")

</div>

That worked! Thank you! But now I can’t seem to get it to recognize my SSL certs.

This works `sudo docker run --user 1000 -it -v $(pwd):/app rasa/rasa:2.8.3-full run -- enable-api --cors "*"`

But this:

`sudo docker run --user 1000 -it -v $(pwd):/app rasa/rasa:2.8.3-full run --enable-api --cors "*" --ssl-certificate /opt/bitnami/letsencrypt/certificates/www.lizasim.com.crt --ssl-keyfile /opt/bitnami/letsencrypt/certificates/www.lizasim.com.key`

Yields errors and I’m pretty sure it’s pointing to the right certs:

```auto
  File "/opt/venv/bin/rasa", line 8, in <module>
    sys.exit(main())
  File "/opt/venv/lib/python3.8/site-packages/rasa/ __main__.py", line 117, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/opt/venv/lib/python3.8/site-packages/rasa/cli/run.py", line 95, in run
    rasa.run(**vars(args))
  File "/opt/venv/lib/python3.8/site-packages/rasa/api.py", line 57, in run
    rasa.core.run.serve_application(
  File "/opt/venv/lib/python3.8/site-packages/rasa/core/run.py", line 189, in serve_application
    ssl_context = server.create_ssl_context(
  File "/opt/venv/lib/python3.8/site-packages/rasa/server.py", line 435, in create_ssl_context
    ssl_context.load_cert_chain(cd
FileNotFoundError: [Errno 2] No such file or directory

```

---

<div class="post-metadata">

**Author:** ![bferster](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bferster/32/16714_2.png) [@bferster](https://forum.rasa.com/u/bferster)\
**Post date:** [August 30, 2021, 2:09pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/5 "2021-08-30T14:09:10Z")

</div>

Thanks Muhammad, that made things clearer

---

<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:** [August 30, 2021, 2:18pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/6 "2021-08-30T14:18:50Z")

</div>

> [@bferster](#):
>
> –ssl-certificate

@bferster Why you want SSL certificate? Your Website is secure?

---

<div class="post-metadata">

**Author:** ![bferster](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bferster/32/16714_2.png) [@bferster](https://forum.rasa.com/u/bferster)\
**Post date:** [August 30, 2021, 2:19pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/7 "2021-08-30T14:19:33Z")

</div>

Yes. It has to be .

---

<div class="post-metadata">

**Author:** ![bferster](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bferster/32/16714_2.png) [@bferster](https://forum.rasa.com/u/bferster)\
**Post date:** [August 30, 2021, 2:20pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/8 "2021-08-30T14:20:28Z")

</div>

the SSL code worked when I was running it in the python virtual environment

---

<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:** [August 30, 2021, 2:22pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/9 "2021-08-30T14:22:12Z")

</div>

@bferster how you running this without virtual environment or using docker ? Me confused.

---

<div class="post-metadata">

**Author:** ![bferster](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bferster/32/16714_2.png) [@bferster](https://forum.rasa.com/u/bferster)\
**Post date:** [August 30, 2021, 2:24pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/10 "2021-08-30T14:24:04Z")

</div>

source ./venv/bin/activate (I had installed rasa before) rasa run --enable-api --cors “\*” --ssl-certificate /opt/bitnami/letsencrypt/certificates/www.lizasim.com.crt --ssl-keyfile /opt/bitnami/letsencrypt/certificates/www.lizasim.com.key

---

<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:** [August 30, 2021, 2:27pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/11 "2021-08-30T14:27:54Z")

</div>

@bferster Bill I am sharing you one link it’s related to Deploying Rasa Chatbot On Google Cloud With Docker; it is for your understanding. I hope this will give you more and more clarity. I know you working with AWS, but do read this or Skimmed it.

> **[Deploying Rasa Chatbot on Google Cloud with Docker - DataHive DataHive Labs](https://datahive.ai/deploying-rasa-chatbot-on-google-cloud-with-docker/)**
>
> Machine Learning Consulting, End-to-end machine learning projects, artificial intelligence and natural language processing, time series analysis, predictive analysis work

---

<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:** [August 30, 2021, 2:29pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/12 "2021-08-30T14:29:41Z")

</div>

@bferster You not rendering chatbot on your website using frontend?

---

<div class="post-metadata">

**Author:** ![bferster](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bferster/32/16714_2.png) [@bferster](https://forum.rasa.com/u/bferster)\
**Post date:** [August 30, 2021, 2:39pm UTC](https://forum.rasa.com/t/installing-rasa-via-docker-problems/47310/13 "2021-08-30T14:39:19Z")

</div>

I’m getting if from an ajax call:

```auto
		let xhttp = new XMLHttpRequest();
		xhttp.onreadystatechange = function() {
// act on intent returned!
				}
			};
		xhttp.open("POST", "https://lizasim.com:5005/model/parse");
		xhttp.setRequestHeader("Content-Type", "application/json");
		xhttp.send(JSON.stringify({text:msg}));

```
