n8n · tool · fg-0348

n8n Read/Write Files node fails with 'Access to the file is not allowed' after upgrading to 2.0

Access to the file is not allowed. Allowed paths: /home/node/.n8n-files

Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100

Cause

n8n 2.0 sets N8N_RESTRICT_FILE_ACCESS_TO to ~/.n8n-files by default, so file nodes refuse paths outside it.

Fix

Mount data under /home/node/.n8n-files, or list the extra directories in N8N_RESTRICT_FILE_ACCESS_TO separated by semicolons.

Apply

N8N_RESTRICT_FILE_ACCESS_TO=/home/node/.n8n-files;/data/shared

Affects: n8n 2.0 and later

Sources

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp