Hi everyone, I am running n8n in Docker on macOS.
I mounted a local folder to /data inside the container.
I also set the environment variable N8N_RESTRICT_FILE_ACCESS_TO=/data,/home/node/.n8n-files.
When I try to use the Read File(s) From Disk node with the path /data/test.rtf, I get this error:
Access to the file is not allowed. Allowed paths: /data,/home/node/.n8n-files
The file test.rtf exists in /data (I checked with docker exec ls /data).
Why does n8n still block access even though /data is in the allowed paths?
Share the output returned by the last node
Information on your n8n setup
- n8n version: 2.3.4
- Database: SQLite (default)
- n8n EXECUTIONS_PROCESS :(default: own, main)
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: macOS
What I have tried
- Mounted /data correctly [verified with docker exec Is /data]
- Set N8N_RESTRICT_FILE_ACCESS_TO=/data,/home/node/.n8n-files [verified with printenv]
- Restarted container
- Using absolute path /data/test/rtf
Still getting the same error.


