I’m using custom docker-compose to run rasa on VM(ubuntu-20.04), I’m getting error
PermissionError: [Errno 13] Permission denied: ‘models’
docker-compose file is in etc/rasa directory, I also did this command sudo chgrp -R root /etc/rasa/* && sudo chmod -R 770 /etc/rasa/* but still get same error.
What am I missing?
FYI, model is trained already once docker image was built
2022-01-31 19:29:46 WARNING rasa.utils.common - Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Traceback (most recent call last):
File "/usr/local/bin/rasa", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/rasa/__main__.py", line 118, in m ain
cmdline_arguments.func(cmdline_arguments)
File "/usr/local/lib/python3.8/site-packages/rasa/cli/run.py", line 118, in ru n
args.model = _validate_model_path(args.model, "model", DEFAULT_MODELS_PATH)
File "/usr/local/lib/python3.8/site-packages/rasa/cli/run.py", line 71, in _va lidate_model_path
os.makedirs(default, exist_ok=True)
File "/usr/local/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: 'models'
this message keeps repeating, as the docker container keeps restarting @nik202
FROM python:3.8-slim
WORKDIR /app
COPY . /app
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
RUN python -m spacy download en_core_web_md
RUN python -m spacy link en_core_web_md en
RUN rasa train
USER 1001
ENTRYPOINT ["rasa"]
CMD ["run", "--enable-api", "--port", "8080"]