Once per day (even though the cron job runs every 5 minutes), the cron job fails with the following stack trace:
Error: Call to a member function getTime() on null in /var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php:94
Stack trace:
#0 /var/www/nextcloud/cron.php(151): OCP\BackgroundJob\TimedJob->execute()
#1 {main}
This began immediately after upgrading to v4.0.0 (no other changes) on multiple nextcloud instances (both v24 and v25)
Server configuration
Operating system: Debian 11
Web server: Nginx
Database: MariaDB
PHP version: 7.4
Nextcloud version: 24 and 25
Where did you install Nextcloud from:
Source install
{"reqId":"GSNXn88fEeXK85KFbOMy","level":3,"time":"2022-11-26T10:10:02+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Call to a member function getTime() on null","userAgent":"--","version":"24.0.7.1","exception":{"Exception":"Error","Message":"Call to a member function getTime() on null","Code":0,"Trace":[{"file":"/var/www/nextcloud/cron.php","line":151,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","Line":94,"CustomMessage":"--"}}
Steps to reproduce
Expected behaviour
Normal operation
Actual behaviour
Once per day (even though the cron job runs every 5 minutes), the cron job fails with the following stack trace:
This began immediately after upgrading to v4.0.0 (no other changes) on multiple nextcloud instances (both v24 and v25)
Server configuration
Operating system: Debian 11
Web server: Nginx
Database: MariaDB
PHP version: 7.4
Nextcloud version: 24 and 25
Where did you install Nextcloud from: Source install
List of activated apps:
Nextcloud configuration:
Client configuration
Browser: n/a
Operating system: n/a
Logs
Nextcloud log (data/owncloud.log)
Browser log