Closed powerwade closed 3 years ago
Please provide more details about your setup.
If the files from mails show up as being owned by root, this means that the processs that creates these files (python manage.py qcluster
) is most likely being run as root, and that should not be the case.
It was working properly lately, AFAIK I didn't do any change recently, so it is weird to me. The PDF attachement is collected under /tmp/paperless as you see in my previous log above.
I use the following docker setup.
paperless-broker:
image: redis:6.0
restart: always
paperless:
image: jonaswinkler/paperless-ng:0.9.11
restart: always
depends_on:
- paperless-broker
ports:
- 8666:8000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ./paperless/data:/usr/src/paperless/data
- ./paperless/Files:/usr/src/paperless/media
- ./paperless/Out:/usr/src/paperless/export
- ./paperless/In:/usr/src/paperless/consume
environment:
- PAPERLESS_REDIS=redis://paperless-broker:6379
- PAPERLESS_TIME_ZONE=Europe/Budapest
- PAPERLESS_FILENAME_FORMAT={created_year}/{correspondent}/{title}
- PAPERLESS_OCR_LANGUAGE=hun
- PAPERLESS_OCR_LANGUAGES=hun
- PAPERLESS_OCR_MODE=skip_noarchive
- PAPERLESS_CONSUMER_DELETE_DUPLICATES=true
- PAPERLESS_CONSUMER_RECURSIVE=true
- PAPERLESS_POST_CONSUME_SCRIPT=/usr/src/paperless/data/notify.sh
- USERMAP_GID=1000
- USERMAP_UID=1000
Ignore me... I was running mailfetch 'manually' through docker as root :(
exec paperless python3 manage.py mail_fetcher
Closing this out.
Glad you figured it out!
Hello, I was not able to import a document from my mailbox due to permission denied as the file(s) are owned by root after fetching the attachement