Comments (9)
I should add that I've also tried setting it up within Docker in my DSM, and I seem to be facing a similar issue - continuous restarts
from paperless.
Maybe the container does not have permission to access the ./consume directory on your host. What is the full path of the ./consume directory on your host? How do the permissions look like? Can you try giving it less restrictive permissions? Does it work then?
from paperless.
I set the UID & GID to a user on my Synology that has access rights to the folder. Is there something else I need to do?
from paperless.
Got the same error.
If I'm in the container, I can touch and remove files.
So I think it has something todo with the document_consumer.py script or something else
Edit:
Running it with this command works. Maybe the docker-entrypoint.sh is wrong
python3 /usr/src/paperless/src/manage.py document_consumer
from paperless.
Try running the consumer with --no-inotify.
from paperless.
Edit:
Running it with this command works. Maybe the docker-entrypoint.sh is wrongpython3 /usr/src/paperless/src/manage.py document_consumer
If you do this, but are running the web server within docker, you will run into trouble, since the consumer will put the consumed documents outside the docker volumes, while the webserver will expect the documents inside the container.
from paperless.
Was a permission error, my bad.
Created the folder before the paperless user had exist.
Edit: Was a permission error, but the consumer doesn't start either
Edit2: The user has to be the owner of the folder. Now its working fine. Does it have to be like that?
Edit3: Try to scan the first document:
2020-11-18 15:40:41 | stdout | PermissionError: [Errno 13] Permission denied: '/tmp/paperless/paperless-v5xl43mb'
2020-11-18 15:40:41 | stdout | _os.mkdir(file, 0o700)
2020-11-18 15:40:41 | stdout | File "/usr/lib/python3.8/tempfile.py", line 359, in mkdtemp
2020-11-18 15:40:41 | stdout | self.tempdir = tempfile.mkdtemp(prefix="paperless-", dir=self.SCRATCH)
2020-11-18 15:40:41 | stdout | File "/usr/src/paperless/src/documents/parsers.py", line 49, in __init__
2020-11-18 15:40:41 | stdout | super().__init__(path)
2020-11-18 15:40:41 | stdout | File "/usr/src/paperless/src/paperless_tesseract/parsers.py", line 40, in __init__
2020-11-18 15:40:41 | stdout | parsed_document = parser_class(doc)
2020-11-18 15:40:41 | stdout | File "/usr/src/paperless/src/documents/consumer.py", line 154, in try_consume_file
2020-11-18 15:40:41 | stdout | return func(*args, **kwds)
2020-11-18 15:40:41 | stdout | File "/usr/lib/python3.8/contextlib.py", line 75, in inner
2020-11-18 15:40:41 | stdout | if not self.try_consume_file(file):
2020-11-18 15:40:41 | stdout | File "/usr/src/paperless/src/documents/consumer.py", line 117, in consume_new_files
2020-11-18 15:40:41 | stdout | self.file_consumer.consume_new_files()
2020-11-18 15:40:41 | stdout | File "/usr/src/paperless/src/documents/management/commands/document_consumer.py", line 122, in loop_step
2020-11-18 15:40:41 | stdout | self.loop_step(mail_delta)
2020-11-18 15:40:41 | stdout | File "/usr/src/paperless/src/documents/management/commands/document_consumer.py", line 130, in loop_inotify
2020-11-18 15:40:41 | stdout | self.loop_inotify(mail_delta)
2020-11-18 15:40:41 | stdout | File "/usr/src/paperless/src/documents/management/commands/document_consumer.py", line 97, in handle
2020-11-18 15:40:41 | stdout | output = self.handle(*args, **options)
2020-11-18 15:40:41 | stdout | File "/usr/lib/python3.8/site-packages/django/core/management/base.py", line 335, in execute
2020-11-18 15:40:41 | stdout | self.execute(*args, **cmd_options)
2020-11-18 15:40:41 | stdout | File "/usr/lib/python3.8/site-packages/django/core/management/base.py", line 288, in run_from_argv
2020-11-18 15:40:41 | stdout | self.fetch_command(subcommand).run_from_argv(self.argv)
2020-11-18 15:40:41 | stdout | File "/usr/lib/python3.8/site-packages/django/core/management/__init__.py", line 365, in execute
2020-11-18 15:40:41 | stdout | utility.execute()
2020-11-18 15:40:41 | stdout | File "/usr/lib/python3.8/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
2020-11-18 15:40:41 | stdout | execute_from_command_line(sys.argv)
2020-11-18 15:40:41 | stdout | File "/usr/src/paperless/src/manage.py", line 11, in <module>
2020-11-18 15:40:41 | stdout | Traceback (most recent call last):
2020-11-18 15:40:41 | stdout | Consuming /consume/Scanner_.pdf
Output is sadly in the wrong direction, read from bottom to top
from paperless.
Can you explain what you have done?
I wan't to use it on my Synology also, but the container is stop with no errors in the log.
Which volumes did you map and which environment variables did you use?
I use this Docker-Image.
from paperless.
Can you explain what you have done?
I wan't to use it on my Synology also, but the container is stop with no errors in the log.
Which volumes did you map and which environment variables did you use?
I use this Docker-Image.
I used this docker image and this guide managed to get it working, with a bit of fiddling (e.g. had to chmod+x ./manage.py
before ./manage.py createsuperuser
)
from paperless.
Related Issues (20)
- Uploade with Webgui or App HOT 3
- docker-compose fails to build with the last version of Pipenv HOT 3
- Correnspondent picked from filename
- Docker Container Unhealthy
- Problem pulling static content with reverse proxy
- ImportError: cannot import name 'FieldDoesNotExist' from 'django.db.models' in __init__.py
- Not detecting new files via ftp only via smb
- Consumer uses 100% CPU when idle HOT 3
- [Feature] - Templates for OCR (Zonal OCR) using KULL
- Problem using docker-compose HOT 2
- gunicorn cannot read files? wrong permissions? HOT 2
- Provide as Yunohost App
- Dockerfile: Unable to open /etc/sudoers: Permission denied HOT 1
- Paperless-ng is here. Thoughts on merging into master. HOT 18
- Disabling encryption failing after one file HOT 10
- Docker Install : No such file or directory 'python3 HOT 2
- Docker install: ERROR: for consumer Container "a713bc3650c5" is unhealthy.
- ERROR Error while consuming document img_20180606_204601.893.jpg: Invalid rotation (0) HOT 1
- Paperless in Kubernetes with NFS Backing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paperless.