Describe the problem/error/question
Hello,
I have workflows that create a file on a shared folder (on another server). I have the error “The file “\\srv2\folder\file.csv” is not writable.”
For the rest of my test I switched to Read files from disk. I have the error “Access to the file is not allowed. Allowed paths: …”.
I first tought “its’s because its’ a shared folder”, but that not the case since I only have the issue with srv2 and srv3, but it works fine with srv1 and srv4.
There’s no misstyping.
I checked the folders rights, it’s all good. Everyone has access and can read/modify ; I even try to add right to my specific user.
My older versions of N8N (0.192.1 and 1.122.4) don’t have issue.
Do I miss something?
What is the error message ?
Access to the file is not allowed. Allowed paths: C:/N8N_folder, C:/N8N_folder2, C:/N8N_folder3, C:/N8N_folder4, C:/N8N_folder5, C:/N8N_folder6, C:/N8N_folder7, //srv1/folder/subfolder, //srv1/folder/subfolder, //srv2/folder/ //srv3/folder, //srv4/folder/subfolder
Env
module.exports = {
apps : [{
name : "n8n",
env: {
//files
N8N_USER_FOLDER:"C:",
// déploiment
N8N_HOST:"Server_Name",
N8N_PROTOCOL:"https", //http
N8N_PORT:5678, //5678
N8N_SSL_KEY:"SSL_Key_Path",
N8N_SSL_CERT:"SSL_Perm_Path",
//N8N_PUSH_BACKEND: "sse", //websocket
// endpoint
N8N_ENDPOINT_HEALTH:"checkhealth", //"healthz" par défaut"
// executions
EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS:true, //false
EXECUTIONS_DATA_PRUNE:true, //false
EXECUTIONS_DATA_MAX_AGE:224, //336
// DB
DB_TYPE:"postgresdb",
DB_POSTGRESDB_DATABASE:"n8n",
DB_POSTGRESDB_HOST:"localhost",
DB_POSTGRESDB_PORT:5432, //5432
DB_POSTGRESDB_USER:"Database_User",
DB_POSTGRESDB_PASSWORD:"password",
DB_POSTGRESDB_POOL_SIZE:10, //2 par defaut
DB_POSTGRESDB_CONNECTION_TIMEOUT:360000, //20000 par defaut
// logs
N8N_LOG_LEVEL:"info", // info par defaut ; debug
// nodes
N8N_PYTHON_ENABLED : false, //true
NODES_EXCLUDE: "[]", //par défaut à partir de V2 : "[\"n8n-nodes-base.executeCommand\", \"n8n-nodes-base.localFileTrigger\"]"
N8N_RESTRICT_FILE_ACCESS_TO:"C:/N8N_folder, C:/N8N_folder2, C:/N8N_folder3, C:/N8N_folder4, C:/N8N_folder5, C:/N8N_folder6, C:/N8N_folder7, //srv1/folder/subfolder, //srv1/folder/subfolder, //srv2/folder/ //srv3/folder, //srv4/folder/subfolder",
// timezone
GENERIC_TIMEZONE : "Europe/Paris"
}
}]
}