Nextcloud encountered an internal error while configuring memcache

  • Nextcloud Server version :

    • Nextcloud Hub 9(30.0.4)
  • Operating system and version :Rocky 9.5

    • Rocky 9.5
  • Web server and version (e.g, Apache 2.4.25):

    • 2.4.65
  • PHP version (e.g, 8.3):8.3

    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):

    • No
  • When did this problem seem to first start?

    • Nextcloud encountered an internal error while configuring memcache
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)

    • Bare Metal/Archive
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)

    • NO

Summary of the issue you are facing:

Nextcloud encountered an internal error while configuring memcache
I tried using only the following configuration and it worked fine
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => 6379,
),

Steps to replicate it (hint: details matter!):

‘memcache.distributed’ => ‘\OC\Memcache\Redis’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => 6379,
),

I checked the PHP module
rpm -qa | grep -E ‘php-pecl-apcu|php-pecl-redis’
php-pecl-redis6-6.1.0-1.el9.remi.8.3.x86_64
php-pecl-apcu-5.1.24-1.el9.remi.8.3.x86_64

php -m | grep redis
redis
php -m | grep apcu
apcu

What else should I check now?

You’ve only checked if the modules are loaded for the PHP CLI but not for the PHP WEB component. Here you can find a description how to check the modules loading status:

1 Like

Check your Nextcloud log, as suggested in the internal server error message (as well as the support template sections you appear to have deleted). It will have the specifics.

Failing that, please provide the actual parsed config by running occ config:list system, as noted in the support template.