Rainloop update failed: PHP extensions cURL not available

#1

My YunoHost server

Hardware: VPS bought online
YunoHost version: 3.5.2.2
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:

Description of my issue

Hello,

I upgraded rainloop and now I have this error message

[302] The following PHP extensions are not available in your PHP configuration!
    cURL

some logs …

NOTICE: PHP message: PHP Notice:  Use of undefined constant CURLOPT_HTTPAUTH - assumed 'CURLOPT_HTTPAUTH' in /var/www/rainloop/app/rainloop/v/1.11.3/app/libraries/SabreForRainLoop/DAV/Client.php on line 375"
[11-Jun-2019 11:36:21] WARNING: [pool rainloop] child 11801 said into stderr: "NOTICE: PHP message: PHP Notice:  Use of undefined constant CURLOPT_USERPWD - assumed 'CURLOPT_USERPWD' in /var/www/rainloop/app/rainloop/v/1.11.3/app/libraries/SabreForRainLoop/DAV/Client.php on line 376"
[11-Jun-2019 11:36:21] WARNING: [pool rainloop] child 11801 said into stderr: "NOTICE: PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function SabreForRainLoop\DAV\curl_init() in /var/www/rainloop/app/rainloop/v/1.11.3/app/libraries/SabreForRainLoop/DAV/Client.php:473"
[11-Jun-2019 11:36:21] WARNING: [pool rainloop] child 11801 said into stderr: "Stack trace:"

Do you have an idea to correct this , please?

Thank you

#2

Hmmm, can you explain when approximately you installed you server ? Can you try to grep -nr 'Recommends' /etc/apt/

My guess is that apt install php-curl should fix the issue, but supposedly the install script was patched some weeks ago to avoid this kind of issue.

#3

Hello Aleks,
Nice to answer so quickly :+1:

$ grep -nr 'Recommends' /etc/apt/ 
/etc/apt/apt.conf.d/00InstallRecommends:1:APT::Install-Recommends "false";                                                                                                                     

What does this tell you?

Thank you

#4

Some packages which are “supposed” to be installed during the yunohost installed were not, because of this specific piece of config. c.f. this issue : https://github.com/YunoHost/issues/issues/1320

Running the following command should avoid any future trouble related to this :

apt install php-gd php-curl php-gettext php-mcrypt
#5

OK I understand.
I read the issue, and ran only

apt install php-curl

That works for me :slight_smile:

Thank you again :+1:

#6

Yes, but if in the future you install other apps which assume other dependencies among php-gd php-curl php-gettext php-mcrypt are already installed, you’ll have another similar issue. So I can only encourage you to run the full line :

apt install php-gd php-curl php-gettext php-mcrypt