Hello, I’m struggling a lot with actually deploying rasa x in production. Right now, no one I’ve talked to, actually understood what user should have the proper permissions when deploying with docker compose. This bit is the one that creates confusion:
On Linux, a local directory is used for persistent Postgres database storage. You must set the correct owner and permissions of the database persistence directory using this command:
I am constantly having the following issue:
postgresql 14:28:12.63 INFO ==> ** Starting PostgreSQL setup **
postgresql 14:28:12.66 INFO ==> Validating settings in POSTGRESQL_* env vars..
postgresql 14:28:12.66 INFO ==> Loading custom pre-init scripts...
postgresql 14:28:12.67 INFO ==> Initializing PostgreSQL database...
mkdir: cannot create directory ‘/bitnami/postgresql’: Permission denied
That’s after following the exact commands listed here: https://rasa.com/docs/rasa-x/installation-and-setup/install/docker-compose at the “Permissions on Mounted Directories”.
Initially I just installed docker, added my user to the docker group and ran the install but that gave the same error. I then thought I should check the docs and try what’s written there although that shouldn’t be necessary for the automatic install.
I tried setting the permissions to root:root, currentuser:currentuser, root:docker but none of them seem to be working. I have sudo rights, I have root access, but I cannot find a way to actually deploy it.
I’d be very thankful if someone would help!