Nextcloud/Update: Unterschied zwischen den Versionen

Aus Foxwiki
Subpages:
K Textersetzung - „Nextcloud/Verwaltung“ durch „Nextcloud/Konfiguration“
 
(62 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
== Update auf der Konsole durchführen ==
'''Nextcloud/Update''' - Update auf der Konsole
# '''sudo -u web13 php8.2 --define apc.enable_cli=1 updater/updater.phar'''


# https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html
== Beschreibung ==
{| class="wikitable options col1center big"
! Schritt !! Beschreibung
|-
| 1 || [[#Updater|Updater starten]]
|-
| 2 || [[#occ upgrade|occ upgrade]]
|-
| 3 || [[#Maintenance-Mode|Maintenance-Mode abschalten]]
|-
| 4 || [[#PHP-FPM|php8.2-fpm.service]] neu starten
|}


== Fehlerbehebung ==
== Anwendung ==
=== ''APCu not available for local cache'' ===
=== Updater ===
Nach dem Update von Nextcloud melded das “occ”-Kommando
<syntaxhighlight lang="bash" highlight="1" line>
$ php occ upgrade
sudo -u web13 php8.2 --define apc.enable_cli=1 updater/updater.phar
An unhandled exception has been thrown:
</syntaxhighlight>
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)


==== Lösung ====
=== occ upgrade ===
; ACP auf der Kommandozeile aktivieren
<syntaxhighlight lang="bash" highlight="1,2,3" line>
/etc/php/[PHP-Version]/cli/php.ini
sudo -u web13 php8.2 --define apc.enable_cli=1 occ upgrade
apc.enable_cli=1
</syntaxhighlight>


Hinzufügen von ''--define apc.enable_cli=1'' auf der Kommandozeile
=== Maintenance-Mode ===
$ php '''--define apc.enable_cli=1''' occ upgrade
; Maintenance-Mode abschalten
<syntaxhighlight lang="bash" highlight="1,2,3" line>
sudo -u web13 php8.2 --define apc.enable_cli=1 occ maintenance:mode --off
</syntaxhighlight>


=== ''Step … is currently in process. Please call this command later'' ===
=== PHP-FPM ===
===== Problem =====
; PHP-FPM neu starten
While trying to update Nextcloud using the command line (e.g. SSH) using a command like
<syntaxhighlight lang="bash" highlight="1,2,3" line>
fix-nextcloud-step-is-currentlyprocess-please-call-this-command-later.sh             
sudo systemctl restart php8.2-fpm.service
php updater/updater.phar
</syntaxhighlight>


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 =====
<noinclude>
No matter if the step that appears to be currently in progress is <code>Step 3</code>, <code>Step 5</code> or any other step, the solution is always the same: '''Reset the update by deleting the <code>data/updater-occ[random-string]</code> 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*


== Anhang ==
=== Siehe auch ===
{{Special:PrefixIndex/{{BASEPAGENAME}}}}
==== Links ====
===== Projekt =====
===== Weblinks =====
# https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html
# https://techoverflow.net/2022/06/17/how-to-fix-nextcloud-step-is-currently-in-process-please-call-this-command-later/
# https://techoverflow.net/2022/06/17/how-to-fix-nextcloud-step-is-currently-in-process-please-call-this-command-later/


[[Kategorie:Nextcloud/Konfiguration]]
[[Kategorie:Nextcloud/Konfiguration]]
</noinclude>

Aktuelle Version vom 26. Oktober 2024, 01:10 Uhr

Nextcloud/Update - Update auf der Konsole

Beschreibung

Schritt Beschreibung
1 Updater starten
2 occ upgrade
3 Maintenance-Mode abschalten
4 php8.2-fpm.service neu starten

Anwendung

Updater

sudo -u web13 php8.2 --define apc.enable_cli=1 updater/updater.phar

occ upgrade

sudo -u web13 php8.2 --define apc.enable_cli=1 occ upgrade

Maintenance-Mode

Maintenance-Mode abschalten
sudo -u web13 php8.2 --define apc.enable_cli=1 occ maintenance:mode --off

PHP-FPM

PHP-FPM neu starten
sudo systemctl restart php8.2-fpm.service



Anhang

Siehe auch

Links

Projekt
Weblinks
  1. https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html
  2. https://techoverflow.net/2022/06/17/how-to-fix-nextcloud-step-is-currently-in-process-please-call-this-command-later/