Installing Rasa into docker container - Getting Started with Rasa - Rasa Community Forum
👋 Introducing the Rasa Playground
Installing Rasa into docker container
post by XanNava on Oct 8, 2022
Hi I am trying to get Rasa installed into a docker container, but am running into the fallowing issue. This is a new Ubuntu server install with docker/docker-compose. I don’t have python or anything installed for the normal Rasa install. Could that be an issue? Should I run through a normal install first and then try this out?
$ sudo docker run -v $(pwd):/app rasa/rasa:latest init --no-prompt
2022-10-08 08:37:08 WARNING rasa.utils.common - Failed to write global config. Error: [Errno 13] Permission denied: '/app/.config'. Skipping.
Warning: Input is not a terminal (fd=0).
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.
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: './endpoints.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 110, in main
cmdline_arguments.func(cmdline_arguments)
File "/opt/venv/lib/python3.8/site-packages/rasa/cli/scaffold.py", line 238, in run
init_project(args, path)
File "/opt/venv/lib/python3.8/site-packages/rasa/cli/scaffold.py", line 130, in init_project
create_initial_project(".")
File "/opt/venv/lib/python3.8/site-packages/rasa/cli/scaffold.py", line 139, 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 './endpoints.yml': Permission denied
post by rasa_learner on Oct 8, 2022
Since it says PermissionError, you can change the permission of the file and try again.
chmod 777 endpoints.yml
Related topics
| Topic | Replies | Views | Activity |
|---|---|---|---|
| [Docker | Not able to run rasa](https://forum.rasa.com/t/docker-not-able-to-run-rasa/53190) Rasa Open Source |
3 | 1.1k |
| Can’t install Rasa using Docker Rasa Open Source |
3 | 1.2k | Jan 2021 |
| Permission denied on running rasa in centos with docker Rasa Open Source |
3 | 1.5k | Apr 2020 |
| distutils.errors.DistutilsFileError: could not create ‘./config.yml’: Permission denied Rasa Open Source |
2 | 2.2k | Dec 2019 |
| Error in running rasa with docker Rasa Open Source |
4 | 1.1k | Nov 2019 |