Nextcloud/update: Unterschied zwischen den Versionen

Aus Foxwiki
Zeile 11: Zeile 11:
  OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
  OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)


=== Lösung ===
==== Lösung ====
“/etc/php/[PHP-Version]/cli/php.ini” muss folgenden Eintrag enhalten
“/etc/php/[PHP-Version]/cli/php.ini” muss folgenden Eintrag enhalten
  apc.enable_cli=1
  apc.enable_cli=1
Zeile 19: Zeile 19:
auf der Kommandozeile ausreichen
auf der Kommandozeile ausreichen


==== Step … is currently in process. Please call this command later. ====
=== Step … is currently in process. Please call this command later ===
===== Problem =====
===== Problem =====
While trying to update Nextcloud using the command line (e.g. SSH) using a command like
While trying to update Nextcloud using the command line (e.g. SSH) using a command like

Version vom 10. August 2023, 09:27 Uhr

# sudo -u web13 php8.2 --define apc.enable_cli=1 updater/updater.phar
  1. https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html

How to fix Nextcloud

APCu not available for local cache

Nach dem Update von Nextcloud melded das “occ”-Kommando

$ php occ upgrade
An unhandled exception has been thrown:
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

Lösung

“/etc/php/[PHP-Version]/cli/php.ini” muss folgenden Eintrag enhalten

apc.enable_cli=1

Alternativ sollte das Hinzufügen des Parameters

--define apc.enable_cli=1

auf der Kommandozeile ausreichen

Step … is currently in process. Please call this command later

Problem

While trying to update Nextcloud using the command line (e.g. SSH) using a command like

fix-nextcloud-step-is-currentlyprocess-please-call-this-command-later.sh              
php updater/updater.phar

you see the following error message:

fix-nextcloud-step-is-currentlyprocess-please-call-this-command-later.txt               
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4
Step 5 is currently in process. Please call this command later.
Solution

No matter if the step that appears to be currently in progress is Step 3, Step 5 or any other step, the solution is always the same: Reset the update by deleting the data/updater-occ[random-string] folder.

Recommended

If you are paranoid about losing data, just rename the directory:

fix-nextcloud-step-is-currentlyprocess-please-call-this-command-later.sh               
mv data/updater-occ* ../DELETEME-updater
Not recommended

You can also just delete the directory

fix-nextcloud-step-is-currentlyprocess-please-call-this-command-later.txt                
rm -rf data/updater-occ*
  1. https://techoverflow.net/2022/06/17/how-to-fix-nextcloud-step-is-currently-in-process-please-call-this-command-later/