Hi there, I am dealing with my first every NextCloud install and working may through my little issues one by one. However, I don’t seem to be able to get readis caching to work.
I installed Redis and configured redis according to the many tutorials I have read up to now. From my point of view redis seems to work:
$ cat /etc/redis.conf | grep unixsocket unixsocket /var/run/redis/redis.sock unixsocketperm 700 $ ls -la /run/redis total 0 drwxr-xr-x 2 redis redis 60 Feb 9 21:29 . drwxr-xr-x 19 root root 560 Feb 9 21:49 .. srwx------ 1 redis redis 0 Feb 9 21:29 redis.sock systemctl status redis ... Feb 09 21:29:17 homeserver redis-server: 3176:M 09 Feb 2020 21:29:17.806 # Server initialized Feb 09 21:29:17 homeserver redis-server: 3176:M 09 Feb 2020 21:29:17.806 # WARNING overcommit_memory is set to 0! Background save may fail under low memory co> Feb 09 21:29:17 homeserver redis-server: 3176:M 09 Feb 2020 21:29:17.806 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This > Feb 09 21:29:17 homeserver redis-server: 3176:M 09 Feb 2020 21:29:17.806 * DB loaded from disk: 0.000 seconds Feb 09 21:29:17 homeserver redis-server: 3176:M 09 Feb 2020 21:29:17.806 * The server is now ready to accept connections at /var/run/redis/redis.sock
I added the redis section to /etc/webapps/nextcloud/config/config.php like this:
'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtphost' => 'w0057ba2.kasserver.com', 'mail_smtpport' => '587', 'mail_smtpsecure' => 'tls', 'maintenance' => false, 'preview_max_x' => '2048', 'preview_max_y' => '2048', 'jpeg_quality' => '60', // 'memcache.local' => '\\OC\\Memcache\\Redis', 'filelocking.enabled' => 'true', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => '/var/run/redis/redis.sock', 'port' => 0, 'timeout' => 0, 'password' => '', 'dbindex' => 0,), );
However, the moment I remove the comments from ‘//memcache.local’ my NextCloud system will become inaccessible and only shows this error:
Internal Server Error The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the server log.
Can anyone spot something which I did wrong, or anything else to check?
I am running Nextcloud 18.0.0 on Arch Linux with nginx as webserver.