Nextcloud 18.0.3
OS Ubuntu 18.04
mariadb version
MariaDB [(none)]> select @@version as version;
±-------------------------------------------+
| version |
±-------------------------------------------+
| 10.3.22-MariaDB-1:10.3.22+maria~bionic-log
nginx version: nginx/1.16.1
php version 7.4
issue:
log file is filled every 5 mins with:
“user”:"–",“app”:“cli”,“method”:"",“url”:"–",“message”:“Memcache \OC\Memcache\APCu not available for local cache”,“userAgent”:"–",“version”:“18.0.3.0”}
The output of your config.php file in `/usr/share/nginx/nextcloud/config/config.php (make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'oc95enutecg7',
'passwordsalt' => 'zxhlweodhogedg/xxxxxxGTG',
'secret' => 'lidleofnegasl/odkeoet34455ldfoewc',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'nextcloud',
2 => '10.10.10.10',
3 => 'myserver.com',
),
'datadirectory' => '/mount1/nextcloud/data',
'overwrite.cli.url' => 'https://myserver.com/',
'dbtype' => 'mysql',
'version' => '18.0.3.0',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'user_for_maria',
'dbpassword' => 'password_for_db',
'installed' => true,
'memcache.local' => '\OC\Memcache\APCu',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'maintenance' => false,
'theme' => '',
'log_type' => 'file',
'logfile' => '/mount1/nextcloud/data/nextcloud.log',
'logdateformat' => 'F d, Y H:i:s',
'logtimezone' => 'America/New_York',
'log_rotate_size' => 104857600,
'loglevel' => 1,
'mail_smtpsecure' => 'tls',
'mail_smtpauth' => 1,
'mail_from_address' => 'my-mail',
'mail_domain' => 'gmail.com',
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpport' => '587',
'mail_smtpname' => 'my.email@gmail.com',
'mail_smtppassword' => 'password_for_it',
'trusted_proxies' =>
array (
0 => '192.168.1.254',
),
'overwritehost' => 'myserver.com',
'overwriteprotocol' => 'https',
'overwritewebroot' => '',
'updater.release.channel' => 'stable',
'app_install_overwrite' =>
array (
0 => 'apporder',
1 => 'ocsms',
),
'simpleSignUpLink.shown' => false,
'has_rebuilt_cache' => true,
'mail_sendmailmode' => 'smtp',
);
Ran
/etc/php/7.4/fpm$ php -a
Interactive mode enabled
php > var_dump(ini_get(‘apc.enable_cli’));
string(1) “0”
Then ran:
php > phpinfo(INFO_MODULES);
phpinfo()
apc
APC Compatibility => 1.0.5
apcu
APCu Support => Disabled
Version => 5.1.18
APCu Debugging => Disabled
MMAP Support => Enabled
MMAP File Mask =>
Serialization Support => Disabled
Build Date => Dec 19 2019 10:45:24
after putting apc.enable_cli=1 in php.ini on this path; /etc/php/7.4/cli/php.ini
I now see APCu Support is enabled as the output shows below:
php > phpinfo(INFO_MODULES);
phpinfo()
apc
APC Compatibility => 1.0.5
apcu
APCu Support => Enabled
Version => 5.1.18
APCu Debugging => Disabled
MMAP Support => Enabled
MMAP File Mask =>
Serialization Support => php
Build Date => Dec 19 2019 10:45:24
Restarted nginx and php. Rebooted the server, still the log file gets new entries every 5 mins with
message":“Memcache \OC\Memcache\APCu not available for local cache”
Any idea how to resolve this? I do not have any other warnings on admin settings page.
Thanks in advance.