[Solved] CRON failed due to redis not found

Hello
Since few days I have a error about CRON feature
It seems can not find redis.so file

myuser@myserver:~$ sudo -u www-data php7.4 /mypath/nextcloud/cron.php 
PHP Warning:  PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20190902/redis.so (/usr/lib/php/20190902/redis.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/redis.so.so (/usr/lib/php/20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
myuser@myserver:~$ 

I can see that the redis.so is present in the following directory

myuser@myserver:~$ ll /usr/lib/php/20200930/redis.so 
-rw-r--r-- 1 root root 631808 mars  29 13:02 /usr/lib/php/20200930/redis.so
myuser@myserver:~$ 

How can I modify nextcloud to use the good path to the redis.so file ?
Thanks.
VGR.

Nextcloud is not loading redis.

Your webserver or cli call of php is doing that.

Please search this forum or the web for help with redis config for your php installation.

Solved after remove a bad repository for PHP.

1 Like