No memory cache has been configured... but APCu is configured

Nextcloud version (eg, 20.0.5): 23.0.0.10
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.41
PHP version (eg, 7.4): 8.0.14

The issue you are facing:
I have the following statements in my setup warnings:

There are some warnings regarding your setup.

  • No memory cache has been configured. To enhance performance, please configure a memcache, if available. Further information can be found in the documentation :arrow_upper_right:.
  • This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.
    imagick

But I have configured the config.php file:

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

Also in the php.ini file:

apc.enable_cli=1

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Every time and after every reboot

The output of your Nextcloud log in Admin > Logging:

Error	PHP	Required parameter $owner follows optional parameter $order at /var/www/nextcloud/apps/deck/lib/Controller/CardApiController.php#97

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

GNU nano 4.8 /var/www/nextcloud/config/config.php
<?php
$CONFIG = array (
'instanceid' => 'xxx,
'passwordsalt' => 'xxxx',
'secret' => 'xxxx',
'trusted_domains' =>
array (
0 => 'cloud.xxxxx.ch',

),
'datadirectory' => '/home/data',
'dbtype' => 'mysql',
'version' => '23.0.0.10',
'overwrite.cli.url' => 'http://cloud.xxxxx.ch',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'xxx',
'dbpassword' => 'xxxxxx',
'installed' => true,
'defaultphoneregion' => 'CH',
'twofactor_enforced' => 'true',
'twofactorenforcedgroups' =>
array (
0 => 'admin',

),

'twofactorenforcedexcluded_groups' =>
array (
),

'maintenance' => false,
'mailfromaddress' => 'nextcloud',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'xxx',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtphost' => 'eos.ssl.hosttech.eu',
'mail_smtpport' => '465',
'mail_smtpauth' => 1,
'mail_smtpname' => 'xxxx.ch',
'mail_smtppassword' => 'xxxx',
'mail_smtpsecure' => 'ssl',
'appinstalloverwrite' =>
array (
0 => 'documentserver_community',
'memcache.local' => '\OC\Memcache\APCu',
),

);

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

[Wed Jan 05 00:00:01.950054 2022] [mpm_prefork:notice] [pid 828] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations

[Wed Jan 05 00:00:01.950079 2022] [core:notice] [pid 828] AH00094: Command line: '/usr/sbin/apache2'

Logging at warning level to file: /tmp/coolwsd.4TgdrsGYY9/coolwsd.log

[Wed Jan 05 07:21:57.581908 2022] [php:warn] [pid 9434] [client 10.0.0.3:55430] PHP Warning:  Undefined array key "Content-Type" in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 346

[Wed Jan 05 07:21:57.581939 2022] [php:warn] [pid 9434] [client 10.0.0.3:55430] PHP Warning:  Undefined array key 1 in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 347

Security: coolforkit incorrect user-name, other than 'cool'

Init vcl

preload: merged ucpchelp1 msforms vbaobj pcr vbaswobj sw animcore hwp chartcore solver sc wpftcalc ucpcmis1 wpftdraw sd svgfilter graphicfilter wpftimpress sdfilt sm pdffilter PresentationMinimizer >

Disabled: ucpftp1 rptxml dbu rptui rpt mork odbc sdbc2 cmdmail PresenterScreen abp dbp

Allowlisted languages: deDE el enGB enUS esES frFR hu it nl ptBR pt_PT ru

Preloading dictionaries: deDE enUS frFR itIT nlNL ptBR ruRU enGB nlBE ptPT es_ES

Preloading thesauri: deDE enUS frFR itIT nlNL ptBR ruRU enGB nlBE ptPT es_ES

Preload icons

Preload languages

Preload fonts

Ready to accept connections on port 9983.

cat: /sys/class/net/wlp58s0/speed: Invalid argument

cat: /sys/class/net/wlp58s0/duplex: Invalid argument


I think it is not correct configured:

Perhaps this way:

'appinstalloverwrite' =>
array (
0 => 'documentserver_community',
),
'memcache.local' => '\OC\Memcache\APCu',

Or at another position e.g.:

  'updater.release.channel' => 'stable',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'app_install_overwrite' =>

Edit:

I think it is not correct. Correct is:

 'app_install_overwrite' =>

I think you need the correct syntax. documentserver_community is only supported to Nextcloud 22 but you use Nextcloud 23.

1 Like

@ devnull
Thank you!

The repositioning did the trick. I did it yesterday too but this time it seems to work.
Thank you and have a great day!

1 Like