New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal Server Error in admin panel / {"Exception":"Error","Message":"Class \"CnnFaceDetection\" not found" #704
Comments
Im having the same issue |
Same issue. Any solution or walk around? |
same here :( |
Same issue
Is working also. |
Same issue. pdlib test works fine: Using -m 3 on the occ tool to change the method. I'm not sure if putting thoose errors helps. |
same here :( |
same issue ubuntu 22.04 |
I solve this in my server. Custom install in ubuntu22.04, after installed pdlib, we must add extension=pdlib.so to php.ini It works. |
same here,
|
I was able to make it work. After adding the sudo systemctl start php8.1-fpm My Nginx has to point to the correct socket location
Now it works. |
Hi everyone, From what I see in your messages, pdlib is not configured correctly. Do you all use Ubuntu? https://github.com/matiasdelellis/facerecognition/wiki/PDlib-Installation#pdlib-configuration |
Not Ubuntu, Debian 12 Bookworm here. This seems to have popped up when I upgraded to php8.3 |
It is not php8.3. Also all the older versions do not work for me anymore. Just before anyone tries to install older ones. |
I've had the same problem (debian 12, php8.2) Then I thought of php.ini in the fpm directory ! And bingo, the problem's been solved ! |
Try to call |
Thank you very much for the reply, but as indicated in my message the problem has been solved by adding "pdlib.so" to the php.ini file in the /etc/php8.2/fpm directory. |
I understand that everyone fixed it. In general they are problems with enabling pdlib. 🙈 |
Admin page should load normally, but instead, it generates an internal server error.
Ubuntu 22.04 installation with Nextcloud 27.1.2
php 8,2 installed via: sudo add-apt-repository ppa:ondrej/php
nginx and postgres;l
pdlib version 1.1.0 installed with
cd ~
git clone https://github.com/goodspb/pdlib.git
cd pdlib
phpize
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --enable-debug
make
sudo make install
dlib installed with
cd ~
apt install -y cmake
git clone https://github.com/davisking/dlib.git
cd dlib/dlib
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON ..
apt install -y libopenblas-dev liblapack-dev libavdevice-dev libavfilter-dev libavformat-dev libavcodec-dev libswresample-dev libswscale-dev libavutil-dev
make
sudo make install
pdlib and dlib are functioning correctly based on test script found at https://github.com/matiasdelellis/pdlib-min-test-suite
Models 1-4 are installed, and all models have been chosen as default, but error message is the same.
Memory and other options have been made using 'occ' command line tool.
Personal option page for Face Recognition is working correctly, and "Analyze my images" option is selected.
Admin page for Face Recognition results in error message:
_Internal Server Error
The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log.
Technical details
Remote Address: 102.129.152.203
Request ID: YzNb5zMdNODleUlu6pc2_
Unable to configure the temporary area for image processing due to admin page not being accessible, resulting in this error:
sudo -u www-data php /var/www/html/nextcloud/occ face:background_job
_1/8 - Executing task CheckRequirementsTask (Check all requirements)
Seems that still don't configured the image area used for temporary files.
Please read the documentation about this: https://github.com/matiasdelellis/facerecognition/wiki/Settings#temporary-files
and then configure it in the admin panel to continue
Fill an issue here if that doesn't help: https://github.com/matiasdelellis/facerecognition/issues
Task CheckRequirementsTask signalled we should not continue, bailing out_
set up face recognition settings_
sudo -u www-data php /var/www/html/nextcloud/occ app:install facerecognition --force
sudo -u www-data php /var/www/html/nextcloud/occ app:enable facerecognition --force
sudo -u www-data php /var/www/html/nextcloud/occ face:setup -M 7.5G
sudo -u www-data php /var/www/html/nextcloud/occ face:setup --model 1
sudo -u www-data php /var/www/html/nextcloud/occ face:setup --model 2
sudo -u www-data php /var/www/html/nextcloud/occ face:setup --model 3
sudo -u www-data php /var/www/html/nextcloud/occ face:setup --model 4
sudo -u www-data php /var/www/html/nextcloud/occ config:app:set facerecognition sensitivity --value 0.4
sudo -u www-data php /var/www/html/nextcloud/occ config:app:set facerecognition max_image_area --value 786432
sudo -u www-data php /var/www/html/nextcloud/occ config:app:set facerecognition handle_external_files --value true
sudo -u www-data php /var/www/html/nextcloud/occ config:app:set facerecognition handle_shared_files --value false
sudo -u www-data php /var/www/html/nextcloud/occ config:app:set facerecognition min_image_size --value 128
Nextcloud logs show:
"File":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"Error","Message":"Class "CnnFaceDetection" not found","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/facerecognition/lib/Settings/Admin.php","line":81,"function":"open","class":"OCA\FaceRecognition\Model\DlibCnnModel\DlibCnnModel","type":"->"},{"file":"/var/www/html/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":129,"function":"getForm","class":"OCA\FaceRecognition\Settings
The text was updated successfully, but these errors were encountered: