Rasa X 0.33 docker-compose rasa-production_1 permission denied?

Version: Rasa X 0.33.0

Everything works well with Rasa 2.0 now but found permission denied in logs, new to Rasa, is this behave right? Rasa X 0.33 docker-compose rasa-production_1 permission denied? thanks!

$ sudo docker-compose up -d
...
$ docker ps
65ef84d3dabe        rasa/nginx:0.33.0           "/opt/bitnami/entryp…"   5 minutes ago       Up 5 minutes             0.0.0.0:80->8080/tcp, 0.0.0.0:443->8443/tcp   rasa_nginx_1
f2b94e19287a        rasa/rasa-x-demo:0.33.0     "./entrypoint.sh run…"   5 minutes ago       Up 5 minutes             5055/tcp                                      rasa_app_1
37338e1bab6b        rasa/rasa:2.0.2-full        "rasa x --no-prompt …"   5 minutes ago       Up 5 minutes             5005/tcp                                      rasa_rasa-production_1
a7b910517fd3        rasa/rasa:2.0.2-full        "rasa x --no-prompt …"   5 minutes ago       Up 5 minutes             5005/tcp                                      rasa_rasa-worker_1
5de58ee7007a        rasa/rasa-x:0.33.0          "sh -c 'user_id=$(id…"   5 minutes ago       Up 5 minutes             5002/tcp                                      rasa_rasa-x_1
ecf9935da8da        rasa/rasa-x:0.33.0          "python -m rasax.com…"   5 minutes ago       Up 5 minutes (healthy)   8000/tcp                                      rasa_db-migration_1
1e7cfe0f7124        rasa/duckling:0.1.6.4       "duckling-example-ex…"   5 minutes ago       Up 5 minutes             8000/tcp                                      rasa_duckling_1
a18463dc395e        bitnami/redis:6.0.8         "/opt/bitnami/script…"   5 minutes ago       Up 5 minutes             6379/tcp                                      rasa_redis_1
284a9d3d5dcd        bitnami/postgresql:11.9.0   "/opt/bitnami/script…"   5 minutes ago       Up 5 minutes             5432/tcp                                      rasa_db_1
8fae8b2e8c51        bitnami/rabbitmq:3.8.9      "/opt/bitnami/script…"   5 minutes ago       Up 5 minutes             4369/tcp, 5672/tcp, 15672/tcp, 25672/tcp      rasa_rabbit_1

$ docker logs rasa_rasa-production_1
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Matplotlib created a temporary config/cache directory at /tmp/matplotlib-pjeglr3c because the default path (/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
1 Like

Hey @chychen

Are you mounting the volumes with config to your rasa:2.0.2-full image? Looks like there are permission problems on the host system side.

What’s your deployment?

Hi @degiz I followed steps in Docker Compose Installation. I thought it is all containerized no need to worry about permission, would like to know what permission should I have and any document about it? I saw my /etc/rasa folder is owned by root, does it matter? thank you.

I have exactly the same problem. My host system is win10.

Hey @chychen

I think it does :grimacing: Please check this page!

hi Alexander , I am facing the same issue with Docker compose setup on Windows 10. The documentation suggests permission change for Linux host only . Can you please suggest for Windows 10 setup . I feel this could be some permission issue in rasa image used in container which is backed into rasa docker image itself.

here are error logs

`Starting Rasa X in production mode... ` `🚀`

`Could not fetch runtime config from
server at 'http://rasa-x:5002/api/config?token=/5WvU7jT+PAYNMhp1uaTBA=='.
Exiting.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Failed to write global config. Error:
[Errno 13] Permission denied: '/.config'. Skipping.`

`Matplotlib created a temporary
config/cache directory at /tmp/matplotlib-hphg6cm2 because the default path
(/.config/matplotlib) is not a writable directory; it is highly recommended to
set the MPLCONFIGDIR environment variable to a writable directory, in
particular to speed up the import of Matplotlib and to better support
multiprocessing.`

Thanks, Amar

thank you @degiz, however it didn’t work after following the instructions to update my permission:

sudo chgrp -R root /etc/rasa/* && sudo chmod -R 770 /etc/rasa/*
sudo chown -R 1001 /etc/rasa/db && sudo chmod -R 750 /etc/rasa/db

full logs of rasa_rasa-production_1

Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Matplotlib created a temporary config/cache directory at /tmp/matplotlib-69zu83xm because the default path (/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
2020-11-04 01:22:48 ERROR    pika.adapters.utils.io_services_utils  - Socket failed to connect: <socket.socket fd=21, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('172.21.0.9', 45494)>; error=111 (Connection refused)
2020-11-04 01:22:48 ERROR    pika.adapters.utils.connection_workflow  - TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('172.21.0.4', 5672))
2020-11-04 01:22:48 ERROR    pika.adapters.utils.connection_workflow  - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused')
2020-11-04 01:22:53 ERROR    pika.adapters.utils.io_services_utils  - Socket failed to connect: <socket.socket fd=25, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('172.21.0.9', 45532)>; error=111 (Connection refused)
2020-11-04 01:22:53 ERROR    pika.adapters.utils.connection_workflow  - TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('172.21.0.4', 5672))
2020-11-04 01:22:53 ERROR    pika.adapters.utils.connection_workflow  - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused')
2020-11-04 01:22:58 ERROR    pika.adapters.utils.io_services_utils  - Socket failed to connect: <socket.socket fd=25, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('172.21.0.9', 45592)>; error=111 (Connection refused)
2020-11-04 01:22:58 ERROR    pika.adapters.utils.connection_workflow  - TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('172.21.0.4', 5672))
2020-11-04 01:22:58 ERROR    pika.adapters.utils.connection_workflow  - AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused')
Building prefix dict from the default dictionary ...
Dumping model to file cache /tmp/jieba.cache
Loading model cost 0.825 seconds.
Prefix dict has been built successfully.
1 Like

I am facing the exact same errors for rasa-worker and rasa-production containers, on a clean Ubuntu-18.04 host.

Any updates on this? I’m having the same problems.

This issue is solved with Rasa X 0.33.1 and 0.33.2 I tried and it worked with both these versions.

1 Like

This worked for me too, thank you!