CLI apcu not available

Nextcloud version nc 13 rc2
Operating system and version ubuntu16.04 lts
Apache or nginx version nginx
PHP version 7.0

The issue you are facing:
I see on Nextcloud log:
Info cli Memcache \OC\Memcache\APCu not available for distributed cache a minute ago

Previously no that log

Is this the first time you’ve seen this error? see it last week

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

Info cli Memcache \OC\Memcache\APCu not available for distributed cache a minute ago

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

<?php
$CONFIG = array (
  'instanceid' => 'klll....',
  'passwordsalt' => ....
  'secret' => '...',
  'trusted_domains' =>
  array (
    0 => '...',
  ),
  'datadirectory' => /.../
  'overwrite.cli.url' => 'https://...
  'dbtype' => ...
  'version' => '13.0.0.11',
  'dbname' => ...
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '...,
  'dbpassword' => '....,
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => ...
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => '...',
  'mail_smtpauth' => 1,
  'mail_smtphost' => ...',
  'mail_smtpport' => ...
  'mail_smtpname' => '...',
  'mail_smtppassword' => ...
  'mail_smtpsecure' => 'tls',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 1,
  'updater.release.channel' => 'beta',

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

PASTE HERE

so is this somethng to ignore, or how to resolve this?

Maybe your server is missing php-acpu package. Otherwise, it’s an Info message (not so important) that could go away by changing the loglevel in config.php

Add apc.enable_cli=1 to your /etc/php/7.0/mods-available/apcu.ini or similar one, depending on your PHP version. Then restart PHP/webserver

APCu is by default not active for CLI calls, e.g. cron or occ command.

2 Likes