Zum Inhalt springen

Nextcloud/Update: Unterschied zwischen den Versionen

Aus Foxwiki
 
(36 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
'''Nextcloud/Update''' - Update auf der Konsole durchführen
'''Nextcloud/update''' - Update auf der Konsole


== Beschreibung ==
== Beschreibung ==
{| class="wikitable options col1center big"
{| class="wikitable options col1center big"
! Schritt !! Beschreibung
! Schritt !!
|-
|-
| 1 || [[#Updater|Updater starten]]
| 1 || [[#Updater|Updater starten]]
Zeile 15: Zeile 15:


== Anwendung ==
== Anwendung ==
<syntaxhighlight lang="bash" highlight="1,23,41" line copy>
/var/www/cloud.foxtom.de/web/nextcloud
</syntaxhighlight>
=== Updater ===
=== Updater ===
<syntaxhighlight lang="bash" highlight="1" line>
<syntaxhighlight lang="bash" highlight="1" line copy>
sudo -u web13 php8.2 --define apc.enable_cli=1 updater/updater.phar
sudo -u web13 php8.2 --define apc.enable_cli=1 updater/updater.phar
</syntaxhighlight>
</syntaxhighlight>


=== occ upgrade ===
<syntaxhighlight lang="bash" highlight="22,44" line>
<syntaxhighlight lang="bash" highlight="1,2,3" line>
Nextcloud Updater - version: v29.0.0-23-g6a5f9ec
sudo -u web13 php8.2 --define apc.enable_cli=1 occ upgrade
</syntaxhighlight>


=== Maintenance-Mode ===
Current version is 30.0.5.
; 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>


=== PHP-FPM ===
Update to Nextcloud 30.0.7 available. (channel: "stable")
; PHP-FPM neu starten
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-30.0.7.zip
<syntaxhighlight lang="bash" highlight="1,2,3" line>
Open changelog ↗
sudo systemctl restart php8.2-fpm.service
</syntaxhighlight>


=== Fehlerbehebung ===
Steps that will be executed:
==== Downgrading is not supported ====
[ ] Check for expected files
''Downgrading is not supported and is likely to cause unpredictable issues (from 29.0.5.1 to 29.0.4.1) ''
[ ] Check for write permissions
<syntaxhighlight lang="bash" highlight="1" line>
[ ] Create backup
sudo systemctl restart php8.2-fpm.service
[ ] Downloading
</syntaxhighlight>
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done


==== APCu not available for local cache ====
Start update? [y/N] y
Nach dem Update von Nextcloud melded das “occ”-Kommando
<syntaxhighlight lang="bash" highlight="1" line>
$ 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?)
</syntaxhighlight>


; Lösung
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.
; Hinzufügen von ''--define apc.enable_cli=1'' auf der Kommandozeile


<syntaxhighlight lang="bash" highlight="1" line>
[✔] Check for expected files
sudo -u php --define apc.enable_cli=1 occ upgrade
[✔] Check for write permissions
</syntaxhighlight>
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done


; [[ACP]] für [[PHP]] auf der Kommandozeile generell aktivieren
Update of code successful.
Direktive '''apc.enable_cli=1''' der passenden php.ini aktivieren


<syntaxhighlight lang="bash" highlight="1" line>
Should the "occ upgrade" command be executed? [Y/n] n
sudo editor /etc/php/[PHP-Version]/cli/php.ini
Please now execute "./occ upgrade" to finish the upgrade.
apc.enable_cli=1
</syntaxhighlight>


==== Schritt … wird derzeit ausgeführt ====
''Schritt … wird derzeit ausgeführt. Bitte rufen Sie diesen Befehl später auf''


; Problem
Beim Versuch, Nextcloud über die Befehlszeile mit einem Befehl wie
<syntaxhighlight lang="bash" highlight="1" line>
fix-nextcloud-step-is-currentlyprocess-please-call-this-command-later.sh
php updater/updater.phar
</syntaxhighlight>
</syntaxhighlight>


wird folgende Fehlermeldung angezeigt
=== occ upgrade ===
<syntaxhighlight lang="bash" highlight="1" line>
<syntaxhighlight lang="bash" highlight="1" line copy>
„fix-nextcloud-step-is-currentlyprocess-please-call-this-command-later.txt“
sudo -u web13 php8.2 --define apc.enable_cli=1 occ upgrade
Nextcloud Updater – Version: v20.0.0beta4-11-g68fa0d4
</syntaxhighlight>
</syntaxhighlight>


; Lösung
<syntaxhighlight lang="bash" highlight="" line>
Unabhängig davon, ob es sich bei dem Schritt, der gerade ausgeführt wird, um <code>Schritt 3</code>, <code>Schritt 5</code> oder einen anderen Schritt handelt, ist die Lösung immer dieselbe: '''Setzen Sie das Update zurück, indem Sie den Ordner <code>data/updater-occ[random-string]</code> löschen.'''
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Updating database schema
Updated database
Updating <app_api> ...
Updated <app_api> to 4.0.3
Update app bookmarks from App Store
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Resetting log level
</syntaxhighlight>


; Empfohlen
=== Maintenance-Mode ===
Wenn Sie Angst haben, Daten zu verlieren, benennen Sie das Verzeichnis einfach um
; Maintenance-Mode abschalten
<syntaxhighlight lang="bash" highlight="1" line>
<syntaxhighlight lang="bash" highlight="1" line copy>
fix-nextcloud-step-is-currentlyprocess-please-call-this-command-later.sh
sudo -u web13 php8.2 --define apc.enable_cli=1 occ maintenance:mode --off
mv data/updater-occ* ../DELETEME-updater
</syntaxhighlight>
<syntaxhighlight lang="bash" highlight="0" line>
Maintenance mode disabled
</syntaxhighlight>
</syntaxhighlight>


; Nicht empfohlen
=== PHP-FPM ===
Sie können auch einfach das Verzeichnis löschen
; PHP-FPM neu starten
<syntaxhighlight lang="bash" highlight="1" line>
<syntaxhighlight lang="bash" highlight="1,2,3" line copy>
fix-nextcloud-step-is-currentlyprocess-please-call-this-command-later.txt
sudo systemctl restart php8.2-fpm.service
rm -rf data/updater-occ*
</syntaxhighlight>
</syntaxhighlight>


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


[[Kategorie:Nextcloud/Konfiguration]]
[[Kategorie:Nextcloud]]


</noinclude>
</noinclude>

Aktuelle Version vom 28. Juni 2025, 08:28 Uhr

Nextcloud/update - Update auf der Konsole

Beschreibung

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

Anwendung

/var/www/cloud.foxtom.de/web/nextcloud

Updater

sudo -u web13 php8.2 --define apc.enable_cli=1 updater/updater.phar
Nextcloud Updater - version: v29.0.0-23-g6a5f9ec

Current version is 30.0.5.

Update to Nextcloud 30.0.7 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-30.0.7.zip
Open changelog 
Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[] Check for expected files
[] Check for write permissions
[] Create backup
[] Downloading
[] Verify integrity
[] Extracting
[] Enable maintenance mode
[] Replace entry points
[] Delete old files
[] Move new files in place
[] Done

Update of code successful.

Should the "occ upgrade" command be executed? [Y/n] n
Please now execute "./occ upgrade" to finish the upgrade.

occ upgrade

sudo -u web13 php8.2 --define apc.enable_cli=1 occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Updating database schema
Updated database
Updating <app_api> ...
Updated <app_api> to 4.0.3
Update app bookmarks from App Store
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Resetting log level

Maintenance-Mode

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

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