docspell
docspell copied to clipboard
Is the default docker-compose dsc container supposed to scan for files automatically?
Hi, I'm wondering if using the default dsc config in https://github.com/eikek/docspell/blob/a7bc973345d9f9b39d03239cf0f92d910c416848/docker/docker-compose/docker-compose.yml#L90 is dsc supposed to automatically scan in files dropped in ./docs without further involvement from me? Or do I need to do something else?
It should watch the directory and push files as soon as they arrive. No involvement necessary otherwise.
@eikek it's not working for some reason, what can I do to verify the cause?
Are you using the standard compose file with no change? If not, how does it look like? Are you using perhaps a network file system to watch?
I changed it slightly:
consumedir:
image: docspell/dsc:latest
container_name: docspell-consumedir
command:
- dsc
- "-d"
- "http://docspell-restserver:7880"
- "watch"
- "--delete"
- "-ir"
- "--not-matches"
- "**/.*"
- "--header"
- "Docspell-Integration:${DOCSPELL_SERVER_INTEGRATION_PASSWORD}"
- "/opt/docs"
restart: unless-stopped
environment:
- TZ=${TZ}
- PUID=${PUID}
- PGID=${PGID}
volumes:
- ${DATA}/documents/docspell_watch:/opt/docs
depends_on:
- restserver
Every other the ${VARS} are just environment variables for OMV to replace. Inspecting the container for consumedir I can see the real values being replaced for them. Edit: I'm not using a network filesystem as the target but a mergerfs pool @eikek
@rpgdev I don't know how mergerfs works, I can imagine that it perhaps doesn't work with inotify. In this case, the events won't happen. The same applies to network filesystems. In this case you would need to revert to periodic polling, I think.
I can imagine that it perhaps doesn't work with inotify
Didn't see a reference to that in the mergerfs docs, looks like it should. I'll do some further research on that.
In this case you would need to revert to periodic polling, I think.
How do I do that?
You can look at the options to the upload
command. It traverse directories and accepts a --poll
option to do so periodically.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. This only applies to 'question' issues. Always feel free to reopen or create new issues. Thank you!
@eikek sorry but I tried pointing to the actual directory in the filesystem instead of the mergerfs pool and the document it's still not being picked up :( how can I debug this and find the problem?
Btw, I'm not trying the poll command, I want to get the consumedir service to work.
how can I debug this and find the problem?
Hi @rpgdev you can increase verbosity by using -vv
option to dsc.
Btw, I'm not trying the poll command, I want to get the consumedir service to work.
Not sure if I understand here, but you can use polling to implement the consumedir service.
@eikek why is the consumedir service not working though? That's what I want to figure out. Where should I use the -vv
option?
The -vv
is an option to the dsc
command. You can find out more with dsc --help
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. This only applies to 'question' issues. Always feel free to reopen or create new issues. Thank you!