Paperless NGX skipped Barcode Plugin
Hallo zusammen,
ich habe schon einige Stunden in ein Thema investiert und brauche vielleicht einen Hinweis, da ich es mit den Lösungsvorschlägen bei Google nicht hinbekommen habe.
Bei Paperless NGX bekomme ich es nicht hin, dass die Trennseite "PATCHT" als Barcode gelesen wird.
folgendes habe ich versucht:
- Ich habe bereits 80g bzw 100g Papier sowie ein QR Code probiert ohne Erfolg.
- Paperless NGX in Portainer neugestartet.
- den Raspi neugestartet.
- Den Docker Container habe ich entfernt, die Verzeichnisse mit rm-r entfernt und erneut gepullt.
- eine docker-compose.env file mit entsprechendem Ordner config im Verzeichnis von paperless ngx erstellt.
- PAPERLESS_CONSUMER_ENABLE_BARCODE: (true) durch 1 ersetzt.
Im Log von Paperless NGX steht Skipping plugin BarcodePlugin. Ich gehe also davon aus, dass das Plugin gar nicht aktiviert ist.
Code: Alles auswählen
[2024-10-30 19:17:47,894] [INFO] [paperless.management.consumer] Adding /usr/src/paperless/consume/BRW5CF370C83926_01092024_024053_000121.pdf to the task queue.
[2024-10-30 19:17:47,961] [DEBUG] [paperless.tasks] Skipping plugin CollatePlugin
[2024-10-30 19:17:47,961] [DEBUG] [paperless.tasks] Skipping plugin BarcodePlugin
[2024-10-30 19:17:47,962] [DEBUG] [paperless.tasks] Executing plugin WorkflowTriggerPlugin
[2024-10-30 19:17:47,964] [INFO] [paperless.tasks] WorkflowTriggerPlugin completed with:
[2024-10-30 19:17:47,964] [DEBUG] [paperless.tasks] Executing plugin ConsumeTaskPlugin
[2024-10-30 19:17:47,977] [INFO] [paperless.consumer] Consuming BRW5CF370C83926_01092024_024053_000121.pdf
[2024-10-30 19:17:47,981] [DEBUG] [paperless.consumer] Detected mime type: application/pdf
[2024-10-30 19:17:47,989] [DEBUG] [paperless.consumer] Parser: RasterisedDocumentParser
[2024-10-30 19:17:47,992] [DEBUG] [paperless.consumer] Parsing BRW5CF370C83926_01092024_024053_000121.pdf...
[2024-10-30 19:17:48,002] [INFO] [paperless.parsing.tesseract] pdftotext exited 0
[2024-10-30 19:17:48,132] [DEBUG] [paperless.parsing.tesseract] Calling OCRmyPDF with args: {'input_file': PosixPath('/tmp/paperless/paperless-ngx_97bdl86/BRW5CF370C83926_01092024_024053_000121.pdf'), 'output_file': PosixPath('/tmp/paperless/paperless-owegftuq/archive.pdf'), 'use_threads': True, 'jobs': 4, 'language': 'deu+eng', 'output_type': 'pdfa', 'progress_bar': False, 'color_conversion_strategy': 'RGB', 'skip_text': True, 'clean': True, 'deskew': True, 'rotate_pages': True, 'rotate_pages_threshold': 12.0, 'sidecar': PosixPath('/tmp/paperless/paperless-owegftuq/sidecar.txt')}
[2024-10-30 19:17:48,273] [INFO] [ocrmypdf._pipelines.ocr] Start processing 3 pages concurrently
[2024-10-30 19:17:51,956] [INFO] [ocrmypdf._pipeline] page is facing ⇧, confidence 13.30 - rotation appears correct
[2024-10-30 19:17:52,112] [INFO] [ocrmypdf._pipeline] page is facing ⇧, confidence 12.04 - rotation appears correct
[2024-10-30 19:17:52,169] [INFO] [ocrmypdf._pipeline] page is facing ⇧, confidence 0.62 - no change
[2024-10-30 19:18:10,672] [INFO] [ocrmypdf._pipelines.ocr] Postprocessing...
[2024-10-30 19:18:14,150] [INFO] [ocrmypdf._pipeline] Image optimization ratio: 1.20 savings: 17.0%
[2024-10-30 19:18:14,150] [INFO] [ocrmypdf._pipeline] Total file size ratio: 0.76 savings: -31.9%
[2024-10-30 19:18:14,154] [INFO] [ocrmypdf._pipelines._common] Output file is a PDF/A-2B (as expected)
[2024-10-30 19:18:15,975] [DEBUG] [paperless.parsing.tesseract] Using text from sidecar file
[2024-10-30 19:18:15,976] [DEBUG] [paperless.consumer] Generating thumbnail for BRW5CF370C83926_01092024_024053_000121.pdf...
[2024-10-30 19:18:15,979] [DEBUG] [paperless.parsing] Execute: convert -density 300 -scale 500x5000> -alpha remove -strip -auto-orient -define pdf:use-cropbox=true /tmp/paperless/paperless-owegftuq/archive.pdf[0] /tmp/paperless/paperless-owegftuq/convert.webp
[2024-10-30 19:18:17,910] [INFO] [paperless.parsing] convert exited 0
[2024-10-30 19:18:21,741] [DEBUG] [paperless.classifier] Document classification model does not exist (yet), not performing automatic matching.
[2024-10-30 19:18:21,745] [DEBUG] [paperless.consumer] Saving record to database
[2024-10-30 19:18:21,745] [DEBUG] [paperless.consumer] Creation date from parse_date: 2024-08-06 00:00:00+02:00
[2024-10-30 19:18:21,842] [DEBUG] [paperless.consumer] Deleting file /tmp/paperless/paperless-ngx_97bdl86/BRW5CF370C83926_01092024_024053_000121.pdf
[2024-10-30 19:18:21,846] [DEBUG] [paperless.parsing.tesseract] Deleting directory /tmp/paperless/paperless-owegftuq
[2024-10-30 19:18:21,847] [INFO] [paperless.consumer] Document 2024-08-06 BRW5CF370C83926_01092024_024053_000121 consumption finished
[2024-10-30 19:18:21,852] [INFO] [paperless.tasks] ConsumeTaskPlugin completed with: Success. New document id 1 created
[2024-10-30 19:18:41,831] [DEBUG] [paperless.classifier] Document classification model does not exist (yet), not performing automatic matching.
[2024-10-30 19:19:00,978] [INFO] [paperless.management.consumer] Received SIGINT, stopping inotify
[2024-10-30 19:19:00,982] [DEBUG] [paperless.management.consumer] Consumer exiting.
in der Docker Compose.yml vom ei23 Script habe ich folgenden Code aus dem Template eingefügt und mit den entsprechenden Flags für die Barcode Nutzung in den letzten Zeilen ergänzt.
Code: Alles auswählen
# -------------------------------Paperless
paperless_broker:
image: docker.io/library/redis:7
container_name: paperless_broker
restart: unless-stopped
paperless_db:
image: docker.io/library/mariadb:10
container_name: paperless_db
restart: unless-stopped
volumes:
- ./volumes/paperlessngx/db:/var/lib/mysql
environment:
MARIADB_HOST: paperless
MARIADB_DATABASE: paperless
MARIADB_USER:
MARIADB_PASSWORD:
MARIADB_ROOT_PASSWORD:
paperless_web:
image: ghcr.io/paperless-ngx/paperless-ngx:latest
container_name: paperless_web
restart: unless-stopped
depends_on:
- paperless_db
- paperless_broker
ports:
- 2226:8000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ./volumes/paperlessngx/data:/usr/src/paperless/data
- ./volumes/paperlessngx/media:/usr/src/paperless/media
- ./volumes/paperlessngx/export:/usr/src/paperless/export
- ./volumes/paperlessngx/consume:/usr/src/paperless/consume
env_file: /home/kraetzik/ei23-docker/volumes/paperlessngx/config/docker-compose.env
environment:
PAPERLESS_REDIS: redis://paperless_broker:6379
PAPERLESS_DBENGINE: mariadb
PAPERLESS_DBHOST: paperless_db
PAPERLESS_DBUSER: paperless # only needed if non-default username
PAPERLESS_DBPASS: paperless # only needed if non-default password
PAPERLESS_DBPORT: 3306
USERMAP_UID: 1000
USERMAP_GID: 1000
PAPERLESS_OCR_LANGUAGE: deu+eng
PAPERLESS_TIME_ZONE: Europe/Berlin
PAPERLESS_SECRET_KEY:
PAPERLESS_ADMIN_USER:
PAPERLESS_ADMIN_PASSWORD:
PAPERLESS_CONSUMER_ENABLE_BARCODE: 1
PAPERLESS_CONSUMER_BARCODE_SCANNER: ZXING
PAPERLESS_CONSUMER_BARCODE_UPSCALE: 2.0
PAPERLESS_CONSUMER_BARCODE_DPI: 600
In Portainer zeigt paperless_web die Flag PAPERLESS_CONSUMER_ENABLE_BARCODE: 1 an
Ich hoffe jemand hat eine Idee oder jemand kann mir sagen, ob es bei ihm so funktioniert.
Gruß!