Hallo zusammen,
schön, dass es dies Forum gibt. Unraid ist eine super software, aber manchmal braucht man doch mal Hilfe. So wie gerade mit meinem Docker-Container Paperless-ngx. Anscheinend ist mein Backup nicht wieder richtig gut wiederhergestellt worden.
Ab und zu sehe ich Dokumente deren Daten (inkl. Vorschau) zwar aufgelistet werden, aber sie sind nicht downloadbar. Nach der Auswahl des Dokuments, erscheint kurz die Vorschau und ist dann wieder weg.
Könnte ein Berechtigungsproblem sein. Aber wie bekomme ich das alles wieder zurecht? Kann man eine autom. Reparatur starten?
Funktional scheint alles zu gehen. Neue Dokumente werden normal angezeigt.
Noch das Protokoll als Ergänzung.
[2025-05-19 13:13:33,647] [WARNING] [paperless.parsing.tesseract] Encountered an error while running OCR: File not found - /usr/src/paperless/media/documents/originals/2024-CLEF Solar/Angebot Solaranlage Abnahme.pdf
Docker cannot access your working directory unless you explicitly share it with the Docker container and set uppermissions correctly.
You may find it easier to use stdin/stdout:
docker run -i --rm jbarlow83/ocrmypdf - - <input.pdf >output.pdf
. Attempting force OCR to get the text.
[2025-05-19 13:13:33,649] [DEBUG] [paperless.parsing.tesseract] Fallback: Calling OCRmyPDF with args: {'input_file': PosixPath('/usr/src/paperless/media/documents/originals/2024-CLEF Solar/Angebot Solaranlage Abnahme.pdf'), 'output_file': PosixPath('/tmp/paperless/paperless-mjf3_m69/archive-fallback.pdf'), 'use_threads': True, 'jobs': 6, 'language': 'deu', 'output_type': 'pdf', 'progress_bar': False, 'force_ocr': True, 'clean': True, 'deskew': True, 'rotate_pages': True, 'rotate_pages_threshold': 12.0, 'sidecar': PosixPath('/tmp/paperless/paperless-mjf3_m69/sidecar-fallback.txt')}
[2025-05-19 13:13:33,783] [ERROR] [paperless.tasks] Error while parsing document 2024-11-02 CLEF Solar Angebot Solaranlage Abnahme (ID: 729)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/_validation.py", line 265, in create_input_file
safe_symlink(options.input_file, target)
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/helpers.py", line 172, in safe_symlink
raise FileNotFoundError(f"trying to create a broken symlink to {input_file}")
FileNotFoundError: trying to create a broken symlink to /usr/src/paperless/media/documents/originals/2024-CLEF Solar/Angebot Solaranlage Abnahme.pdf
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/paperless/src/paperless_tesseract/parsers.py", line 383, in parse
ocrmypdf.ocr(**args)
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/api.py", line 380, in ocr
return run_pipeline(options=options, plugin_manager=plugin_manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/_pipelines/ocr.py", line 214, in run_pipeline
return _run_pipeline(options, plugin_manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/_pipelines/ocr.py", line 166, in _run_pipeline
start_input_file, original_filename = create_input_file(options, work_folder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/_validation.py", line 288, in create_input_file
raise InputFileError(msg) from e
ocrmypdf.exceptions.InputFileError: File not found - /usr/src/paperless/media/documents/originals/2024-CLEF Solar/Angebot Solaranlage Abnahme.pdf
Docker cannot access your working directory unless you explicitly share it with the Docker container and set uppermissions correctly.
You may find it easier to use stdin/stdout:
docker run -i --rm jbarlow83/ocrmypdf - - <input.pdf >output.pdf
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/_validation.py", line 265, in create_input_file
safe_symlink(options.input_file, target)
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/helpers.py", line 172, in safe_symlink
raise FileNotFoundError(f"trying to create a broken symlink to {input_file}")
FileNotFoundError: trying to create a broken symlink to /usr/src/paperless/media/documents/originals/2024-CLEF Solar/Angebot Solaranlage Abnahme.pdf
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/paperless/src/paperless_tesseract/parsers.py", line 430, in parse
ocrmypdf.ocr(**args)
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/api.py", line 380, in ocr
return run_pipeline(options=options, plugin_manager=plugin_manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/_pipelines/ocr.py", line 214, in run_pipeline
return _run_pipeline(options, plugin_manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/_pipelines/ocr.py", line 166, in _run_pipeline
start_input_file, original_filename = create_input_file(options, work_folder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ocrmypdf/_validation.py", line 288, in create_input_file
raise InputFileError(msg) from e
ocrmypdf.exceptions.InputFileError: File not found - /usr/src/paperless/media/documents/originals/2024-CLEF Solar/Angebot Solaranlage Abnahme.pdf
Docker cannot access your working directory unless you explicitly share it with the Docker container and set uppermissions correctly.
You may find it easier to use stdin/stdout:
docker run -i --rm jbarlow83/ocrmypdf - - <input.pdf >output.pdf
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/paperless/src/documents/tasks.py", line 264, in update_document_content_maybe_archive_file
parser.parse(document.source_path, mime_type, document.get_public_filename())
File "/usr/src/paperless/src/paperless_tesseract/parsers.py", line 442, in parse
raise ParseError(f"{e.__class__.__name__}: {e!s}") from e
documents.parsers.ParseError: InputFileError: File not found - /usr/src/paperless/media/documents/originals/2024-CLEF Solar/Angebot Solaranlage Abnahme.pdf
Docker cannot access your working directory unless you explicitly share it with the Docker container and set uppermissions correctly.
You may find it easier to use stdin/stdout:
docker run -i --rm jbarlow83/ocrmypdf - - <input.pdf >output.pdf
[2025-05-19 13:13:33,801] [DEBUG] [paperless.parsing.tesseract] Deleting directory /tmp/paperless/paperless-mjf3_m69
[2025-05-19 13:14:20,494] [CRITICAL] [paperless.handlers] Document 2024-11-02 CLEF Solar Angebot Solaranlage Abnahme: File /usr/src/paperless/media/documents/originals/2024-CLEF Solar/Angebot Solaranlage Abnahme.pdf doesn't exist.
[2025-05-19 13:14:20,495] [WARNING] [paperless.handlers] Exception during file handling: Document 2024-11-02 CLEF Solar Angebot Solaranlage Abnahme: File /usr/src/paperless/media/documents/originals/2024-CLEF Solar/Angebot Solaranlage Abnahme.pdf doesn't exist.
[2025-05-19 13:14:20,545] [CRITICAL] [paperless.handlers] Document 2024-11-02 Angebot Solaranlage Abnahme: File /usr/src/paperless/media/documents/originals/2024-CLEF Solar/Angebot Solaranlage Abnahme.pdf doesn't exist.
[2025-05-19 13:14:20,546] [WARNING] [paperless.handlers] Exception during file handling: Document 2024-11-02 Angebot Solaranlage Abnahme: File /usr/src/paperless/media/documents/originals/2024-CLEF Solar/Angebot Solaranlage Abnahme.pdf doesn't exist.