n8n · tool · fg-0348

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

If you see Access to the file is not allowed. Allowed paths: /home/node/.n8n-files, the cause and the fix for n8n are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Access to the file is not allowed. Allowed paths: /home/node/.n8n-filesMounted volume paths that worked in 1.x are rejectedRead Binary Files node fails on the same paths
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
Affected
n8n 2.0 and later
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun