Redis local Memcache no longer working after Bookworm update on an RPI

The Basics

  • Nextcloud Server version 30.0.1.2
  • Operating system and version RPi Armbian 25.5.1 bookworm \l . 6.12.32-current-bcm2711 (aarch64)
  • Web server and version Apache 2.4.62
  • PHP version 8.3.22
  • Is this the first time you’ve seen this error? Yes:
  • When did this problem seem to first start?
    I updated the bookworm OS with apt update/upgrade and made a restart
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    Via Nextcloudpi
  • Are you using CloudfIare, mod_security, or similar? No

Summary of the issue you are facing:

I have PHP 8.3 and 8.4 running in parallel (not really knowing why I need 8.4)
After making some OS updates the server was requesting a reboot.
After that, nextcloud was no longer working, means the Admin interface ist still there, and claims that the following services are up and running:

  • httpd, PHP, MariadDB, Redis
    and also when I run a PHP-Info I see that:
  • PHP 8.3 is running
  • Redis installed and Enabled

I didn’t change anything in the config.
‘memcache.local’ => ‘\OC\Memcache\Redis’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘/var/run/redis/redis.sock’,
‘port’ => 0,
‘timeout’ => 0.0,
‘password’ => ‘pw’,
),

But I’m still getting the error:
PHP Fatal error: Uncaught OCP\HintException: [0]: Memcache OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n thrown in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 75’

Also when checking the alternatives I see that PHP 8.3 is selected as default.

Thanks for any help!

 Gerhard

Hi Gerhard, welcome,
yes, first try to remove php8.4.
Reboot and than … we’ll see.

Hi geoW,

thanks for the tip!

In the mean time I removed the Redis Local Memcache config for NextCloud.
As a second step I installed the APCu Cache for PHP 8.3 and configured this as Local Memcache.
It worked!

Regards

 Gerhard
1 Like