Update Nextcloud 20.08 auf Nextcloud 21 Fehler

Ich habe heute mein Testsystem von Nextcloud 20.08 auf Nextcloud 21.00 upgedated. Ich habe dafür den Webupdater benutzt. Das Update bleibt aber im Maintenance Modus stehen:

Wenn ich versuche den Wartungsmodus über die Konsole zu beenden tritt folgender Fehler auf:
sudo -u apache php occ maintenance:mode --off
PHP Fatal error: Allowed memory size of 8589934592 bytes exhausted (tried to allocate 20480 bytes) in /home/httpd/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php on line 133

Oder repair

sudo -u apache php occ maintenance:repair
PHP Fatal error: Allowed memory size of 8589934592 bytes exhausted (tried to allocate 20480 bytes) in /home/httpd/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php on line 133

Mein System: Centos7 x64
PHP/PHP-fpm 7.4.5
Apache 2.4.43

hat sich hier etwas an der Grundkonfiguration geändert?
Ich bekomme mein System nicht mehr aus dem Maintenace Mode!?

Grüße
Daniel

hast du schon mal nach den Fehlermeldungen hier im Forim gesucht? Möglich, dass es dafür wertvolle Tipps gibt…

Also hier meine Lösung für alle die auf das gleiche Problem laufen.

Zunächst habe ich in der config.php den Eintrag von, 'maintenance’ => true,
auf 'maintenance’ => false, gesetzt
service httpd restart, service php-fpm restart
Und ich konnte mein Update dann mit dem Webupdater beenden
OCC lief immer noch auf den Fehler. Ich ahtte in der config.php apcu enabled. Mit Nextcloud 21 benötigt php noch einen Eintrag in meiner /etc/php.d/40-apcu.ini
apc.enable_cli=1
Danach ein angemeckerter fehlender Eintrag in der config.php setzen (für DE):
‘default_phone_region’ => ‘ISO 3166-2:DE’,
service httpd restart, service php-fpm restart
Fehlende Datenbankindizies:
sudo -u apache php occ db:add-missing-indices

sudo -u apache php occ db:add-missing-indices
Check indices of the share table.
Check indices of the filecache table.
Adding additional size index to the filecache table, this can take some time…
Filecache table updated successfully.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.

Und die Nextcloud, occ läuft wieder bis auf diese beiden Meldungen:
grafik

“/.well-known/webfinger”
/.well-known/nodeinfo"
Leider sagt die verlinkte Doku gar nicht über den korrekten Eintrag dieser beiden Punkte aus. Hat mir hier jemand einen Tip?
Hab es jetzt gelöst!! Apache braucht diese Einträge :smile:
Redirect 301 /.well-known/webfinger /nextcloud/index.php/.well-known/webfinger
Redirect 301 /.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo
und alles ist gut!

1 Like