iamklaus / nextcloud

Nextcloud docker file including cron via supervisor and all dependencies to install the face recognition app.
17 stars 9 forks source link

face recognition wants version 20 or lower #6

Closed guystreeter closed 2 years ago

guystreeter commented 3 years ago

The docker image contains Nextcloud version 22, but the face recognition app specifies version 20 or lower.

guystreeter commented 3 years ago

And if I try to force it, I get

Column "oc_facerecog_persons"."is_valid" is type Bool and also NotNull, so it can not store "false".
iamklaus commented 3 years ago

Where do you get this message? On my environment it works perfect with version 22.

guystreeter commented 3 years ago

I made a completely fresh install from docker.io/iamklaus/nextcloud with new app and data volumes. Then I exec into the container, and when I run

./occ app:enable -n facerecognition

I get

App "Face Recognition" cannot be installed because it is not compatible with this version of the server.

If I force it with -f like

./occ app:enable -n -f facerecognition

I get

Column "oc_facerecog_persons"."is_valid" is type Bool and also NotNull, so it can not store "false".
guystreeter commented 3 years ago

It looks like nextcloud:21.0.4-apache was the last official docker image with PHP version 7.4. You might try that one. the latest version uses PHP 8, which is known to break facerecognition.
See https://github.com/matiasdelellis/facerecognition/issues/456

darklab-sh commented 3 years ago

I am having this issue too. New install, new database, new data directory. After creating initial username/password I cannot enable the Face Recognition app because of the error Column "oc_facerecog_persons"."is_valid" is type Bool and also NotNull, so it can not store "false".

KoMa1012 commented 3 years ago

here is what I did to resolve this (via https://github.com/matiasdelellis/facerecognition/wiki/Installation):

apt-get install git
cd /var/www/html/apps/   # or whatever your path to Nextcloud is
git clone https://github.com/matiasdelellis/facerecognition.git
cd facerecognition/
make

After that I activated it in the App Store (now it was on 0.8.3 so I could do that). Only Problem (which might only be valid for me) is, that I can't execute OCC command since I get this error: #8. But if you don't have this problem you should be good to go.

darklab-sh commented 3 years ago

Thanks man, looks promising.

darklab-sh commented 3 years ago

The app installs and appears to work except everytime it tries to process images, I get the following errors. I've tried multiple models but they all have the same result:

        Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Processing image /tmp/oc_tmp_MUm9yw
    Faces found: 0. Image will be skipped because of the following error: Error during image resize
    Processing image /tmp/oc_tmp_dn80pw
    Faces found: 0. Image will be skipped because of the following error: Error during image resize
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Processing image /tmp/oc_tmp_YCnAPw
    Faces found: 0. Image will be skipped because of the following error: Error during image resize
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
    Faces found: 0. Image will be skipped because of the following error: Bad Signature
iamklaus commented 2 years ago

Hey guys,

should work with the latest version now.

Regards, iamklaus