Open adamengberg opened 1 year ago
Also getting this issue, across 3 different linux environments.
I'm working on CentOS7.6. The below command works for me.
mkdir -p /app/rasa/.rasa/ sudo chmod -R 777 ./app/rasa/.rasa/ make install make run
I solved this issue by adding USER root
in the Dockerfile.
Hope this also can help you.
Hi, I need some help getting this running, been trying for the last couple of days without success.
I´ll outline the steps I´ve gone through and the fixes I´ve applied.
network_mode
andnetworks
: invalid compose project" as a result of running "make install"entrypoint: ["/bin/bash", "-c", "chmod +x /app/wait-for-it.sh && /app/wait-for-it.sh rasa-credentials:8889 -t 120 -o && rasa run --enable-api --cors '*' --debug --credentials /app/credentials.yml --endpoints /app/endpoints.yml --model /app/models"]
to:entrypoint: ["/bin/bash", "-c", "/app/wait-for-it.sh rasa-credentials:8889 -t 120 -o && rasa run --enable-api --cors '*' --debug --credentials /app/credentials.yml --endpoints /app/endpoints.yml --model /app/models"]
I also go to the RasaGPT/app/scripts directory via Git Bash and run "chmod +x /wait-for-it.sh"Apart from this, I also need to change the "EOL Conversion" to "Unix (LF)" of the "wait-for-it.sh" file in app/scripts.
I also made the changes in docker-compose suggested here: https://github.com/PythonicNinja/RasaGPT/commit/f899209d01615507a6e9f2aec6cd4d4877d02dea
All in all, this is my docker-compose file: `# -------------------------------------
▒█▀▀█ █▀▀█ █▀▀ █▀▀█ ▒█▀▀█ ▒█▀▀█ ▀▀█▀▀
▒█▄▄▀ █▄▄█ ▀▀█ █▄▄█ ▒█░▄▄ ▒█▄▄█ ░▒█░░
▒█░▒█ ▀░░▀ ▀▀▀ ▀░░▀ ▒█▄▄█ ▒█░░░ ░▒█░░
+-----------------------------------+
| http://RasaGPT.dev by @paulpierre |
+-----------------------------------+
version: '3.9'
services:
-------------------
API service for LLM
-------------------
api: build: context: ./app/api restart: always container_name: chat_api env_file:
-------------------
Ngrok agent service
-------------------
ngrok: image: ngrok/ngrok:latest container_name: chat_ngrok ports:
-----------------
Core Rasa service
-----------------
rasa-core: image: rasa/rasa:latest container_name: chat_rasa_core env_file:
./app/scripts/wait-for-it.sh:/app/wait-for-it.sh
ports:
5005:5005 entrypoint: ["/bin/bash", "-c", "/app/wait-for-it.sh rasa-credentials:8889 -t 120 -o && rasa run --enable-api --cors '*' --debug --credentials /app/credentials.yml --endpoints /app/endpoints.yml --model /app/models"]
networks:
--------------------
Rasa actions service
--------------------
rasa-actions: build: context: ./app/rasa dockerfile: ./actions/Dockerfile container_name: chat_rasa_actions env_file:
-------------------------------
Rasa credentials helper service
-------------------------------
rasa-credentials: build: context: ./app/rasa-credentials dockerfile: Dockerfile container_name: chat_rasa_credentials volumes:
-------------------------
Postgres database service
-------------------------
db: build: context: ./app/db container_name: chat_db env_file:
--------------------------------
PgAdmin database browser service
--------------------------------
pgadmin: container_name: chat_pgadmin image: dpage/pgadmin4 environment: PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org} PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin} PGADMIN_CONFIG_SERVER_MODE: 'False' volumes:
----------------------------
Container log viewer service
----------------------------
dozzle: container_name: chat_dozzle image: amir20/dozzle:latest volumes:
networks: chat-network: driver: bridge`
When running "make install" after these changes, the "chat_rasa_core" stays open without any errors.
8 3.476 ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/opt/venv/lib/python3.10/site-packages/dotenv'
This error i can not get around. It seems to arise when the "requirements.txt" in app/api is ran. I´ve tried manually installing it via the terminal in Docker, getting the same response. I´ve also tried modifying the "Dockerfile" in app/api to give it root privileges, like this:
USER root RUN pip install --no-cache-dir -r requirements.txt
Still the same error. I would very much appreciate some help in getting further!