Recognize unable to process images

Hello everyone,

I already had Recognize running fine on this Nextcloud installation a few month ago, but I decided I didn’t need it so I removed it. Now I’m trying to get it running again, but there is some issue with the process and I cannot identify why.

I am running the latest version of Recognize (6.1.1) with Nextcloud 28.0.5 on Debian 11.9.

The output in nextcloud logs is the same as when running occ recognize:classify:

# occ recognize:classify
Processing storage 6 with root ID 35
generating preview of 52 with dimension 1024 using nextcloud preview manager
generating preview of 55 with dimension 1024 using nextcloud preview manager
generating preview of 58 with dimension 1024 using nextcloud preview manager
[...]
generating preview of 16693 with dimension 1024 using nextcloud preview manager
generating preview of 16694 with dimension 1024 using nextcloud preview manager
Classifying array (
  0 => '/tmp/oc_tmp_AROZHc-.jpg',
  1 => '/tmp/oc_tmp_qTrb8e-.jpg',
  2 => '/tmp/oc_tmp_4EZNwb-.jpg',
  3 => '/tmp/oc_tmp_vnN2Kb-.jpg',
[...]
  98 => '/tmp/oc_tmp_8s1h6c-.jpg',
  99 => '/tmp/oc_tmp_h2ERcc-.jpg',
)
Running array (
  0 => '/usr/bin/nice',
  1 => '-',
  2 => '/var/www/nextcloud/apps/recognize/bin/node',
  3 => '/var/www/nextcloud/apps/recognize/src/classifier_imagenet.js',
  4 => '-',
)
Classifier process output: /usr/bin/nice: ‘-’: No such file or directory

Classifier process output: /usr/bin/nice: ‘-’: No such file or directory

Error while running imagenetclassifier
No files left to classify
face classifier end
No files left to classify
No files left to classify

Does anyone understand what this could mean?

1 Like

It seems like you might need to set a value for the nice binary in the settings

2 Likes

Well that was easy, thank you very much. I guess that when I reinstalled it, it did not configure a default value.
I put a 9, is there a better recommended value?

1 Like

Default should have been 0, but 9 is fine, too