Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Docker volume mounts and inotify #418

Closed
scavone opened this issue Jan 23, 2021 · 3 comments
Closed

Docker volume mounts and inotify #418

scavone opened this issue Jan 23, 2021 · 3 comments

Comments

@scavone
Copy link

scavone commented Jan 23, 2021

When the webserver container would first start, it would consume files sitting in the mapped folder but subsequent files being dropped would remain and not be imported.

I did some digging in the issue trackers upstream and here and noticed that it has to do with inotify. The recommendation was to change the command in the upstream docker-compose.yml file to ["document_consumer", "--no-inotify"]

Obviously that isn’t how this fork executes things but I do see that the command is executed on Line 9 in the paperless-consumer.service

What do you think would be the best way to implement the --no-inotify flag?

@shamoon
Copy link
Contributor

shamoon commented Jan 23, 2021

#118

@jonaswinkler
Copy link
Owner

The configuration option you're looking for is PAPERLESS_CONSUMER_POLLING.

@scavone
Copy link
Author

scavone commented Jan 23, 2021

Thank you! I had searched the documentation for document_consumer but not inotify. Obvious in hindsight. I really appreciate the quick reply. Made the change and it works like a charm!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants