Netcloud Update All Inkl

Hallo,

ich komme leider nicht mehr weiter.

Habe ein Update über das Webinerface ausgeführt auf 18.0.7. Da kommt es immer zum Fehler.
Er stoppt immer bei Punkt:

Aktualisiere die App “documentserver_community” aus dem App-Store
Es ist ein Fehler aufgetreten.

Habe über SSH Zugriff und hab vorher die Zugriffsrechte bei der Datei OCC auf 744 gesetzt
Es kommt beim Befehl:
sudo -u www-data php occ immer der Fehler bash: sudo: command not found

Bei Befehl: ./occ encryption:status kommt
The current PHP memory limit is below the recommended value of 512MB.
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

enabled: false
defaultModule:

Bei Befehl: ./occ upgrate
kommt die Meldung:

The current PHP memory limit is below the recommended value of 512MB.
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
Set log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Checking for update of app accessibility in appstore
Checked for update of app “accessibility” in appstore
Checking for update of app activity in appstore
Checked for update of app “activity” in appstore
Checking for update of app bruteforcesettings in appstore
Checked for update of app “bruteforcesettings” in appstore
Checking for update of app calendar in appstore
Checked for update of app “calendar” in appstore
Checking for update of app cloud_federation_api in appstore
Checked for update of app “cloud_federation_api” in appstore
Checking for update of app comments in appstore
Checked for update of app “comments” in appstore
Checking for update of app contacts in appstore
Checked for update of app “contacts” in appstore
Checking for update of app dav in appstore
Checked for update of app “dav” in appstore
Checking for update of app documentserver_community in appstore
Update app documentserver_community from appstore
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 314314904 bytes) in /www/htdocs/wXXXXXX/cloud/lib/private/Installer.php on line 285

Ich habe vorher noch in der Datei " [.htaccess] die Zeile
php_value memory_limit 512M eingefügt

Bin leider am Ende, und weiß nicht mehr, was ich da tun muss. Bitte um Unterstützung.

sudo:
Kann sein, dass es das nicht gibt.
Was hast du für einen Benutzer? Poste hierfür mal folgende Ausgabe für mich:
ls -l /pfad/zur/nextcloud/config/config.php

Du must auf jeden Fall PHP auf 512 MB verändern.
Normalerweise geht das in einer php.ini.
Welche Art von Speicher hast du bei All inkl. genau. Poste den Link zur Werbung für das Paket.

Für das Update kannst du besser folgendes nutzen:

php /pfad/zur/nextcloud/updater/updater.phar

Das startet wirklich identisch zum Webupdater.
occ upgrade ist nur ein Teil davon.

Lese ab " Using the command line based updater"

sudo -u www-data php updater.phar
Das mit dem sudo-Zeug macht nur Sinn, wenn man Nicht-Webuser ist und dahin wechselt.
Aber ich denke bei deinen Paket bist du der Webuser, siehe oben mein Befehl zur Anzeige von config.php.

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

Irgendwie kommen da nur Fehler.
Ich hab das All-Inkl Premium Paket

Benutzer bei Putty hab ich den angelgten SSH-Zugang im KAS

Bei dem oben genanten Befehl kommt:

ssh-w0000000@dd6014:/www/htdocs/w0186c3b$ ls -l /www/htdocs/w0000000/cloud//config/config.php
-rw-r----- 1 ssh-w0000000 w0186c3b 1318 Aug 7 09:39 /www/htdocs/w0000000/cloud//config/config.p hp

das w000000 ist geändert, da ich den richtigen BN hier mal nicht poste

Wie kann ich das PHP auf 512 ändern? Hab keine PHP.ini Datei gefunden

Wenn ich dann den updater.phar befehl eingebe kommt dies:

ssh-w0000000@dd6014:/www/htdocs/w0000000$ php /www/htdocs/w0000000/cloud/updater/updater.phar
Nextcloud Updater - version: v16.0.3-3-ga0c2b25 dirty

Current version is 18.0.7.

Update to Nextcloud 18.0.7 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-18.0.7.zip
Open changelog :arrow_upper_right:

Steps that will be executed:
[:heavy_check_mark:] Check for expected files
[:heavy_check_mark:] Check for write permissions
[:heavy_check_mark:] Create backup
[:heavy_check_mark:] Downloading
[:heavy_check_mark:] Verify integrity
[:heavy_check_mark:] Extracting
[:heavy_check_mark:] Enable maintenance mode
[:heavy_check_mark:] Replace entry points
[:heavy_check_mark:] Delete old files
[:heavy_check_mark:] Move new files in place
[:heavy_check_mark:] Done

Continue update? [y/N] y

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

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

Update of code successful.

Should the “occ upgrade” command be executed? [Y/n] y
The current PHP memory limit is below the recommended value of 512MB.
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
2020-08-07T07:55:10+00:00 Set log level to debug
2020-08-07T07:55:10+00:00 Turned on maintenance mode
2020-08-07T07:55:10+00:00 Repair step: Repair MySQL collation
2020-08-07T07:55:10+00:00 Repair info: All tables already have the correct collation -> nothing to do
2020-08-07T07:55:10+00:00 Repair step: Repair SQLite autoincrement
2020-08-07T07:55:10+00:00 Repair step: Copy data from accounts table when migrating from ownCloud
2020-08-07T07:55:10+00:00 Repair step: Drop account terms table when migrating from ownCloud
2020-08-07T07:55:10+00:00 Updating database schema
2020-08-07T07:55:11+00:00 Updated database
2020-08-07T07:55:11+00:00 Checking for update of app accessibility in appstore
2020-08-07T07:55:11+00:00 Checked for update of app “accessibility” in appstore
2020-08-07T07:55:11+00:00 Checking for update of app activity in appstore
2020-08-07T07:55:11+00:00 Checked for update of app “activity” in appstore
2020-08-07T07:55:11+00:00 Checking for update of app bruteforcesettings in appstore
2020-08-07T07:55:11+00:00 Checked for update of app “bruteforcesettings” in appstore
2020-08-07T07:55:11+00:00 Checking for update of app calendar in appstore
2020-08-07T07:55:11+00:00 Checked for update of app “calendar” in appstore
2020-08-07T07:55:11+00:00 Checking for update of app cloud_federation_api in appstore
2020-08-07T07:55:11+00:00 Checked for update of app “cloud_federation_api” in appstore
2020-08-07T07:55:11+00:00 Checking for update of app comments in appstore
2020-08-07T07:55:11+00:00 Checked for update of app “comments” in appstore
2020-08-07T07:55:11+00:00 Checking for update of app contacts in appstore
2020-08-07T07:55:11+00:00 Checked for update of app “contacts” in appstore
2020-08-07T07:55:11+00:00 Checking for update of app dav in appstore
2020-08-07T07:55:11+00:00 Checked for update of app “dav” in appstore
2020-08-07T07:55:11+00:00 Checking for update of app documentserver_community in appstore
2020-08-07T07:55:11+00:00 Update app documentserver_community from appstore
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 314314904 bytes) in /www/htdocs/w0000000/cloud/lib/private/Installer.php on line 285

Keep maintenance mode active? [y/N]

Laut Suche im Internet kann man das evtl. in .htaccess einstellen.
Trag es mal in /www/htdocs/w0186c3b/.htaccess ziemlich oben ein.
Evtl. sowohl in den Ordner als auch im zugehörigen Nextcloud-Ordner falls abweichend.

php_value memory_limit 512M
php_value max_execution_time 7200
php_value upload_max_filesize 256m

(erst mal nur die erste Zeile)

Ruf sicherheitshalber die Nextcloud mal im Browser auf bevor du erneut das phar-Zeug probierst. Vielleicht musst du auch irgendwas neu starten. Kenne mich mit All Ink nicht aus.

Quelle: Hosting bei all-inkl.com \ Erfahrungsaustausch

Ich hab es jetzt geschafft. Der super All-Inkl Support hat mir mit vielen Mails geholfen. Für die, die auch ähnliche Probleme haben.

Schaut im KAS, welche PHP-Version ihr verwendet und merkt euch diese.

Logt euch mit Putty ein und geht in das Hauptverzeichnis von Nexcloud und gibt den Befehl
php73 -d memory_limit=512M ./occ upgrade

ein. Danach sollte alles reibungslos durchlaufen. den Wert 73 gibt die Version aus. Bei Verwendung der Version 7.4 muss 74 eingegeben werden.

Trotzdem danke nochmal für die Tips und Unterstützung

2 Likes

Hallo wolfgangb,

warum nutzt Du Nextcloud 18.07?
Auf Grund von der App OC Web?

Wie hast Du, welches Verfahren, Nextcloud 18.07 installiert?

Welches Paket hast Du von https://all-inkl.com/ ?

Funktioniert ONLYOFFICE?

MfG
nc-kay

Thread entkoppelt von:

ich hatte auch das problem mit dem memory limit. hatte es dank des supports in der .htaccess.ini geändert. danach konnte ich von 19.0.0 auf 19.0.1 updaten.
was mich nur wunderte, der wert war nach dem update wieder weg. also standardmässig auf 128M gesetzt, was wohl auch probleme beim installieren diverser dienste macht.

Hallo, mir geht es auch so nach dem Update auf 19.04. (hing übrigens fest und musste es manuell per FTP freischalten)
meine Memory_Limits sind auch verschwunden… und Time-execution…
Dummerweise habe ich die nötigen Einstellungen dazu nicht mehr (finde sie gerade auch nicht per Google) jdenfalls nichtso, dass ich weiß wo genau ich sie einfügen muss.

Diese Einträge… scheinen es ja zu sein…
php_value memory_limit 512M
php_value max_execution_time 7200

aber… in der .htaccess steht ja einiges drin… meist beginnend mit IF(…
Füge ich die zeilen VOR allem ein?

ICh habe noch folgende Fehlermeldungen:
Es gibt einige Fehler in Ihrer Systemkonfiguration.

  • Einige Dateien haben die Integritätsprüfung nicht bestanden. Weiterführende Informationen befinden sich in unserer Dokumentation. (Liste der ungültigen Dateien … / Erneut analysieren…)

  • SQLite wird als Datenbank verwendet. Bei größeren Installationen wird empfohlen, auf ein anderes Datenbank-Backend zu wechseln. Dies wird insbesondere bei der Benutzung des Desktop-Clients zur Synchronisierung empfohlen. Um zu einer anderen Datenbank zu migrieren, benutzen Sie bitte die Kommandozeile: ‘occ db:convert-type’, oder schauen Sie in die Dokumentation :arrow_upper_right:.

  • Die PHP-Speichergrenze liegt unterhalb des empfohlenen Wertes von 512MB.

  • Es wurde kein PHP-Memory-Cache konfiguriert. Zur Erhöhung der Leistungsfähigkeit kann ein Memory-Cache konfiguriert werden. Weitere Informationen finden Sie in der Dokumentation.

  • Das PHP-OPcache-Modul ist nicht geladen. Für eine bessere Leistung empfiehlt es sich das Modul in Ihre PHP-Installation zu laden.