Currently, i’m running n8n on a single server with docker compose just fine. Next step is to try and deploy it as a stack with postgres and presist data with glusterfs.
Wondering, has anyone tried glusterfs with n8n? I’m getting this permission error:
Summary
2022-09-13T04:07:33.334Z | info | Initializing n8n process “{ file: ‘start.js’ }”
UserSettings were generated and saved to: /mnt/gluster/vol1/n8n/n8ndata/.n8n/config
› Error: There was an error: ENOENT: no such file or directory, mkdir
› ‘/mnt/gluster/vol1/n8n/n8ndata/.n8n’
2022-09-13T04:07:33.430Z | error | There was an error initializing DB: “EACCES: permission denied, mkdir ‘/mnt/gluster’” “{ file: ‘start.js’ }”
2022-09-13T04:07:33.431Z | info |
Stopping n8n… “{ file: ‘start.js’, function: ‘stopProcess’ }”
Installed glusterfs server + client + the docker plugin and when volume is created and mounted, files show up on all nodes–syncing just fine.
Tried giving 777 permission recursively but that didn’t change the result.
Turns out, the problem was with the gluster plugin. At least for the volume mounts.
Removed the plugin & instead of using the latest tag, used the 2.03 version. Now the volumes get mounted properly and it works fine with absolute paths commented out.
If I try to include those absolute paths (i.e. n8n_user_folder) it leads to the same error.