mail
mail copied to clipboard
Call to a member function getTotal() on null - by cron background job
Steps to reproduce
open the log
Error Call to a member function getTotal() on null Cron mail sync failed for account x
`
Error Call to a member function getTotal() on null
/home/www/nextcloud/apps/mail/lib/IMAP/MailboxSync.phpZeile 145
OCA\Mail\IMAP\MailboxSync->syncMailboxStatus(
"*** sensitive parameters replaced ***"
)
/home/www/nextcloud/apps/mail/lib/BackgroundJob/SyncJob.phpZeile 109
OCA\Mail\IMAP\MailboxSync->sync(
"*** sensitive parameters replaced ***"
)
/home/www/nextcloud/lib/public/BackgroundJob/Job.phpZeile 81
OCA\Mail\BackgroundJob\SyncJob->run()
/home/www/nextcloud/lib/public/BackgroundJob/TimedJob.phpZeile 102
OCP\BackgroundJob\Job->start()
/home/www/nextcloud/lib/public/BackgroundJob/TimedJob.phpZeile 92
OCP\BackgroundJob\TimedJob->start()
/home/www/nextcloud/cron.phpZeile 152
OCP\BackgroundJob\TimedJob->execute()`
`
Expected behavior
mail:account:sync should be executed by cron-job, to be able to open large mail folders.
Actual behavior
I need to execute occ sync by hand for each account, bevore to be able to open the mail APP:
sudo -u www-data php8.1 /www/nextcloud/occ mail:account:sync 1 sudo -u www-data php8.1 /www/nextcloud/occ mail:account:sync 2 sudo -u www-data php8.1 /www/nextcloud/occ mail:account:sync 3
Mail app version
3.6.0
Mailserver or service
dovecot on same machine
Operating system
debia 12
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database
MariaDB
Additional info
No response