workflow_ocr icon indicating copy to clipboard operation
workflow_ocr copied to clipboard

misleading text - [workflow_ocr] Warning: OCRmyPDF succeeded with warning(s): sh: ocrmypdf: not found

Open ferdiga opened this issue 1 year ago • 1 comments

Describe the bug

instead of "succeeded" it should read "FAILED" [workflow_ocr] Warning: OCRmyPDF FAILED with warning(s): sh: ocrmypdf: not found

this BTW happens because these packages are missing in the nextcloud-aio-nextcloud container , and I didn't find a way to permanently add these. Hence after every container update these have to be installed again.

docker exec -it nextcloud-aio-nextcloud bash -c "apk add libreoffice" # not sure that's really necessary docker exec -it nextcloud-aio-nextcloud bash -c "apk add ocrmypdf" docker exec -it nextcloud-aio-nextcloud bash -c "apk add tesseract-ocr" docker exec -it nextcloud-aio-nextcloud bash -c "apk add tesseract-ocr-data-fra" docker exec -it nextcloud-aio-nextcloud bash -c "apk add tesseract-ocr-data-deu" docker exec -it nextcloud-aio-nextcloud bash -c "apk add tesseract-ocr-data-eng"

System

  • App version: 1.29.0
  • Nextcloud version: AIO 9.3.0
  • PHP version: [VERSION]
  • Environment: [Docker/native Apache/native PHP FPM/...]
  • ocrmypdf version: [VERSION]

How to reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots

If applicable, add screenshots to help explain your problem.

Server log

Please paste relevant content of your nextcloud.log file here. It might make sense to first decrease the Loglevel. Also, since the OCR process runs asynchronously, run your cron.php before copying the logs here.

Paste relevant server log lines here. Make sure to trim sensitive information.

Browser log

If you're observing Browser errors, please paste your developer tools logs here.

Help for Chrome: https://developer.chrome.com/docs/devtools/console/#view Help for Firefox: https://firefox-source-docs.mozilla.org/devtools-user/browser_console/index.html

Paste your developer tools logs here. 

Additional context

Add any other context about the problem here.

ferdiga avatar Jul 25 '24 21:07 ferdiga