Memcache warning doesn't go away

Nextcloud 27.1.1
Ubuntu server 22.04
Webserver: Apache/2.4.52 (Ubuntu)
PHP 8.1
Redis server: 6:7.2.1-1rl1~jammy1

The issue you are facing:
I have the “transactional filelocking, configure a memcache” warning on my home server installation, which I can’t get rid of. I’m stuck for new ideas, any help is appreciated :slight_smile:

I followed the documentation:

  1. Transactional file locking — Nextcloud latest Administration Manual latest documentation
  2. Memory caching — Nextcloud latest Administration Manual latest documentation

I have read and checked my settings against these posts on the forum:

None of them are applicapple to my issue, but I used them for reference.

I used this to check up on Redis:

Here’s what I have tried so far:
First I added APCu:

‘memcache.local’ => ‘\OC\Memcache\APCu’, (from Source 1)

Then I added Redis (from source 2):

‘filelocking.enabled’ => true,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ => array(
‘host’ => ‘/var/run/redis/redis.sock’,
‘port’ => 0,
‘timeout’ => 0.0,
),

I also tried changing the Redis host to ‘localhost’ and change the port from 0 to 6379 and back.

I did restart the apache server after each change:
$ sudo systemctl restart apache2
$ sudo systemctl restart redis.service

php -m reports that APCu is loaded (see below).

systemctl status: Redis is Active (running).
/var/log/redis/redis-server.log has no entries (loglevel notice)
I can ping redis-cli

Is this the first time you’ve seen this error? (Y/N): Yes, it’s been there for a while (since v. 26 I believe).

From redis.conf:

    bind 127.0.0.1 -::1
    protected-mode yes
    port 6379
    tcp-timeout 0
    backlog 511
    timeout 0
    tcp-keepalive 300
    supervised auto (Tried changing to 'systemd', no effect)
    pidfile /run/redis/redis-server.pid
    loglevel notice
    databases 16

The output of your Nextcloud log in Admin > Logging:
The Admin > Log feature doesn’t work for some reason. It just hangs there. This is from nextcloud_error.log

[Sun Oct 01 00:00:02.241207 2023] [ssl:warn] [pid 919] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 10:05:24.644460 2023] [access_compat:error] [pid 756943] [client XX.XXX.X.XX:47012] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 10:19:15.750397 2023] [access_compat:error] [pid 760812] [client XX.XXX.X.XX:38016] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 10:43:10.503933 2023] [ssl:warn] [pid 762437] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 10:43:10.551692 2023] [ssl:warn] [pid 762438] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 10:43:18.098521 2023] [access_compat:error] [pid 762442] [client XX.XXX.X.XX:33062] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 10:49:25.237120 2023] [php:notice] [pid 762443] [client XX.XXX.X.XX:59170] {"reqId":"ShzGulDREc8GzzI4oiK2","level":3,"time":"2023-10-01T08:49:25+00:00","remoteAddr":"XX.XXX>
[Sun Oct 01 10:49:25.238196 2023] [php:notice] [pid 762443] [client XX.XXX.X.XX:59170] {"reqId":"ShzGulDREc8GzzI4oiK2","level":3,"time":"2023-10-01T08:49:25+00:00","remoteAddr":"XX.XXX>
[Sun Oct 01 10:49:25.247001 2023] [php:notice] [pid 762443] [client XX.XXX.X.XX:59170] {"reqId":"ShzGulDREc8GzzI4oiK2","level":3,"time":"2023-10-01T08:49:25+00:00","remoteAddr":"XX.XXX>
[Sun Oct 01 10:57:29.482652 2023] [access_compat:error] [pid 762615] [client XX.XXX.X.XX:44052] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 10:57:35.938589 2023] [access_compat:error] [pid 762836] [client XX.XXX.X.XX:44178] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 10:58:08.775586 2023] [ssl:warn] [pid 762929] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 10:58:08.817120 2023] [ssl:warn] [pid 762930] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 10:58:21.005845 2023] [access_compat:error] [pid 762934] [client XX.XXX.X.XX:48604] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 11:00:37.211607 2023] [ssl:warn] [pid 763041] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 11:00:37.252265 2023] [ssl:warn] [pid 763042] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 11:12:08.315957 2023] [access_compat:error] [pid 763047] [client XX.XXX.X.XX:54654] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 11:15:39.620137 2023] [php:error] [pid 763046] [client XX.XXX.X.XX:54874] PHP Parse error:  syntax error, unexpected token "," in /var/www/nextcloud/config/config.php on li>
[Sun Oct 01 11:15:51.396229 2023] [php:error] [pid 763049] [client XX.XXX.X.XX:53828] PHP Fatal error:  Uncaught Error: Typed static property OC::$server must not be accessed before in>
[Sun Oct 01 11:15:51.601623 2023] [php:error] [pid 763047] [client XX.XXX.X.XX:53840] PHP Fatal error:  Uncaught Error: Typed static property OC::$server must not be accessed before in>
[Sun Oct 01 11:15:51.809660 2023] [php:error] [pid 763064] [client XX.XXX.X.XX:53854] PHP Fatal error:  Uncaught Error: Typed static property OC::$server must not be accessed before in>
[Sun Oct 01 11:15:52.022686 2023] [php:error] [pid 763486] [client XX.XXX.X.XX:53864] PHP Fatal error:  Uncaught Error: Typed static property OC::$server must not be accessed before in>
[Sun Oct 01 11:15:52.165156 2023] [php:error] [pid 763487] [client XX.XXX.X.XX:53880] PHP Fatal error:  Uncaught Error: Typed static property OC::$server must not be accessed before in>
[Sun Oct 01 11:16:03.435807 2023] [php:error] [pid 763048] [client XX.XXX.X.XX:59256] PHP Parse error:  syntax error, unexpected token "," in /var/www/nextcloud/config/config.php on li>
[Sun Oct 01 11:16:03.513829 2023] [php:error] [pid 763074] [client XX.XXX.X.XX:59250] PHP Parse error:  syntax error, unexpected token "," in /var/www/nextcloud/config/config.php on li>
[Sun Oct 01 11:16:17.318676 2023] [php:error] [pid 763046] [client XX.XXX.X.XX:58564] PHP Fatal error:  Uncaught Error: Typed static property OC::$server must not be accessed before in>
[Sun Oct 01 11:17:13.403277 2023] [access_compat:error] [pid 763047] [client XX.XXX.X.XX:39998] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 11:45:57.882920 2023] [ssl:warn] [pid 766090] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 11:45:57.924376 2023] [ssl:warn] [pid 766091] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 11:46:11.847843 2023] [access_compat:error] [pid 766121] [client XX.XXX.X.XX:40166] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 11:50:35.681314 2023] [access_compat:error] [pid 766099] [client XX.XXX.X.XX:52916] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 11:51:02.999812 2023] [ssl:warn] [pid 766271] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 11:51:03.045494 2023] [ssl:warn] [pid 766272] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 11:56:46.300043 2023] [ssl:warn] [pid 766428] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 11:56:46.344467 2023] [ssl:warn] [pid 766430] AH01909: nextcloud:443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 01 11:57:08.142481 2023] [access_compat:error] [pid 766434] [client XX.XXX.X.XX:33804] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 12:09:00.746716 2023] [access_compat:error] [pid 766444] [client XX.XXX.X.XX:60270] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Oct 01 12:24:58.352353 2023] [php:notice] [pid 782400] [client XX.XXX.X.XX:41716] {"reqId":"yxquwa4KsyC684A0BsGv","level":2,"time":"2023-10-01T10:24:58+00:00","remoteAddr":"XX.XXX>
[Sun Oct 01 12:25:03.340516 2023] [php:notice] [pid 782400] [client XX.XXX.X.XX:41716] {"reqId":"0PbSh8pzh7LrDDbzUrPU","level":2,"time":"2023-10-01T10:25:03+00:00","remoteAddr":"XX.XXX>
[Sun Oct 01 12:25:18.540553 2023] [php:notice] [pid 782401] [client XX.XXX.X.XX:57642] {"reqId":"sfUVPB1FIqYihp9M1J0O","level":2,"time":"2023-10-01T10:25:18+00:00","remoteAddr":"XX.XXX>

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'XXXXXX',
  'memcache.local' => '\OC\Memcache\APCu',
  'default_phone_region' => 'DK',
  'passwordsalt' => 'XXXXXX',
  'secret' => 'XXXXXX',
  'trusted_domains' => 
  array (
    0 => 'XXXXXX',
    1 => 'XXXXXX',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '27.1.1.0',
  'overwrite.cli.url' => 'XXXXXX',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_XXXXXX',
  'dbpassword' => 'XXXXXX',
  'installed' => true,
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'enforce_theme' => '',
  'simpleSignUpLink.shown' => false,
  'filelocking.enabled' => true,
  'memcache.locking' => '\OC\Memcache\Redis',
  'redis' => array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
);

The output of your Apache/nginx/system log in /var/log/____:

`[Sun Oct 01 00:00:02.241651 2023] [mpm_prefork:notice] [pid 919] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sun Oct 01 00:00:02.241674 2023] [core:notice] [pid 919] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 01 10:43:10.355832 2023] [mpm_prefork:notice] [pid 919] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Oct 01 10:43:10.559135 2023] [mpm_prefork:notice] [pid 762438] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sun Oct 01 10:43:10.559714 2023] [core:notice] [pid 762438] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 01 10:58:08.640373 2023] [mpm_prefork:notice] [pid 762438] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Oct 01 10:58:08.824101 2023] [mpm_prefork:notice] [pid 762930] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sun Oct 01 10:58:08.824153 2023] [core:notice] [pid 762930] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 01 11:00:37.081710 2023] [mpm_prefork:notice] [pid 762930] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Oct 01 11:00:37.259428 2023] [mpm_prefork:notice] [pid 763042] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sun Oct 01 11:00:37.262209 2023] [core:notice] [pid 763042] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 01 11:45:57.761736 2023] [mpm_prefork:notice] [pid 763042] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Oct 01 11:45:57.931356 2023] [mpm_prefork:notice] [pid 766091] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sun Oct 01 11:45:57.931414 2023] [core:notice] [pid 766091] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 01 11:51:02.876215 2023] [mpm_prefork:notice] [pid 766091] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Oct 01 11:51:03.052844 2023] [mpm_prefork:notice] [pid 766272] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sun Oct 01 11:51:03.052893 2023] [core:notice] [pid 766272] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 01 11:56:46.176522 2023] [mpm_prefork:notice] [pid 766272] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Oct 01 11:56:46.351630 2023] [mpm_prefork:notice] [pid 766430] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sun Oct 01 11:56:46.351679 2023] [core:notice] [pid 766430] AH00094: Command line: '/usr/sbin/apache2'

$ php -m

[PHP Modules]
apcu
bcmath
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
imagick
intl
json
libxml
mbstring
memcache
memcached
msgpack
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Any help is appreciated

:+1: