Getting The file is not writable since n8n update

Describe the problem/error/question

I am unable to write file to file share. I keep getting ‘File xxxx is not writable’. I can manually write the file to the disk from the docker container but not from n8n itself.
This was working before n8n update v2+. Are these related?

What is the error message (if any)?

Please share your workflow

The file "/data/thprod_fsshare/C/CULD57/CULD57000009/CULD57000009_20260326_Pre-Renewal_Notification.txt" is not writable.

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
1 Like

Hi @shreyaslokanath Welcome!
This is expected after version 2.x.x as a change was introduced that if you want to play around and access files, you need to specify them here: N8N_RESTRICT_FILE_ACCESS_TO

Something like:
N8N_RESTRICT_FILE_ACCESS_TO=/data/thprod_fsshare

Just to make sure that path is writable run this as well chown -R 1000:1000 /data/thprod_fsshare

1 Like

Hi Anshul,

Thanks for the quick update. Our Infra team has updated the variable and did a n8n restart but there has been no breakthrough.
which is why I created a simple flow with couple of nodes but no luck even then.

1 Like

@shreyaslokanath the error says that the file path is note writable, which means n8n cannot write stuff there, consider running the command i have mentioned:

This worked.

image

2 Likes

@shreyaslokanath Glad it helped!