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

problem accessing imap inbox cause of caching issue with redis driver #792

Closed
thomas-niphba opened this issue Dec 23, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@thomas-niphba
Copy link

Describe the bug
Since update 2.24.0 snappymail showns only empty mailboxes. But the count of unread mails in a folder is shown.

To Reproduce
Steps to reproduce the behavior:

  1. Update snappymail in nextcloud to 2.24.0
  2. Go to 'Inbox'

Expected behavior
Mails should be listed

Please complete the following information:

  • Browser: brave 1.46.144 (chromium 108)
  • IMAP daemon: dovecot
  • PHP version: 8.1
  • SnappyMail Version: 2.24.0

Additional context
Add any other context about the problem here.
2022-12-23_16-43

@thomas-niphba
Copy link
Author

I have to correct myself.
Mails are listed again, if I disable caching.

WIth enable caching by redis the following logs are written:

[2022-12-23 17:07:38.096][aa4eabcf] SERVICE[WARNING]: - Typed property MailSo\Cache\Drivers*Redis*::$sKeyPrefix must not be accessed before initialization @ /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/MailSo/Cache/Drivers/Redis.php#57
[2022-12-23 17:07:38.096][aa4eabcf] [ERROR]: Error: Typed property MailSo\Cache\Drivers\Redis::$sKeyPrefix must not be accessed before initialization in /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/MailSo/Cache/Drivers/Redis.php:57
Stack trace:
#0 /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/RainLoop/Actions.php(538): MailSo\Cache\Drivers\Redis->__construct()
#1 /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/RainLoop/Actions/Messages.php(901): RainLoop\Actions->Cacher()
#2 /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/RainLoop/Actions/Messages.php(69): RainLoop\Actions->cacherForUids()
#3 /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/RainLoop/ServiceActions.php(137): RainLoop\Actions->DoMessageList()
#4 /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/RainLoop/Service.php(112): RainLoop\ServiceActions->ServiceJson()
#5 /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/RainLoop/Service.php(14): RainLoop\Service::RunResult()
#6 /usr/share/webapps/nextcloud/apps/snappymail/lib/Util/SnappyMailHelper.php(141): RainLoop\Service::Handle()
#7 /usr/share/webapps/nextcloud/apps/snappymail/lib/Controller/PageController.php(115): OCA\SnappyMail\Util\SnappyMailHelper::startApp()
#8 /usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(225): OCA\SnappyMail\Controller\PageController->indexPost()
#9 /usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(133): OC\AppFramework\Http\Dispatcher->executeController()
#10 /usr/share/webapps/nextcloud/lib/private/AppFramework/App.php(172): OC\AppFramework\Http\Dispatcher->dispatch()
#11 /usr/share/webapps/nextcloud/lib/private/Route/Router.php(298): OC\AppFramework\App::main()
#12 /usr/share/webapps/nextcloud/lib/base.php(1047): OC\Route\Router->match()
#13 /usr/share/webapps/nextcloud/index.php(36): OC::handleRequest()
#14 {main}

Next RainLoop\Exceptions\ClientException: CantGetMessageList[201] in /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/RainLoop/Actions/Messages.php:81
Stack trace:
#0 /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/RainLoop/ServiceActions.php(137): RainLoop\Actions->DoMessageList()
#1 /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/RainLoop/Service.php(112): RainLoop\ServiceActions->ServiceJson()
#2 /usr/share/webapps/nextcloud/apps/snappymail/app/snappymail/v/2.24.0/app/libraries/RainLoop/Service.php(14): RainLoop\Service::RunResult()
#3 /usr/share/webapps/nextcloud/apps/snappymail/lib/Util/SnappyMailHelper.php(141): RainLoop\Service::Handle()
#4 /usr/share/webapps/nextcloud/apps/snappymail/lib/Controller/PageController.php(115): OCA\SnappyMail\Util\SnappyMailHelper::startApp()
#5 /usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(225): OCA\SnappyMail\Controller\PageController->indexPost()
#6 /usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(133): OC\AppFramework\Http\Dispatcher->executeController()
#7 /usr/share/webapps/nextcloud/lib/private/AppFramework/App.php(172): OC\AppFramework\Http\Dispatcher->dispatch()
#8 /usr/share/webapps/nextcloud/lib/private/Route/Router.php(298): OC\AppFramework\App::main()
#9 /usr/share/webapps/nextcloud/lib/base.php(1047): OC\Route\Router->match()
#10 /usr/share/webapps/nextcloud/index.php(36): OC::handleRequest()
#11 {main}

@thomas-niphba thomas-niphba changed the title problem accessing imap inbox with v.2.24.0 problem accessing imap inbox cause of caching issue with redis driver Dec 23, 2022
@the-djmaze the-djmaze added the bug Something isn't working label Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants