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

Some messages won't open #6913

Closed
AMajor-C opened this issue Jul 21, 2022 · 8 comments
Closed

Some messages won't open #6913

AMajor-C opened this issue Jul 21, 2022 · 8 comments

Comments

@AMajor-C
Copy link

AMajor-C commented Jul 21, 2022

Steps to reproduce

I dont know why but app just not load and show some messages. It seems independent on incoming mail address or mail account...

Expected behavior

All messages available to load and view

Actual behavior

Some messages won't open

Mail app version

1.13.6

Mailserver or service

yandex

Operating system

Centos 8

PHP engine version

Other

Web server

Apache (supported)

Database

MySQL

Additional info

OCA\Mail\Exception\ServiceException: Could not load message

/var/www/ncloud.ainet.us/html/apps/mail/lib/Controller/MessagesController.php - line 248:

OCA\Mail\Service\MailManager->getImapMessage(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 19}, 1721, true)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 225:

OCA\Mail\Controller\MessagesController->getBody(130)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 133:

OC\AppFramework\Http\Dispatcher->executeController(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/App.php - line 172:

OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/Route/Router.php - line 298:

OC\AppFramework\App::main("OCA\\Mail\\ ... r", "getBody", OC\AppFramew ... {}, [ "130","mai ... "])

/var/www/ncloud.ainet.us/html/lib/base.php - line 1023:

OC\Route\Router->match("/apps/mail/ ... y")

/var/www/ncloud.ainet.us/html/index.php - line 36:

OC::handleRequest()

Caused by OCP\AppFramework\Db\DoesNotExistException: Mail body for this mail(1721) could not be loaded

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 583:

OCA\Mail\Model\IMAPMessage->loadBodyData(Horde_Mime_Part { parent: null}, 1)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 459:

OCA\Mail\Model\IMAPMessage->handleHtmlMessage(Horde_Mime_Part { parent: null}, 1)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 381:

OCA\Mail\Model\IMAPMessage->getPart(Horde_Mime_Part { parent: null}, 1)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 102:

OCA\Mail\Model\IMAPMessage->loadMessageBodies()

/var/www/ncloud.ainet.us/html/apps/mail/lib/IMAP/MessageMapper.php - line 261:

OCA\Mail\Model\IMAPMessage->__construct(Horde_Imap_C ... e}, "INBOX", 1721, null, true)



OCA\Mail\IMAP\MessageMapper->OCA\Mail\IMAP\{closure}("*** sensiti ... *")

/var/www/ncloud.ainet.us/html/apps/mail/lib/IMAP/MessageMapper.php - line 275:

array_map(Closure {}, [ "*** sensi ... "])

/var/www/ncloud.ainet.us/html/apps/mail/lib/IMAP/MessageMapper.php - line 71:

OCA\Mail\IMAP\MessageMapper->findByIds(Horde_Imap_C ... e}, "INBOX", Horde_Imap_C ... e}, true)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Service/MailManager.php - line 181:

OCA\Mail\IMAP\MessageMapper->find(Horde_Imap_C ... e}, "INBOX", 1721, true)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Controller/MessagesController.php - line 248:

OCA\Mail\Service\MailManager->getImapMessage(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 19}, 1721, true)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 225:

OCA\Mail\Controller\MessagesController->getBody(130)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 133:

OC\AppFramework\Http\Dispatcher->executeController(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/App.php - line 172:

OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/Route/Router.php - line 298:

OC\AppFramework\App::main("OCA\\Mail\\ ... r", "getBody", OC\AppFramew ... {}, [ "130","mai ... "])

/var/www/ncloud.ainet.us/html/lib/base.php - line 1023:

OC\Route\Router->match("/apps/mail/ ... y")

/var/www/ncloud.ainet.us/html/index.php - line 36:

OC::handleRequest()

@miaulalala
Copy link
Contributor

miaulalala commented Jul 21, 2022

Please have a look at your nextcloud.log at ./data/nextcloud.log in your root directory

@AMajor-C
Copy link
Author

Please have a look at your nextcloud.log at ./data/nextcloud.log in your root directory

`OCA\Mail\Exception\ServiceException: Could not load message

/var/www/ncloud.ainet.us/html/apps/mail/lib/Controller/MessagesController.php - line 248:

OCA\Mail\Service\MailManager->getImapMessage(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 19}, 1721, true)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 225:

OCA\Mail\Controller\MessagesController->getBody(130)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 133:

OC\AppFramework\Http\Dispatcher->executeController(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/App.php - line 172:

OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/Route/Router.php - line 298:

OC\AppFramework\App::main("OCA\\Mail\\ ... r", "getBody", OC\AppFramew ... {}, [ "130","mai ... "])

/var/www/ncloud.ainet.us/html/lib/base.php - line 1023:

OC\Route\Router->match("/apps/mail/ ... y")

/var/www/ncloud.ainet.us/html/index.php - line 36:

OC::handleRequest()

Caused by OCP\AppFramework\Db\DoesNotExistException: Mail body for this mail(1721) could not be loaded

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 583:

OCA\Mail\Model\IMAPMessage->loadBodyData(Horde_Mime_Part { parent: null}, 1)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 459:

OCA\Mail\Model\IMAPMessage->handleHtmlMessage(Horde_Mime_Part { parent: null}, 1)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 381:

OCA\Mail\Model\IMAPMessage->getPart(Horde_Mime_Part { parent: null}, 1)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 102:

OCA\Mail\Model\IMAPMessage->loadMessageBodies()

/var/www/ncloud.ainet.us/html/apps/mail/lib/IMAP/MessageMapper.php - line 261:

OCA\Mail\Model\IMAPMessage->__construct(Horde_Imap_C ... e}, "INBOX", 1721, null, true)

<<closure>>

OCA\Mail\IMAP\MessageMapper->OCA\Mail\IMAP\{closure}("*** sensiti ... *")

/var/www/ncloud.ainet.us/html/apps/mail/lib/IMAP/MessageMapper.php - line 275:

array_map(Closure {}, [ "*** sensi ... "])

/var/www/ncloud.ainet.us/html/apps/mail/lib/IMAP/MessageMapper.php - line 71:

OCA\Mail\IMAP\MessageMapper->findByIds(Horde_Imap_C ... e}, "INBOX", Horde_Imap_C ... e}, true)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Service/MailManager.php - line 181:

OCA\Mail\IMAP\MessageMapper->find(Horde_Imap_C ... e}, "INBOX", 1721, true)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Controller/MessagesController.php - line 248:

OCA\Mail\Service\MailManager->getImapMessage(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 19}, 1721, true)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 225:

OCA\Mail\Controller\MessagesController->getBody(130)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 133:

OC\AppFramework\Http\Dispatcher->executeController(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/App.php - line 172:

OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/Route/Router.php - line 298:

OC\AppFramework\App::main("OCA\\Mail\\ ... r", "getBody", OC\AppFramew ... {}, [ "130","mai ... "])

/var/www/ncloud.ainet.us/html/lib/base.php - line 1023:

OC\Route\Router->match("/apps/mail/ ... y")

/var/www/ncloud.ainet.us/html/index.php - line 36:

OC::handleRequest()`

@miaulalala
Copy link
Contributor

Can you please enable debug logging?

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html

I think this might be connected to the encoding issues we're seeing sometimes.

@AMajor-C
Copy link
Author

AMajor-C commented Jul 24, 2022

Can you please enable debug logging?

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html

I think this might be connected to the encoding issues we're seeing sometimes.

This is with loglevel 0:

`OCA\Mail\Exception\ServiceException: Could not load message

/var/www/ncloud.ainet.us/html/apps/mail/lib/Controller/MessagesController.php - line 248:

OCA\Mail\Service\MailManager->getImapMessage(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 19}, 1727, true)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 225:

OCA\Mail\Controller\MessagesController->getBody(131)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 133:

OC\AppFramework\Http\Dispatcher->executeController(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/App.php - line 172:

OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/Route/Router.php - line 298:

OC\AppFramework\App::main("OCA\\Mail\\ ... r", "getBody", OC\AppFramew ... {}, [ "131","mai ... "])

/var/www/ncloud.ainet.us/html/lib/base.php - line 1023:

OC\Route\Router->match("/apps/mail/ ... y")

/var/www/ncloud.ainet.us/html/index.php - line 36:

OC::handleRequest()

Caused by OCP\AppFramework\Db\DoesNotExistException: Mail body for this mail(1727) could not be loaded

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 583:

OCA\Mail\Model\IMAPMessage->loadBodyData(Horde_Mime_Part { parent: null}, 1)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 459:

OCA\Mail\Model\IMAPMessage->handleHtmlMessage(Horde_Mime_Part { parent: null}, 1)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 381:

OCA\Mail\Model\IMAPMessage->getPart(Horde_Mime_Part { parent: null}, 1)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Model/IMAPMessage.php - line 102:

OCA\Mail\Model\IMAPMessage->loadMessageBodies()

/var/www/ncloud.ainet.us/html/apps/mail/lib/IMAP/MessageMapper.php - line 261:

OCA\Mail\Model\IMAPMessage->__construct(Horde_Imap_C ... e}, "INBOX", 1727, null, true)

<<closure>>

OCA\Mail\IMAP\MessageMapper->OCA\Mail\IMAP\{closure}("*** sensiti ... *")

/var/www/ncloud.ainet.us/html/apps/mail/lib/IMAP/MessageMapper.php - line 275:

array_map(Closure {}, [ "*** sensi ... "])

/var/www/ncloud.ainet.us/html/apps/mail/lib/IMAP/MessageMapper.php - line 71:

OCA\Mail\IMAP\MessageMapper->findByIds(Horde_Imap_C ... e}, "INBOX", Horde_Imap_C ... e}, true)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Service/MailManager.php - line 181:

OCA\Mail\IMAP\MessageMapper->find(Horde_Imap_C ... e}, "INBOX", 1727, true)

/var/www/ncloud.ainet.us/html/apps/mail/lib/Controller/MessagesController.php - line 248:

OCA\Mail\Service\MailManager->getImapMessage(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 19}, 1727, true)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 225:

OCA\Mail\Controller\MessagesController->getBody(131)

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/Http/Dispatcher.php - line 133:

OC\AppFramework\Http\Dispatcher->executeController(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/AppFramework/App.php - line 172:

OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Con ... {}, "getBody")

/var/www/ncloud.ainet.us/html/lib/private/Route/Router.php - line 298:

OC\AppFramework\App::main("OCA\\Mail\\ ... r", "getBody", OC\AppFramew ... {}, [ "131","mai ... "])

/var/www/ncloud.ainet.us/html/lib/base.php - line 1023:

OC\Route\Router->match("/apps/mail/ ... y")

/var/www/ncloud.ainet.us/html/index.php - line 36:

OC::handleRequest()`

@miaulalala
Copy link
Contributor

Can you maybe send me the full (not truncated) logs at [email protected] if you don't want to post them here?

@AMajor-C
Copy link
Author

Can you maybe send me the full (not truncated) logs at [email protected] if you don't want to post them here?

Done

@ChristophWurst
Copy link
Member

Can this be closed?

@ChristophWurst
Copy link
Member

It's most likely #9168

@ChristophWurst ChristophWurst closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2024
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

3 participants