Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to a member function getTotal() on null - by cron background job #9623

Open
ufgum opened this issue May 2, 2024 · 0 comments
Open

Call to a member function getTotal() on null - by cron background job #9623

ufgum opened this issue May 2, 2024 · 0 comments

Comments

@ufgum
Copy link

ufgum commented May 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant