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

Could Not Open Mailbox #4839

Closed
JoshuaPettus opened this issue Mar 26, 2021 · 5 comments
Closed

Could Not Open Mailbox #4839

JoshuaPettus opened this issue Mar 26, 2021 · 5 comments

Comments

@JoshuaPettus
Copy link

When I open the Mail App all of my mailboxes (one gmail the other yahoo) says it cannot open mailbox

This is using the latest 1.9.4 Mail on NC21, PHP version 8.0.3

When Mail is opened this is what is generated in the server log and will repeat while the app is open:

Exception: Too few arguments to function OCA\Mail\Db\Mailbox::hasLocks(), 0 passed in /var/www/nextcloud/apps/mail/lib/Service/Search/MailSearch.php on line 104 and exactly 1 expected

    /var/www/nextcloud/lib/private/AppFramework/App.php - line 157:

    OC\AppFramework\Http\Dispatcher->dispatch()

    /var/www/nextcloud/lib/private/Route/Router.php - line 302:

    OC\AppFramework\App::main()

    /var/www/nextcloud/lib/base.php - line 993:

    OC\Route\Router->match()

    /var/www/nextcloud/index.php - line 37:

    OC::handleRequest()

Caused by ArgumentCountError: Too few arguments to function OCA\Mail\Db\Mailbox::hasLocks(), 0 passed in /var/www/nextcloud/apps/mail/lib/Service/Search/MailSearch.php on line 104 and exactly 1 expected

    /var/www/nextcloud/apps/mail/lib/Service/Search/MailSearch.php - line 104:

    OCA\Mail\Db\Mailbox->hasLocks()

    /var/www/nextcloud/apps/mail/lib/Controller/MessagesController.php - line 184:

    OCA\Mail\Service\Search\MailSearch->findMessages()

    /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 218:

    OCA\Mail\Controller\MessagesController->index()

    /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 127:

    OC\AppFramework\Http\Dispatcher->executeController()

    /var/www/nextcloud/lib/private/AppFramework/App.php - line 157:

    OC\AppFramework\Http\Dispatcher->dispatch()

    /var/www/nextcloud/lib/private/Route/Router.php - line 302:

    OC\AppFramework\App::main()

    /var/www/nextcloud/lib/base.php - line 993:

    OC\Route\Router->match()

    /var/www/nextcloud/index.php - line 37:

    OC::handleRequest()

Also Initially there are a few:

Exception: Too few arguments to function OCA\Mail\Db\Mailbox::hasLocks(), 0 passed in /var/www/nextcloud/apps/mail/lib/Service/Search/MailSearch.php on line 104 and exactly 1 expected

    /var/www/nextcloud/lib/private/AppFramework/App.php - line 157:

    OC\AppFramework\Http\Dispatcher->dispatch()

    /var/www/nextcloud/lib/private/Route/Router.php - line 302:

    OC\AppFramework\App::main()

    /var/www/nextcloud/lib/base.php - line 993:

    OC\Route\Router->match()

    /var/www/nextcloud/index.php - line 37:

    OC::handleRequest()

Caused by ArgumentCountError: Too few arguments to function OCA\Mail\Db\Mailbox::hasLocks(), 0 passed in /var/www/nextcloud/apps/mail/lib/Service/Search/MailSearch.php on line 104 and exactly 1 expected

    /var/www/nextcloud/apps/mail/lib/Service/Search/MailSearch.php - line 104:

    OCA\Mail\Db\Mailbox->hasLocks()

    /var/www/nextcloud/apps/mail/lib/Controller/MessagesController.php - line 184:

    OCA\Mail\Service\Search\MailSearch->findMessages()

    /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 218:

    OCA\Mail\Controller\MessagesController->index()

    /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 127:

    OC\AppFramework\Http\Dispatcher->executeController()

    /var/www/nextcloud/lib/private/AppFramework/App.php - line 157:

    OC\AppFramework\Http\Dispatcher->dispatch()

    /var/www/nextcloud/lib/private/Route/Router.php - line 302:

    OC\AppFramework\App::main()

    /var/www/nextcloud/lib/base.php - line 993:

    OC\Route\Router->match()

    /var/www/nextcloud/index.php - line 37:

    OC::handleRequest()

But I think that has to do with #4584 (Although my database is MariaDB and not Postgres)

@JoshuaPettus
Copy link
Author

Never mind! Weird, I tried again and it worked. Plus I didn't get that error in the log. Lord knows what was up...

THe More thatn 1000 expressions in a list are not allowed in Oracle still happens, but that must be unreleated

@ChristophWurst
Copy link
Member

Too few arguments to function OCA\Mail\Db\Mailbox::hasLocks(), 0 passed in /var/www/nextcloud/apps/mail/lib/Service/Search/MailSearch.php

@miaulalala 👀

@JoshuaPettus did you replace any files manually or update the app recently? This seems a bit like your php opcache ran and old version of the app code. MailSearch.php actually always uses the first argument.

@JoshuaPettus
Copy link
Author

JoshuaPettus commented Mar 29, 2021

Ah! That would explain it. Yes I had, though the online nextcloud app update, not manually. I had just updated from the previous version. Anything I should do in the future?

@ChristophWurst
Copy link
Member

you could restart your web server to flush the cache

@JoshuaPettus
Copy link
Author

Thanks! I'll do that

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

2 participants