Error Log entrys
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 348
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 91
Description
Steps to reproduce
- no trigger point found, just happens
Expected behavior
no entry in error log
I don't know if it is related, but I'm seeing issues with drafts, it stores multiple drafts if I create an e-mail, it seems like it's not recognizing old drafts.
Actual behavior
Multiple entries in error log, I'm not sure how they relate to each other, but they show up indipendendly.
Error Entry1:
[mail] Error: OCA\Mail\Exception\ServiceException: Deserialized estimator has an unknown type Rubix\ML\Encoding at <<closure>>
0. /var/www/html/custom_apps/mail/lib/Service/Classification/PersistenceService.php line 162
OCA\Mail\Service\Classification\PersistenceService->load(96)
1. /var/www/html/custom_apps/mail/lib/Service/Classification/ImportanceClassifier.php line 300
OCA\Mail\Service\Classification\PersistenceService->loadLatest(OCA\Mail\Account {})
2. /var/www/html/custom_apps/mail/lib/Listener/NewMessageClassificationListener.php line 118
OCA\Mail\Service\Classification\ImportanceClassifier->classifyImportance(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 21}, [OCA\Mail\Db\Message {id: null}])
3. /var/www/html/lib/private/EventDispatcher/ServiceEventListener.php line 87
OCA\Mail\Listener\NewMessageClassificationListener->handle(OCA\Mail\Events\ ... {})
4. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
OC\EventDispatcher\ServiceEventListener->__invoke(OCA\Mail\Events\ ... {}, "OCA\\Mail\\Even ... d", Symfony\Componen ... {})
5. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
Symfony\Component\EventDispatcher\EventDispatcher->callListeners([Closure {}], "OCA\\Mail\\Even ... d", OCA\Mail\Events\ ... {})
6. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 88
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(OCA\Mail\Events\ ... {}, "OCA\\Mail\\Even ... d")
7. /var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php line 401
OC\EventDispatcher\EventDispatcher->dispatch("OCA\\Mail\\Even ... d", OCA\Mail\Events\ ... {})
8. /var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php line 235
OCA\Mail\Service\Sync\ImapToDbSynchronizer->runPartialSync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 21}, OC\AppFramework\ScopedPsrLogger {}, 42, null)
9. /var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php line 136
OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 21}, OC\AppFramework\ScopedPsrLogger {}, 42, null, false, true)
10. /var/www/html/custom_apps/mail/lib/BackgroundJob/SyncJob.php line 110
OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount(OCA\Mail\Account {}, OC\AppFramework\ScopedPsrLogger {})
11. /var/www/html/lib/public/BackgroundJob/Job.php line 78
OCA\Mail\BackgroundJob\SyncJob->run([3])
12. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103
OCP\BackgroundJob\Job->start(OC\BackgroundJob\JobList {})
13. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93
OCP\BackgroundJob\TimedJob->start(OC\BackgroundJob\JobList {})
14. /var/www/html/cron.php line 152
OCP\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})
at 2023-02-26T18:30:05+01:00
Error Entry 2 (account is working, this shows up irregularily all the other accounts are working) :
[mail] Error: OCA\Mail\Exception\ServiceException: IMAP error synchronizing account 1: Authentication failed. at <<closure>>
0. /var/www/html/custom_apps/mail/lib/Service/MailManager.php line 140
OCA\Mail\IMAP\MailboxSync->sync(OCA\Mail\Account {}, OC\AppFramework\ScopedPsrLogger {})
1. /var/www/html/custom_apps/mail/lib/Controller/PageController.php line 130
OCA\Mail\Service\MailManager->getMailboxes(OCA\Mail\Account {})
2. /var/www/html/custom_apps/mail/lib/Controller/PageController.php line 252
OCA\Mail\Controller\PageController->index()
3. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 225
OCA\Mail\Controller\PageController->thread(6, 4370)
4. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 133
OC\AppFramework\Http\Dispatcher->executeController(OCA\Mail\Controller\PageController {}, "thread")
5. /var/www/html/lib/private/AppFramework/App.php line 172
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Controller\PageController {}, "thread")
6. /var/www/html/lib/private/Route/Router.php line 298
OC\AppFramework\App::main("OCA\\Mail\\Controller\\PageController", "thread", OC\AppFramework\ ... {}, ["6","4370","mail.page.thread"])
7. /var/www/html/lib/base.php line 1047
OC\Route\Router->match("/apps/mail/box/6/thread/4370")
8. /var/www/html/index.php line 36
OC::handleRequest()
GET /apps/mail/box/6/thread/4370
from 172.68.253.132 by hedwig at 2023-02-26T20:19:09+01:00
Error Entry 3:
[mail] Error: TypeError: Rubix\ML\Persisters\Filesystem::save(): Argument #1 ($encoding) must be of type Rubix\ML\Encoding, Rubix\ML\Classifiers\GaussianNB given, called in /var/www/html/custom_apps/mail/lib/Service/Classification/PersistenceService.php on line 118 at <<closure>>
0. /var/www/html/custom_apps/mail/lib/Service/Classification/PersistenceService.php line 118
Rubix\ML\Persisters\Filesystem->save(Rubix\ML\Classifiers\GaussianNB {})
1. /var/www/html/custom_apps/mail/lib/Service/Classification/ImportanceClassifier.php line 220
OCA\Mail\Service\Classification\PersistenceService->persist(OCA\Mail\Db\Classifier {id: 249}, Rubix\ML\Classifiers\GaussianNB {})
2. /var/www/html/custom_apps/mail/lib/BackgroundJob/TrainImportanceClassifierJob.php line 97
OCA\Mail\Service\Classification\ImportanceClassifier->train(OCA\Mail\Account {}, OC\AppFramework\ScopedPsrLogger {})
3. /var/www/html/lib/public/BackgroundJob/Job.php line 78
OCA\Mail\BackgroundJob\TrainImportanceClassifierJob->run([5])
4. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103
OCP\BackgroundJob\Job->start(OC\BackgroundJob\JobList {})
5. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93
OCP\BackgroundJob\TimedJob->start(OC\BackgroundJob\JobList {})
6. /var/www/html/cron.php line 152
OCP\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})
at 2023-02-25T15:24:50+01:00
Warning entry 1 (show up quite often, once or twice per hour):
[mail] Warning: Horde_Imap_Client_Exception: Authentication failed. at <<closure>>
0. /var/www/html/custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php line 4565
Horde_Imap_Client_Socket->_responseCode(Horde_Imap_Clien ... }}, Horde_Imap_Clien ... "})
1. /var/www/html/custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php line 4313
Horde_Imap_Client_Socket->_getLine(Horde_Imap_Clien ... }})
2. /var/www/html/custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php line 4241
Horde_Imap_Client_Socket->_sendCmdChunk(Horde_Imap_Clien ... }}, [Horde_Imap_Clie ... }])
3. /var/www/html/custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php line 849
Horde_Imap_Client_Socket->_sendCmd(Horde_Imap_Clien ... }})
4. /var/www/html/custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php line 512
Horde_Imap_Client_Socket->_tryLogin("*** sensitive parameters replaced ***")
5. /var/www/html/custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 850
Horde_Imap_Client_Socket->_login("*** sensitive parameters replaced ***")
6. /var/www/html/custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 2507
Horde_Imap_Client_Base->login("*** sensitive parameters replaced ***")
7. /var/www/html/custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 2490
Horde_Imap_Client_Base->_fetchWrapper("INBOX", Horde_Imap_Client_Fetch_Query {}, [Horde_Imap_Clie ... }])
8. /var/www/html/custom_apps/mail/lib/IMAP/MessageMapper.php line 674
Horde_Imap_Client_Base->fetch("INBOX", Horde_Imap_Client_Fetch_Query {}, [Horde_Imap_Clie ... }])
9. /var/www/html/custom_apps/mail/lib/IMAP/PreviewEnhancer.php line 86
OCA\Mail\IMAP\MessageMapper->getBodyStructureData(Horde_Imap_Clien ... e}, "INBOX", [7563,7565,7568, ... "])
10. /var/www/html/custom_apps/mail/lib/Service/PreprocessingService.php line 81
OCA\Mail\IMAP\PreviewEnhancer->process(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 6}, [OCA\Mail\Db\Mes ... "])
11. /var/www/html/custom_apps/mail/lib/BackgroundJob/PreviewEnhancementProcessingJob.php line 94
OCA\Mail\Service\PreprocessingService->process(1676171985, OCA\Mail\Account {})
12. /var/www/html/lib/public/BackgroundJob/Job.php line 78
OCA\Mail\BackgroundJob\PreviewEnhancementProcessingJob->run([1])
13. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103
OCP\BackgroundJob\Job->start(OC\BackgroundJob\JobList {})
14. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93
OCP\BackgroundJob\TimedJob->start(OC\BackgroundJob\JobList {})
15. /var/www/html/cron.php line 152
OCP\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})
at 2023-02-26T04:20:04+01:00
Mail app version
2.2.3
Mailserver or service
netcup
Operating system
docker container (official)
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database
MariaDB
Additional info
can provide full error log if necessary
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by separating the reported failures across lib/Service/Classification/PersistenceService.php, MailManager.php, MessageMapper.php, and PreviewEnhancer.php. Trace the classification and IMAP synchronization entry points shown in the logs, then reproduce each failure independently; done requires an agreed scope and a verified fix for the selected error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, mariadb, php
- Domain
- authentication, backend, machine-learning
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100