Update von 24.0.1 auf 24.0.2 oder 24.0.3 nicht möglich

Seitdem ich Nextcloud 24.0.1 besitze, ist ein Update auf neuere Versionen nicht mehr möglich. Derselbe Fehler, den ich für die Version 24.0.3 beschreibe, trat auch bei der 24.0.2 auf.

Führe ich das Update über die Nextcloud-Website auf, kommen zunächst die normalen Schritte:

Bei Klick auf “Continue update” erscheint sofort der nächste Screen

… und anschließend bin ich auf der Startseite der Nextcloud, und ein verfügbares Update wird wieder angezeigt. Normalerweise geht ja NC in den Wartungsmodus und man führt dann noch die Dateiloperationen durch.

Selbes passiert passiert auf der Kommandozeile (Ubuntu)

cd /var/www/nextcloud/updater/ && sudo -u www-data php updater.phar

Nextcloud Updater - version: v24.0.0beta3-1-g67bf13b dirty

Current version is 24.0.1.

Update to Nextcloud 24.0.3 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-24.0.3.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

Continue 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] y
Nextcloud is already latest version

Keep maintenance mode active? [y/N] y
Maintenance mode kept active

Führe ich nur ein OCC Upgrade aus, selbes verhalten:

cd /var/www/nextcloud/ && sudo -u www-data php occ upgrade

Nextcloud is already latest version

Ich weiß nicht mehr was hier schiefläuft und finde nirgends einen ähnlichen Thread. Ich nutze Nextcloud jetzt seit vielen Jahren.

Wenn das update schreibt Update of code successful., dann hat das Update funktioniert.

Ein upgrade ist dann nicht mehr nötig.

Was zeigt denn https:///status.php ?

Gruß

installed	true
maintenance	false
needsDbUpgrade	false
version	"24.0.1.1"
versionstring	"24.0.1"
edition	""
productname	"Nextcloud"
extendedSupport	false

Das ist ja das doofe. Es bleibt immer bei der alten Version.

Ich habe hier genau das gleiche Problem mit Nextcloud Hub II 23.0.5 und der neuen Version Nextcloud 23.0.7. Ich kann die Probleme von chessn auch für diese Versionen bestätigen. Es kommt zwar die Meldung, dass es eine neue Version gibt. Wenn man aber den Webupdater anstößt, dann passiert rein gar nichts. Seltsamer Weise sind ja auch alle erforderlichen Schritte bereits mit einem grünen Haken als erledigt markiert. Auch der Weg über das CLI führt nicht weiter.

Das funktioniert ja auch nur, wenn die neuen Dateien aus dem ZIP- oder TAR-File entpackt wurden. Eventuell ist der Updater von der Version 24.0.1 bzw. 23.0.7 (beide vom 19.05.2022) fehlerhaft.
Ich würde das ZIP- oder TAR-File einfach einmal manuell im Nextcloud-Verzeichnis entpacken z.B.
tar -xf var/www/nextcloud-24.0.3.tar.bz2 -C ./var/www (die Pfade eventuell anpassen)
Danach die Nextcloud-URL aufrufen und mit dem Update fortfahren.

1 Like

@Crashandy : Danke für deinen Tipp. Das manuelle Update hat funktioniert. Ich hatte nur gehofft, es gäbe einen anderen Lösungsweg :slight_smile: Auf jeden Fall habe ich nun die 24.0.3

Ich kann auch nicht updaten von 24.0.2 auf 24.0.3. Es kommt immer das hier, egel welchen Weg ich nehme (web updater, updater.phar, oder manuelles Upgrade lt. Handbuch :arrow_forward: Upgrade manually — Nextcloud latest Administration Manual latest documentation). Hab jetzt die Backups zurückgespielt und bleibe erstmal auf 24.0.2. Total nervig!

Ich nutze seit ein paar Wochen Ubuntu 22.04 mit einer MYSQL Datenbank. Bin in einem Container auf Proxmox 7.2. Die letzten male waren Updates relativ problemlos möglich (die Backups die nextcloud macht stelle ich immer ab, sonst dauert das ewig.). Falls jemand eine Idee hat…

root@nextcloudnew:/var/www/nextcloud# sudo -u www-data php ./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
An unhandled exception has been thrown:
TypeError: OC\EventDispatcher\ServiceEventListener::__invoke(): Argument #1 ($event) must be of type OCP\EventDispatcher\Event, OC\EventDispatcher\GenericEventWrapper given, called in /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php on line 264 and defined in /var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php:65
Stack trace:
#0 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(264): OC\EventDispatcher\ServiceEventListener->__invoke()
#1 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(239): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
#2 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
#3 /var/www/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php(122): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#4 /var/www/nextcloud/lib/private/Files/Node/Node.php(118): OC\EventDispatcher\SymfonyAdapter->dispatch()
#5 /var/www/nextcloud/lib/private/Files/Node/File.php(133): OC\Files\Node\Node->sendHooks()
#6 /var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php(149): OC\Files\Node\File->delete()
#7 /var/www/nextcloud/lib/private/Template/JSCombiner.php(255): OC\Files\SimpleFS\SimpleFile->delete()
#8 /var/www/nextcloud/lib/private/Repair/ClearFrontendCaches.php(65): OC\Template\JSCombiner->resetCache()
#9 /var/www/nextcloud/lib/private/Repair.php(124): OC\Repair\ClearFrontendCaches->run()
#10 /var/www/nextcloud/lib/private/Updater.php(293): OC\Repair->run()
#11 /var/www/nextcloud/lib/private/Updater.php(133): OC\Updater->doUpgrade()
#12 /var/www/nextcloud/core/Command/Upgrade.php(235): OC\Updater->upgrade()
#13 /var/www/nextcloud/apps/collectives/vendor/symfony/console/Command/Command.php(298): OC\Core\Command\Upgrade->execute()
#14 /var/www/nextcloud/apps/collectives/vendor/symfony/console/Application.php(1024): Symfony\Component\Console\Command\Command->run()
#15 /var/www/nextcloud/apps/collectives/vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand()
#16 /var/www/nextcloud/apps/collectives/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#17 /var/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#18 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#19 /var/www/nextcloud/occ(11): require_once('...')

iIh habe hier (zum ersten mal) den selben Fehler beim Update von 24.03 auf 24.04
System ist ein Pi 4 mit NextcloudPI (Apache MySql Php 8)
Bin ebenfalls für Tipps dankbar…

An unhandled exception has been thrown:
TypeError: OC\EventDispatcher\ServiceEventListener::__invoke(): Argument #1 ($event) must be of type OCP\EventDispatcher\Event, OC\EventDispatcher\GenericEventWrapper given, called in /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php on line 264 and defined in /var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php:65
Stack trace:
#0 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(264): OC\EventDispatcher\ServiceEventListener->__invoke()
#1 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(239): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
#2 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
#3 /var/www/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php(122): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#4 /var/www/nextcloud/lib/private/Files/Node/Node.php(118): OC\EventDispatcher\SymfonyAdapter->dispatch()
#5 /var/www/nextcloud/lib/private/Files/Node/File.php(133): OC\Files\Node\Node->sendHooks()
#6 /var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php(149): OC\Files\Node\File->delete()
#7 /var/www/nextcloud/lib/private/Template/JSCombiner.php(255): OC\Files\SimpleFS\SimpleFile->delete()
#8 /var/www/nextcloud/lib/private/Repair/ClearFrontendCaches.php(65): OC\Template\JSCombiner->resetCache()
#9 /var/www/nextcloud/lib/private/Repair.php(124): OC\Repair\ClearFrontendCaches->run()
#10 /var/www/nextcloud/core/Command/Maintenance/Repair.php(125): OC\Repair->run()
#11 /var/www/nextcloud/apps/collectives/vendor/symfony/console/Command/Command.php(298): OC\Core\Command\Maintenance\Repair->execute()
#12 /var/www/nextcloud/apps/collectives/vendor/symfony/console/Application.php(1024): Symfony\Component\Console\Command\Command->run()
#13 /var/www/nextcloud/apps/collectives/vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand()
#14 /var/www/nextcloud/apps/collectives/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#15 /var/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#16 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#17 /var/www/nextcloud/occ(11): require_once('...')

Bei mir hat es geholfen die App recognize für dS Update zu deaktivieren.

1 Like

Die App recognize ist die Ursache für das Problem auch in meinem Fall gewesen. Nach der Deaktivierung läuft das Upgrade fehlerfrei durch.

1 Like

Danke, das ist ein Ansatz, das versuche ich!

Das war’s, das Update lief hier jetzt ganz problemlos durch!

1 Like

This topic was automatically closed after 20 hours. New replies are no longer allowed.