OCR: 1 currently pending file in queue

ubuntu 16.10
nextcloud 11
ocrmypdf 4.2.2
tesseract-ocr 3.04.1

it always show " OCR: 1 currently pending file in queue."

It will not stop working,until i delete the database fields

Please use the appropriate issue tracker for issues like this :wink:

I support Bernhard with his request: Please use the github issue tracker. It definitley is a better solution and actually the right place for things like that.

BTW: My guess: you didn’t start the OCRWorker.php script.

I have already started it,and tried it many times.
I found a problem:
i tested the program 10 times,it may 2 successes.(i didn’t change the program)

I have the same issue with OCR 2.0.0.

Ubuntu 16.04
NC 11.0.0
ocrmypdf 4.3.4
tesseract 3.04.01

@jms007ll: Did you create an issue for this on github?

Issue now created: OCR: 1 currently pending file in queue #35

@janis91: More details how to use this script?

More details how to use this script?

@hustenfrei: it’s pretty easy. just start the OCRWorker.php like follows:

php OCRWorker.php

(also specified in the wiki)

Important is the fact, that the process of this command has to be started with the same permissions as the nextcloud server (the best way is to start it with the same user).

But I will test it as well as you already created a issue on github (thank you for that!).

  1. started sudo -u www-data php /var/www/nextcloud/apps/ocr/worker/OCRWorker.php
  2. realized that app OCR isn’t enabled
  3. stopped script
  4. enabled app OCR
  5. started script again

Now I have this message on top:

And these log entries every 5 seconds:

Level App Message Time
Debug ocr Following status objects failed: 2016-12-30T15:08:09+0100
Debug ocr Find processed ocr files and put them to the right dirs. 2016-12-30T15:08:09+0100
Debug ocr Following status objects failed: 2016-12-30T15:08:04+0100
Debug ocr Find processed ocr files and put them to the right dirs. 2016-12-30T15:08:04+0100
Debug ocr Following status objects failed: 2016-12-30T15:07:59+0100
Debug ocr Find processed ocr files and put them to the right dirs. 2016-12-30T15:07:59+0100
Debug ocr Following status objects failed: 2016-12-30T15:07:55+0100
Debug ocr Find processed ocr files and put them to the right dirs. 2016-12-30T15:07:55+0100

@janis91: Posting all this here or on github?

I’m starting it as cron job.

Would you please post your cron job line?

I worry about that the script will not stop …

@reboot /usr/local/bin/run.OCRWorker.sh

Me too, please look @

1 Like

Hi guys. I will have a closer look into this (and other) issues tomorrow. Unfortunately I didn’ t get enough time in the past couple of weeks.