Zum Inhalt springen

Nextcloud/Update: Unterschied zwischen den Versionen

Aus Foxwiki
K Textersetzung - „wikitable“ durch „table table-striped table-hover“
 
(83 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
== Update auf der Konsole durchführen ==
'''Nextcloud/update''' - Update auf der Konsole


<syntaxhighlight lang="bash" highlight="1,2,3" line>
== Beschreibung ==
{| class="table table-striped table-hover options col1center big"
! Schritt !!
|-
| 1 || [[#Updater|Updater starten]]
|-
| 2 || [[#occ upgrade|occ upgrade]]
|-
| 3 || [[#Maintenance-Mode|Maintenance-Mode abschalten]]
|-
| 4 || [[#PHP-FPM|php8.2-fpm.service]] neu starten
|}
 
== Durchführung ==
<syntaxhighlight lang="bash" highlight="1" line>
ls
</syntaxhighlight>
<syntaxhighlight lang="bash" highlight="" line>
3rdparty    config    dist    occ        public.php themes
apps      console.php index.html ocs        remote.php updater
AUTHORS    COPYING  index.php  ocs-provider    resources  version.php
composer.json core    lib    package.json    robots.txt
composer.lock cron.php  LICENSES  package-lock.json status.php
</syntaxhighlight>
 
=== Updater ===
<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
sudo -u web13 php8.2 --define apc.enable_cli=1 occ upgrade
sudo -u web13 php --define apc.enable_cli=1 occ maintenance:mode --off
</syntaxhighlight>
</syntaxhighlight>


== Fehlerbehebung ==
<syntaxhighlight lang="bash" highlight="22,44" line>
=== ''Downgrading is not supported'' ===
Nextcloud Updater - version: v29.0.0-23-g6a5f9ec
''Downgrading is not supported and is likely to cause unpredictable issues (from 29.0.5.1 to 29.0.4.1) ''


systemctl restart apache2.service
Current version is 30.0.5.


systemctl restart php8.2-fpm.service
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 ↗


=== ''APCu not available for local cache'' ===
Steps that will be executed:
Nach dem Update von Nextcloud melded das “occ”-Kommando
[ ] Check for expected files
$ php occ upgrade
[ ] Check for write permissions
An unhandled exception has been thrown:
[ ] Create backup
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done


==== Lösung ====
Start update? [y/N] y
; ACP auf der Kommandozeile aktivieren
/etc/php/[PHP-Version]/cli/php.ini
apc.enable_cli=1


Hinzufügen von ''--define apc.enable_cli=1'' auf der Kommandozeile
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.
$ php '''--define apc.enable_cli=1''' occ upgrade


=== Step … is currently in process ===
[✔] Check for expected files
; ''Step … is currently in process. Please call this command later''
[✔] 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


===== Problem =====
Update of code successful.
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:
Should the "occ upgrade" command be executed? [Y/n] n
fix-nextcloud-step-is-currentlyprocess-please-call-this-command-later.txt             
Please now execute "./occ upgrade" to finish the upgrade.
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 <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
</syntaxhighlight>
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
=== occ upgrade ===
You can also just delete the directory
<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
rm -rf data/updater-occ*
</syntaxhighlight>


# https://techoverflow.net/2022/06/17/how-to-fix-nextcloud-step-is-currently-in-process-please-call-this-command-later/
<syntaxhighlight lang="bash" highlight="" line>
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>


=== Maintenance-Mode ===
; Maintenance-Mode abschalten
<syntaxhighlight lang="bash" highlight="1" line copy>
sudo -u web13 php8.2 --define apc.enable_cli=1 occ maintenance:mode --off
</syntaxhighlight>
<syntaxhighlight lang="bash" highlight="0" line>
Maintenance mode disabled
</syntaxhighlight>
=== PHP-FPM ===
; PHP-FPM neu starten
<syntaxhighlight lang="bash" highlight="1,2,3" line copy>
sudo systemctl restart php8.2-fpm.service
</syntaxhighlight>
<noinclude>
== Anhang ==
=== Siehe auch ===
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}
=== Links ===
==== Projekt ====
==== Weblinks ====
# 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/Installation]]
 
</noinclude>

Aktuelle Version vom 29. Juli 2026, 11:01 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

Durchführung

ls
3rdparty    config    dist    occ        public.php themes
apps      console.php index.html ocs        remote.php updater
AUTHORS    COPYING   index.php  ocs-provider    resources  version.php
composer.json core     lib     package.json    robots.txt
composer.lock cron.php   LICENSES  package-lock.json status.php

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

Projekt

  1. https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html