Closed Aspire1Inspire2 closed 4 years ago
Hi @Aspire1Inspire2 try restarting your sevice.
sudo systecmctl php-fpm apache
..or nginx
Hi, I restarted apache2, Ubuntu several times and still have the same issue. I cannot tell anything abnormal during installation as well. Is there any known reason to cause this?
Ohhhh...
>>>vi /etc/php/7.2/cli/php.ini
Added
[pdlib]
extension="pdlib.so"
>>>php -m | grep pdlib
pdlib
vi /etc/php/7.2/cli/php.ini
Also add pdlib to /etc/php/7.2/fpm/php.ini
Hi, I edited the php fpm ini file and restarted php apache2 and ubuntu system. Still, the app store gives me "The library pdlib is not available" error.
Should I compile the app from source? Thank you for your help.
Hi @Aspire1Inspire2 The bionic packages are tested, and they should have worked directly, but since you already compiled by hand, let's continue with this. :sweat_smile:
So, please, purge the package again, and try to install the build again. :disappointed:
php -m | grep pdlib
pdlib
To be clear, if you see that, it is that the extension is builded and installed appropriately. However, this check is only for the command line, since ubuntu/debian separates both configurations.
The extension itself is the same, do not try to reinstall it unnecessarily, you just have to configure it by modifying the correct files. :wink:
After going back-and-forth compiling the library, it still gives me the same error. Since the pdlib test passed successfully, I made the assumption that my library was compiled correctly. Therefore, something must be wrong with how my nextcloud is hosted.
Could anyone help me figure out (maybe) how to configure my Apache2 to work with the facerecognition plugin correctly?
Question: I noticed that the php-fpm is a necessity to run this plugin. However, I did not configure my Apache2 to use it in the Virtual host file. I am wondering if this is the reason why the plugin cannot find the pdlib?
Here is what I did:
Here is what I (maybe) did not do:
I understand that configure Apache2 is probably out of scope for this repo's issue to be handled. I Googled ways to enable php-fpm and read through several top search results. I was more confused than before.
Could someone shed some light (or a link) on how to correctly configure Apache2 for this plugin?
Thank you for your help.
I noticed that the php-fpm is a necessity to run this plugin.
No. It is not dependency of pdlib extension. Is just an PHP extension. In any case, php-fpm is what that takes the queries, and responds executing the php process, etc.
You can check if it is running:
However, I find it strange that you are using other things.
I configured my /etc/php/7.2/cli/php.ini file to have the pdlib as extension
If you always had the file over the cli folder, you have to have another one in /etc/php/7.2/fpm/, and if not, check the content of the folder /etc/php/7.2/ (ls -la /etc/php/7.2/) you must have something similar!
If not yet clear, debian, ubuntu separate the php interpreter configuration for the command line from the interpreter that answers apache queries!. Your cmd line version is working.
I finally found the reason!
This is the file to edit on my Ubuntu system:
/etc/php/7.4/apache2/php.ini
I am not familiar with php at all. This is figured out through trial and error. My installation of Apache2 and php are all done through apt. Shall we add this to the installation instruction? @matiasdelellis Perhaps other users will find it useful.
One more question I installed the app and turned it on under one of my nextcloud users. It asked me for patience. However, I did not see any background process related to apache, php, or pdlib being run. I waited for 2 hours. Nothing showed up.
I think this behavior is abnormal. Could you share with me on how to collect log info so that I can report another issue? Thank you!
This is the file to edit on my Ubuntu system: /etc/php/7.4/apache2/php.ini
Great.. :tada:
Shall we add this to the installation instruction? @matiasdelellis Perhaps other users will find it useful.
I'll keep that in mind to document. :wink:
It asked me for patience. However, I did not see any background process related to apache, php, or pdlib being run. I waited for 2 hours. Nothing showed up.
It's all in the readme .. :sweat_smile:
p.s: Use model 1 or model 3!. Model 2 is not recommended!!
Well, Close it.. I hope to know your experiences whit it. :grimacing: regards
Hi I am sure you are bothered many times by this issue. As I searched in the resolved issue, there seems to be three issues resolved related to this but none of them helped my case.
Steps to reproduce
Server configuration
Operating system: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic
Pdlib version: 1.0.1
How is DLib installed: I installed it two ways, neither works. Explained in details below the listed items.
How is PDlib installed: I installed it two ways, neither works. Explained in details below the listed items.
PHP version: PHP 7.2.24-0ubuntu0.18.04.6 (cli) (built: May 26 2020 13:09:11) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.24-0ubuntu0.18.04.6, Copyright (c) 1999-2018, by Zend Technologies
Web server: Server version: Apache/2.4.29 (Ubuntu) Server built: 2020-03-13T12:26:16
Database: Your MySQL connection id is xxxx Server version: 5.7.30-0ubuntu0.18.04.1 (Ubuntu)
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Client configuration
Browser: Firefox 78
Operating system: Ubuntu 20
Logs
Background task log with debug.
sudo -u apache php occ -vvv face:background_job
Note: the app cannot be installed because lack of dependency. ``` In Application.php line 583: [Symfony\Component\Console\Exception\NamespaceNotFoundException] There are no commands defined in the "face" namespace. Exception trace: at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:583 Symfony\Component\Console\Application->findNamespace() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:632 Symfony\Component\Console\Application->find() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:236 Symfony\Component\Console\Application->doRun() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:148 Symfony\Component\Console\Application->run() at /var/www/html/nextcloud/lib/private/Console/Application.php:214 OC\Console\Application->run() at /var/www/html/nextcloud/console.php:99 require_once() at /var/www/html/nextcloud/occ:11 ```My detailed installation log:
As noted, my php is 7.2, is this not working because of that? I am wildly guessing so. So I purged it and install from source. EVERYTHING is good except for the kindly missing lib reminder from the app store. I did everything as root.
OK, so DLIB is installed. Go ahead with PDLIB
However, still have this from next cloud:
I restarted apache2, even the ubuntu system several times. Still seeing things like this. Coud anyone please offer some help? Spent so much time on this and currently a little frustrated.