Cron jobs failing since upgrade tto 31.0.2

Running NC 31.0.2, Ubuntu 42.10, php8.3, apache 2.6

Since I upgraded from 30.0.8 to 31.0.2 I face the following error at running the cron job

reproduced at the command line:

www-data@aveon(7d):~/cloud $ php -f cron.php --define apc.enable_cli=1
ArgumentCountError: Too few arguments to function OCA\DocumentServer\BackgroundJob\Cleanup::__construct(), 0 passed in /cloud/www/cloud/lib/private/BackgroundJob/JobList.php on line 292 and exactly 7 expected in /cloud/www/cloud/apps/docu mentserver_community/lib/BackgroundJob/Cleanup.php:43
Stack trace:
#0 /cloud/www/cloud/lib/private/BackgroundJob/JobList.php(292): OCA\DocumentServer\BackgroundJob\Cleanup->__construct()
#1 /cloud/www/cloud/lib/private/BackgroundJob/JobList.php(197): OC\BackgroundJob\JobList->buildJob()
#2 /cloud/www/cloud/cron.php(152): OC\BackgroundJob\JobList->getNext()
#3 {main}

If I am not the only one, I would be pleased to get a hint how to solve it.

Thanks

Just for a quick fix, deactivate the “Community Document Server”. After this the background job runs without Error.

see: BackgroundJob/Cleanup fails, breaking cron.php with NC 31 · Issue #346 · nextcloud/documentserver_community · GitHub

This is becouse there was an undocmented change in timedjobs that makes it so that the entire feature is now broken. Apperently since it concerns background jobs nobody really noticed this or something? Anyway I made an issue on the nc server repository [Bug]: · Issue #52869 · nextcloud/server · GitHub

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.