I have a workflow step “Read/Write Files from Disk”, which tries to write a binary file to disk at /shared/test.txt
But fails with error “The file /shared/test.txt is not writable”
Environment
n8n - 2.4.5 (Self Hosted)
Docker 4.21.1 running on macos
Operating system : MacOS
Docker container
docker run -it --rm \
--name n8n \
-p 5678:5678 \
-v "$(pwd)/data":/home/node/.n8n \
-v "$(pwd)/shared":/shared \
-e GENERIC_TIMEZONE="Asia/Kolkata" \
-e N8N_FILESYSTEM_ALLOW_WRITE="/shared" \
-e N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES="false" \
docker.n8n.io/n8nio/n8n
/shared directory is a docker bind mount from macos
on mac os, the directory has 777 permissions and owned by uid/gid 1000
I can get into container and can create files within /shared directory using touch test.txt
but n8n file write fails with error File /shared/test.txt is not writable
Tried almost every thing, but n8n couldnt write to files inside /shared and keeps giving “Not Writable error”
From within container, i can do echo $N8N_FILESYSTEM_ALLOW_WRITE and it shows me, the environment variable is set to /shared properly.