February 7Feb 7 This is a support thread for a custom Docker image for n8n, specifically designed for better compatibility with Unraid where file permissions on mounted volumes can be problematic.Docker Hub: https://hub.docker.com/r/medzin/n8nGitHub: https://github.com/medzin/docker-n8n
February 15Feb 15 Variables are incomplete, and there are problems with application persistent storage. My level is not good enough. You can try it yourself, and if you change anything in the template, your account data will be lost. This means that if you update, your account content will be lost.My current approach is as shown in the picture, but I set its permissions to 777 and it can be stored normally. Maybe you can add a umask=000. But I didn't bother to test it.
February 15Feb 15 Author Hi! You have to mount /data directory from the container not the standard /home/node/.n8n. I had to change it to make the image Tailscale-friendly. Edited February 15Feb 15 by medzin
February 15Feb 15 51 minutes ago, medzin said:Hi! You have to mount /data directory from the container not the standard /home/node/.n8n. I had to change it to make the image Tailscale-friendly.I mean, your configuration may cause you to re-register your account after the update and lose the configuration.
June 3Jun 3 Hello, please what is correct way how to define path in e.g. Read/Write Files from Disk node?I copied bunch of .pdf files into the appdata/n8n/folder and I put them into the node path in this way: /data/folder/*.pdf .But it does not work. Am I doing something wrong?Thank you!
June 3Jun 3 Author Hi @ELP1! The path you used is correct for this template.However, recent n8n versions added a security restriction for local file access. Starting with n8n 2.0, N8N_RESTRICT_FILE_ACCESS_TO defaults to ~/.n8n-files, so the Read/Write Files from Disk node will not be allowed to read /data/... unless you explicitly allow it.See the official n8n docs:https://docs.n8n.io/2-0-breaking-changes/#set-default-value-for-n8n_restrict_file_access_tohttps://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.readwritefile/#file-locationsTo use files from the appdata mount, add this variable to the container:N8N_RESTRICT_FILE_ACCESS_TO=/dataThen restart the container and try /data/folder/*.pdf again.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.