Maintenance:mode not possible

I installed a fresh Raspberry OS trixie and the lates Nextcloud version today. I like to restore my database backup and thats why I like to set Nextcloud to maintenance mode. But it dosen’t work. I would be appreciate if someone could help

sudo -u www-data php occ maintenance:mode –on

An unhandled exception has been thrown:

Error: Class "Memcached" not found in /var/www/html/config/config.php:1776

Stack trace:

#0 /var/www/html/lib/private/Config.php(229): include()

#1 /var/www/html/lib/private/Config.php(40): OC\Config->readData()

#2 /var/www/html/lib/base.php(93): OC\Config->__construct()

#3 /var/www/html/lib/base.php(612): OC::initPaths()

#4 /var/www/html/lib/base.php(1192): OC::init()

#5 /var/www/html/console.php(31): require_once('...')

#6 /var/www/html/occ(33): require_once('...')

#7 {main}

You will need to add “Memcached” to your config.php - see config.php.sample and the

but it is already included by default, no?

/**

* Memory caching backend for locally stored data

*

* * Used for host-specific data, e.g., file paths

*

* Defaults to ``none``

*/

'memcache.local' => '\\OC\\Memcache\\APCu',

Check it in your config.php and add it, if missing. See documantation.

This is how it is included by default in the config.sample.php:

‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘memcache.distributed’ => ‘\OC\Memcache\Memcached’,
‘memcache.locking’ => ‘\OC\Memcache\Memcached’,
‘memcached_servers’ => [
[‘localhost’, 11211],
],

It looks pretty similar to the documentation. Sorry I need more detailed help!

I think the problem is, that I copied the config.sample.php to config.php so that I have a lot of unnecessary settings they are making problems

Check the log of the Webserver (/var/log/apache/* resp. nginx) and nextcloud.log for errors concerning APCu resp. memcache after restarting the webserver service.

I could solve it with a self made config file. thanks a lot!!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.