Bug 29293 - Nextcloud error: APCu not available for local cache, corrected by manual adjustment of our 99_apcu.ini
Summary: Nextcloud error: APCu not available for local cache, corrected by manual adju...
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Marc Krämer
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-27 11:25 CEST by christian barranco
Modified: 2023-09-07 21:39 CEST (History)
5 users (show)

See Also:
Source RPM: php-apcu-5.1.19-1.mga8
CVE:
Status comment:


Attachments

Description christian barranco 2021-07-27 11:25:06 CEST
Description of problem:
switching my Nextcloud server to maintenance mode by sudo -u apache php /var/www/nextcloud/occ maintenance:mode --on

I get the error: "Memcache \\OC\\Memcache\\APCu not available for local cache”

Version-Release number of selected component (if applicable):
php-apcu-5.1.19-1.mga8 and it might have started to happen after PHP 8.0.8 update (I am not certain though).

I have an nginx server with php-fpm:
* nginx version: nginx/1.18.0
* Zend Engine v4.0.8, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.8, Copyright (c), by Zend Technologies

I have the latest stable Nextcloud version 21.0.3

How reproducible: always on my server until I fixed it.


Steps to Reproduce:
1. Install Nextcloud with Nginx server using wiki: https://wiki.mageia.org/en/Nextcloud_server_installation_with_NGINX
2. Run sudo -u apache php /var/www/nextcloud/occ maintenance:mode --on (actually, any occ command will lead to the save error)

FIX:
I fixed it using the recommended solution on the nextcloud forum: https://help.nextcloud.com/t/nc13-memcache-oc-memcache-apcu-not-available-for-local-cache/31027

Meaning I had to edit /etc/php.d/99_apcu.ini and add the following line:
apc.enable_cli=1


I am sure I was not getting this error when I installed the first time Nextcloud on Mageia 8 and php 8.0.2 (it is when I wrote the wiki in reference).


Is it connected to PHP updates or to Nextcloud updates? 
I can't say myself.

Do you have an idea? Should our /etc/php.d/99_apcu.ini be modified?

Let me know how I can help.

Kind regards.
Comment 1 Aurelien Oudelet 2021-07-27 21:35:46 CEST
Should we update nextcloud and this package?

Add some useful peoples.

CC: (none) => fri, joequant, mageia, mageia, ouaurelien

Morgan Leijström 2021-07-27 22:41:06 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=28511

Marc Krämer 2021-07-30 10:56:25 CEST

Assignee: bugsquad => mageia

Comment 2 Marc Krämer 2021-07-30 11:04:24 CEST
I assume there is a change in nextcloud which leads to this notice.

In general you will not need to have any cache in cli mode. Most scripts only run once in while, so caching is not needed. 
Even the option is already present in /etc/php.d/99_apcu.ini - so it is up to you to enable this.

I don't see the need to change sth.
Comment 3 Marc Krämer 2023-09-07 21:39:02 CEST
no need to change

Resolution: (none) => WONTFIX
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.