Php fehler seit upgrade auf 21.0.3

Seti dem upgrade von 21.0.2 auf 21.0.3 habe ich Fehler im Protololl und es lÀuft der cron.php nicht zu Ende. Darum NC sagt, es wÀren seit 3 Tagen keine Cron Jobs mehr gelaufen. Was falsch ist, die laufen; kann ich auch manuell anstarten (php -f cron.php).

Anbei die Fehler aus dem Protokoll seit dem Upgrade auf 21.0.3
Sonst hat sich nichts verÀndert.

Error PHP Required parameter $owner follows optional parameter $order at /cloud/www/cloud/apps/deck/lib/Service/CardService.php#271 2021-07-05T07:34:50+0200
Error no app in context Sabre\DAV\Exception\BadRequest: Expected filesize of 6139773 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 753664 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side. 2021-07-03T16:26:15+0200
Error no app in context Sabre\DAV\Exception\BadRequest: Expected filesize of 6139773 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 24576 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side. 2021-07-03T15:55:40+0200
Error no app in context Sabre\DAV\Exception\BadRequest: Expected filesize of 6139773 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1228800 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side. 2021-07-03T15:22:43+0200
Error PHP Error: session_start(): Ignoring session_start() because a session is already active at /cloud/www/cloud/lib/private/Session/Internal.php#207 2021-07-02T16:53:55+0200
Error PHP Error: session_start(): Ignoring session_start() because a session is already active at /cloud/www/cloud/lib/private/Session/Internal.php#207 2021-07-02T16:53:55+0200
Error PHP Error: session_start(): Ignoring session_start() because a session is already active at /cloud/www/cloud/lib/private/Session/Internal.php#207 2021-07-02T16:53:09+0200
Error PHP Error: session_start(): Ignoring session_start() because a session is already active at /cloud/www/cloud/lib/private/Session/Internal.php#207 2021-07-02T16:53:05+0200
Error PHP Error: session_start(): Ignoring session_start() because a session is already active at /cloud/www/cloud/lib/private/Session/Internal.php#207 2021-07-02T16:53:05+0200
Error PHP Error: Function libxml_disable_entity_loader() is deprecated at /cloud/www/cloud/lib/private/DB/MDB2SchemaReader.php#71 2021-07-02T16:51:15+0200
Error PHP Error: Function libxml_disable_entity_loader() is deprecated at /cloud/www/cloud/lib/private/DB/MDB2SchemaReader.php#69 2021-07-02T16:51:15+0200
Error PHP Error: Function libxml_disable_entity_loader() is deprecated at /cloud/www/cloud/lib/private/DB/MDB2SchemaReader.php#71 2021-07-02T16:51:03+0200
Error PHP Error: Function libxml_disable_entity_loader() is deprecated at /cloud/www/cloud/lib/private/DB/MDB2SchemaReader.php#69 2021-07-02T16:51:03+0200
Error PHP Error: Function libxml_disable_entity_loader() is deprecated at /cloud/www/cloud/lib/private/DB/MDB2SchemaReader.php#71 2021-07-02T16:42:20+0200
Error PHP Error: Function libxml_disable_entity_loader() is deprecated at /cloud/www/cloud/lib/private/DB/MDB2SchemaReader.php#69 2021-07-02T16:42:20+0200
Error PHP Required parameter $owner follows optional parameter $order at /cloud/www/cloud/apps/deck/lib/Service/CardService.php#271 2021-07-02T14:12:14+0200

Ich hĂ€nge mich hier mal dran. Nach dem Update auf 21.0.3 bekomme ich auch die Meldung, dass meine CronJobs nicht mehr laufen. Habe nichts in meinem Protokoll dazu (sicher eine Einstellung?) und meine NewsApp updatet nicht mehr. Habe erstmal wieder mein Backup eingespielt und nun lĂ€uft alles wieder. Ich habe Stunden alle Infos hier aus dem Forum gesucht und bei mir kontrolliert, ohne Erfolg, daher wieder der RĂŒckschritt auf 21.0.2, da lĂ€uft alles durch.

Lest bitte diesen Thread durch


https://help.nextcloud.com/t/cron-not-running-in-nc-21-0-3/119415

Und hier findet ihr den passenden Eintrag in der Nextcloud Doku


https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html#id1

Kurzfassung: Ich musste bei mir folgendes in der/etc/php/7.4/mods-available/apcu.ini hinzufĂŒgen


extension=apcu.so
apc.enable_cli=1
2 Likes

Top, vielen Dank.

Ich musste jedoch ausserdem die Crontab fĂŒr www-data noch ergĂ€nzen:

*/5 * * * * /usr/bin/php -f /cloud/www/cloud/cron.php --define apc.enable_cli=1

" APCu is disabled by default on CLI which could cause issues with nextcloud’s cron jobs. Please make sure you set the apc.enable_cli to 1 on your php.ini config file or append --define apc.enable_cli=1 to the cron job call."

Hatte es in der php.ini ohne Erfolg, scheint wohl an mehreren Stellen nötig zu sein?

Hast du versucht es in der Datei /etc/php/7.4/mods-available/apcu.ini hinzuzufĂŒgen? Ich nutze Nexcloud auf Ubuntu 18.04 mit PHP-FPM und Apache und habe den Eintrag nur in der genannten Datei hinzugefĂŒgt. Mein Cronjob lĂ€uft ohne den Zusatz --define apc.enable_cli=1

1 Like

@bb77 puh, nein ich meine nicht, aber ich versuche es nochmal, danke. Warum gibt es nur immer 1000 Stellen :wink:

Supi, nun lÀuft es auch bei mir anscheinend. Nur der Eintrag in der apcu.ini scheint zu reichen, Danke an die helfenden Gehirne!

2 Likes