Getting error tmp not writable

He everyone,

im trying to use Write to Disk nodes in my workflow but sadly it comes to the error, “/tmp/…” is not writable although i have a ssh node before the write node and it can create the dir. Here is my Docker compose.

Any hints or helps appreciated!

@Merrill add a tmpfs mount under your n8n service in compose, the container’s /tmp is owned by root but n8n runs as uid 1000 so it can’t write there

services:
  n8n:
    tmpfs:
      - /tmp

that gives the n8n process a fresh writable /tmp on every container start without touching host permissions.

good day @Merrill
I’d try simplifying N8N_RESTRICT_FILE_ACCESS_TO to just /data:/tmp temporarily and test again. That long list of paths can sometimes cause the prefix match to behave unexpectedly, and it’s the quickest way to rule it out. If it works with the shorter list, you can add the other paths back one by one to find which one is interfering.