Ubuntu Host with a live Mount folder containing the directory I am interested in
Docker running N8N with volume pointing to the Host Directory
N8N Local File Trigger (LFT) watching the directory for any File Additions/Modification.
Still, any change I make on the mounted local directory, the Local File Trigger does not trigger.
I have checked almost all of the other posts and made the changes but with no success.
I also tried setting the LFT Node on Polling mode but still wont trigger.
I can list the contents of the target Directory using a Execute Command node (CLI ls command).
I can read/write a File in the target Directory using R/W Files from Disk Node
But if I copy/move or create a file or change a existing file in the target Directory on the Host, the LFT node wont trigger!
I think this has something to do with File Notifiers and them generally not functioning properly in Docker containers because of filesystem differences. Either that or it is a permission issue, If you make a file in the mount from inside the n8n container does it trigger the workflow or do you have the same issue?
I tested this right now by having WF 01 watch a specific folder on the mount and WF 02 Write a file to that Folder on the mount. It indeed works i.e. WF 01 can detect the File system changes.
May be the field of investigation is now narrrowed!
That would make sense as n8n would be watching the local folder so the file system notifiers wouldn’t be “lost” when going through the Docker filesystem compatability layer.
Your testing would suggest the issue is something within Docker.