Hello everyone and happy season holidays. I recently updated my self-hosted n8n (installed with npm), set as a service through nssm. I tried the read/write node as per the very simple sample here below but I’ve got two types of outcomes:
-
using \ in the file selector I just got no result,
-
using / in the file selector I got a “not-allowed” error.
So I adjusted the nssm settings adding a variable that theoretically allowed the access to all my disks (N8N_RESTRICT_FILE_ACCESS_TO=C:\;D:\;E:\;F:\;G:\) but what I get is the usual error message involving all disks: “Access to the file is not allowed. Allowed paths: C:\, D:\, E:\, F:\, G:\”.
What is interesting is that in my PC at the office, where I still didn’t updated, this issue doesn’t occur: I regularly use the / structured path and it works perfectly.
Did you stumble upon this kind of problem? Is it me making something wrong or a problem linked with the new n8n version?
Thank you in advance for advising.
Here’s my very simply workflow
Error’s tack trace
NodeApiError: Access to the file is not allowed. Allowed paths: C:, D:, E:, F:, G: at ExecuteContext.execute (C:\Users\User\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-nodes-base\nodes\Files\ReadWriteFile\actions\read.operation.ts:152:10) at ExecuteContext.execute (C:\Users\User\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-nodes-base\nodes\Files\ReadWriteFile\ReadWriteFile.node.ts:65:17) at WorkflowExecute.executeNode (C:\Users\User\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-core\src\execution-engine\workflow-execute.ts:1045:8) at WorkflowExecute.runNode (C:\Users\User\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-core\src\execution-engine\workflow-execute.ts:1226:11) at C:\Users\User\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-core\src\execution-engine\workflow-execute.ts:1662:27 at C:\Users\User\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-core\src\execution-engine\workflow-execute.ts:2274:11
My n8n setup:
- n8n version: 2.0.3
- Database (default: SQLite): default
- n8n EXECUTIONS_PROCESS setting (default: own, main): default, set as service through nssm
- Running n8n via (Docker, npm, n8n cloud, desktop app): npm
- Operating system: Win11