mail
mail copied to clipboard
Hebrew (all RTL?) Language Error
Expected behavior
Emails should sync and appear.
Actual behavior
Syncing is stuck indefinitely due to emails in my inbox that contain Hebrew. Folders without Hebrew sync fine.
Running occ mail:account:sync provides the following output:
In ImapToDbSynchronizer.php line 249:
Sync failed for 5:INBOX: mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "iso-8859-8-i"
In String.php line 160:
mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "iso-8859-8-i"
Mail app
Mail app version: (see apps admin page, e.g. 0.5.3) 1.11.1
Mailserver or service: (e.g. Outlook, Yahoo, Gmail, Exchange,...) Mailbox.org
Server configuration
Operating system: (e.g. Debian 8) ppenSUSE MicroOS
Web server: (e.g. Apache, Nginx,...) Nginx
Database: (e.g. MariaDB, SQLite or PostgreSQL) MariaDB
PHP version: (e.g. 7.0) Whatever is in the docker image nextcloud:fpm
Nextcloud Version: (see admin page, e.g. 13.0.2) 23.0.0.10
Client configuration
Browser: (e.g. Firefox 48) Firefox 94.0.2
Operating system: (e.g. Arch Linux) openSUSE Tumbleweed
Thanks!!
I find similar logs in other tickets. https://github.com/nextcloud/mail/issues/4925#issuecomment-822803422 for example.
I encountered this using Chinese, GB1803 0, Preventing me from using the mail app entirely
Looks like \Horde_Mime_Part::getCharset is returning values that are not always compatible with PHP charsets, as it uses the Mime Header content type label to extract this information from an email. iso-8859-8-i
is invalid in PHP, but iso-8859-8
would be a valid charset.
@xinstein can you post the complete error message please?
@spacemule would you be able to send me an email as .eml attachment to [email protected] with hebrew content? I am currenly testing a fix, but I'm not sure just copy pasting a hebrew lorem ipsum is enough.
I sent three as an attachment. They're from a domain that matches my username here in case they end up in spam.
Thanks!
@spacemule Thanks for the emails! I tested my changes with them and it looks ok.
Who here is able to check out this branch here: https://github.com/nextcloud/mail/pull/5882 and test the changes, too?
@spacemule if you're not busy I would apprechiate if you could test these changes for me :pray:
@xinstein you too if possible :relaxed:
In my case, the following error is logged whenever I switch to the mail app
Fatal mail Error: Class "Horde_Translation" not found at 2022-01-04T09:51:12+00:00
custom_apps/mail/lib/AppInfo/Application.php line 126
0. .../Coordinator.php line 126
OCA\Mail\AppInfo\Application->register(OCP\AppFra ... {})
1. .../Coordinator.php line 86
OC\AppFramework\Bootstrap\Coordinator->registerApps(
["mai ... "]
)
2. .../Installer.php line 143
OC\AppFramework\Bootstrap\Coordinator->runLazyRegistration(
... l"
)
3. .../AppSettingsController.php line 452
OC\Installer->installApp("mail")
4. .../Dispatcher.php line 217
OCA\Settings\Controller\AppSettingsController->enableApps(
... "],
... []
)
5. .../Dispatcher.php line 126
OC\AppFramework\Http\Dispatcher->executeController(
OCA\Settings\Controller\AppSettingsController ... {},
"enableApp ... s"
)
6. .../App.php line 156
OC\AppFramework\Http\Dispatcher->dispatch(
OCA\Set ... {},
"enableApps"
)
7. .../Route/Router.php line 302
OC\AppFramework\App::main(
"OCA\\Settings\\Control ... r",
"enableApps",
OC\AppFramework\Depende ... {},
{_route:"settings.AppSe ... "}
)
8. lib/base.php line 1006
OC\Route\Router->match("\/settings\/apps\/enable")
9. index.php line 36
OC::handleRequest(
)
@xinstein can you please send me your nextcloud.log to [email protected]? You can find it in your data folder.
It's too huge to upload, but I can copy some seemingly relevant messages here:
{"reqId":"o1lBfGhQANsvDMeryCH2","level":3,"time":"2022-01-06T03:40:01+00:00","remoteAddr":"10.0.2.2","user":"xavier","app":"index","method":"GET","url":"/settings/user","message":"Class \"Horde_Imap_Client\" not found","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"22.2.3.0","exception":{"Exception":"Exception","Message":"Class \"Horde_Imap_Client\" not found","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\PersonalSettingsController"},"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\PersonalSettingsController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"section":"personal-info","_route":"settings.PersonalSettings.index"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/user"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":158,"Previous":{"Exception":"Error","Message":"Class \"Horde_Imap_Client\" not found","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"newInstanceArgs","class":"ReflectionClass","type":"->","args":[[{"__class__":"OCA\\Mail\\IMAP\\IMAPClientFactory"},{"__class__":"OCA\\Mail\\Db\\MailboxMapper"},{"__class__":"OCA\\Mail\\IMAP\\MailboxSync"},{"__class__":"OCA\\Mail\\IMAP\\FolderMapper"},{"__class__":"OCA\\Mail\\IMAP\\MessageMapper"},{"__class__":"OCA\\Mail\\Db\\MessageMapper"},{"__class__":"OC\\EventDispatcher\\EventDispatcher"},{"__class__":"OC\\AppFramework\\ScopedPsrLogger"},{"__class__":"OCA\\Mail\\Db\\TagMapper"},{"__class__":"OCA\\Mail\\Db\\ThreadMapper"}]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"name":"OCA\\Mail\\Service\\MailManager","__class__":"ReflectionClass"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailManager"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":460,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailManager"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\MailManager"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":56,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\MailManager"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":182,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailManager"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":160,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":127,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OCA\\Mail\\Contracts\\IMailManager"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":454,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailManager"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailManager"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":87,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailManager",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map","args":[{"__class__":"Closure"},[{"name":"userFolder","__class__":"ReflectionParameter"},{"name":"accountService","__class__":"ReflectionParameter"},{"name":"attachmentService","__class__":"ReflectionParameter"},"*** sensitive parameter replaced ***",{"name":"imapClientFactory","__class__":"ReflectionParameter"},{"name":"smtpClientFactory","__class__":"ReflectionParameter"},{"name":"eventDispatcher","__class__":"ReflectionParameter"},{"name":"mailboxMapper","__class__":"ReflectionParameter"},{"name":"messageMapper","__class__":"ReflectionParameter"},{"name":"logger","__class__":"ReflectionParameter"},{"name":"performanceLogger","__class__":"ReflectionParameter"}]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"name":"OCA\\Mail\\Service\\MailTransmission","__class__":"ReflectionClass"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":460,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\MailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":56,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\MailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":182,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":160,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":127,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OCA\\Mail\\Contracts\\IMailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":454,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":87,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailTransmission",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map","args":[{"__class__":"Closure"},[{"name":"config","__class__":"ReflectionParameter"},{"name":"messageMapper","__class__":"ReflectionParameter"},"*** sensitive parameter replaced ***"]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"name":"OCA\\Mail\\Service\\AntiSpamService","__class__":"ReflectionClass"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\AntiSpamService"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":460,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\AntiSpamService"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\AntiSpamService"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":87,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\AntiSpamService",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map","args":[{"__class__":"Closure"},[{"name":"initialStateService","__class__":"ReflectionParameter"},{"name":"provisioningManager","__class__":"ReflectionParameter"},"*** sensitive parameter replaced ***"]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"name":"OCA\\Mail\\Settings\\AdminSettings","__class__":"ReflectionClass"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Settings\\AdminSettings"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":460,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Settings\\AdminSettings"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":145,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Settings\\AdminSettings"]},{"file":"/var/www/html/lib/private/Settings/Manager.php","line":170,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCA\\Mail\\Settings\\AdminSettings"]},{"file":"/var/www/html/lib/private/Settings/Manager.php","line":232,"function":"getSettings","class":"OC\\Settings\\Manager","type":"->","args":["admin","overview"]},{"file":"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php","line":90,"function":"getAdminSettings","class":"OC\\Settings\\Manager","type":"->","args":["overview",false]},{"file":"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php","line":123,"function":"formatSections","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":[{"0":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Overview"}],"1":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Server"}],"5":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Sharing"}],"10":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Security"},{"__class__":"OCA\\Files_External\\Settings\\Section"},{"__class__":"OCA\\News\\Settings\\AdminSection"}],"30":[{"__class__":"OCA\\Theming\\Settings\\Section"}],"50":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Groupware"},{"__class__":"OCA\\Passwords\\Settings\\AdminSection"}],"55":[{"__class__":"OCA\\Activity\\Settings\\AdminSection"},{"__class__":"OCA\\External\\Settings\\Section"},{"__class__":"OCA\\WorkflowEngine\\Settings\\Section"}],"70":[{"__class__":"OCA\\Talk\\Settings\\Admin\\Section"},{"__class__":"OCA\\SSEPush\\Settings\\SSEPushSection"}],"75":[{"__class__":"OCA\\Richdocuments\\Settings\\Section"}],"80":[{"__class__":"OCA\\Bookmarks\\Settings\\AdminSection"},{"__class__":"OCA\\Gitlab\\Settings\\AdminSection"},{"__class__":"OCA\\Polls\\Settings\\AdminSection"}],"90":[{"__class__":"OCA\\AppOrder\\Settings\\Section"},{"__class__":"OCA\\GroupFolders\\Settings\\Section"},{"__class__":"OCA\\LogReader\\Settings\\Section"},{"__class__":"OCA\\ServerInfo\\Settings\\AdminSection"}],"98":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Additional"}]},"personal-info","admin","personal",false]},{"file":"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php","line":75,"function":"formatAdminSections","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal","personal-info",false]},{"file":"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php","line":147,"function":"getNavigationParameters","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal","personal-info"]},{"file":"/var/www/html/apps/settings/lib/Controller/PersonalSettingsController.php","line":67,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal","personal-info"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"index","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal-info"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\PersonalSettingsController"},"index"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\PersonalSettingsController"},"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\PersonalSettingsController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"section":"personal-info","_route":"settings.PersonalSettings.index"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/user"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","Line":106},"CustomMessage":"--"},"id":"61d664c5080fa"}
{"reqId":"aDKQAPjpmbuz8Vz7W12x","level":3,"time":"2022-01-06T03:40:02+00:00","remoteAddr":"10.0.2.2","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/theming/image/background","message":"include_once(/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php): Failed to open stream: No such file or directory at /var/www/html/custom_apps/mail/lib/AppInfo/Application.php#76","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"22.2.3.0","exception":{"Exception":"Error","Message":"include_once(/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php): Failed to open stream: No such file or directory at /var/www/html/custom_apps/mail/lib/AppInfo/Application.php#76","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/mail/lib/AppInfo/Application.php","line":76,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"include_once(/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php): Failed to open stream: No such file or directory","/var/www/html/custom_apps/mail/lib/AppInfo/Application.php",76]},{"file":"/var/www/html/custom_apps/mail/lib/AppInfo/Application.php","line":76,"function":"include_once"},{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":480,"args":["/var/www/html/custom_apps/mail/lib/AppInfo/Application.php"],"function":"include"},{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":346,"function":"Composer\\Autoload\\includeFile","args":["/var/www/html/custom_apps/mail/lib//AppInfo/Application.php"]},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->","args":["OCA\\Mail\\AppInfo\\Application"]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":117,"function":"class_exists","args":["OCA\\Mail\\AppInfo\\Application"]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","accessibility","activity","apporder","bookmarks","breezedark","bruteforcesettings","calendar","checksum","cloud_federation_api","comments","contacts","contactsinteraction","cospend","dashboard","dav","deck","external","extract","federatedfilesharing","files_downloadactivity","files_external","files_markdown","files_mindmap","files_pdfviewer","files_rightclick","files_sharing","files_trashbin","files_versions","files_videoplayer","firstrunwizard","forms","groupfolders","integration_gitlab","logreader","lookup_server_connector","mail","maps","metadata","music","news","notes","notifications","notify_push","oauth2","ocdownloader","password_policy","passwords","phonetrack","photos","polls","privacy","provisioning_api","recommendations","richdocuments","serverinfo","settings","sharebymail","spreed","ssepush","systemtags","tasks","text","theming","twofactor_backupcodes","twofactor_nextcloud_notification","twofactor_totp","unsplash","user_status","viewer","weather_status","workflow_script","workflowengine"]]},{"file":"/var/www/html/lib/base.php","line":640,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1089,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/index.php","line":34,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"id":"61d664c507e4c"}
{"reqId":"aDKQAPjpmbuz8Vz7W12x","level":3,"time":"2022-01-06T03:40:02+00:00","remoteAddr":"10.0.2.2","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/theming/image/background","message":"include_once(): Failed opening '/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php' for inclusion (include_path='/var/www/html/3rdparty/pear/archive_tar:/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/apps:/var/www/html/custom_apps') at /var/www/html/custom_apps/mail/lib/AppInfo/Application.php#76","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"22.2.3.0","exception":{"Exception":"Error","Message":"include_once(): Failed opening '/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php' for inclusion (include_path='/var/www/html/3rdparty/pear/archive_tar:/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/apps:/var/www/html/custom_apps') at /var/www/html/custom_apps/mail/lib/AppInfo/Application.php#76","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/mail/lib/AppInfo/Application.php","line":76,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"include_once(): Failed opening '/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php' for inclusion (include_path='/var/www/html/3rdparty/pear/archive_tar:/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/apps:/var/www/html/custom_apps')","/var/www/html/custom_apps/mail/lib/AppInfo/Application.php",76]},{"file":"/var/www/html/custom_apps/mail/lib/AppInfo/Application.php","line":76,"function":"include_once"},{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":480,"args":["/var/www/html/custom_apps/mail/lib/AppInfo/Application.php"],"function":"include"},{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":346,"function":"Composer\\Autoload\\includeFile","args":["/var/www/html/custom_apps/mail/lib//AppInfo/Application.php"]},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->","args":["OCA\\Mail\\AppInfo\\Application"]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":117,"function":"class_exists","args":["OCA\\Mail\\AppInfo\\Application"]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","accessibility","activity","apporder","bookmarks","breezedark","bruteforcesettings","calendar","checksum","cloud_federation_api","comments","contacts","contactsinteraction","cospend","dashboard","dav","deck","external","extract","federatedfilesharing","files_downloadactivity","files_external","files_markdown","files_mindmap","files_pdfviewer","files_rightclick","files_sharing","files_trashbin","files_versions","files_videoplayer","firstrunwizard","forms","groupfolders","integration_gitlab","logreader","lookup_server_connector","mail","maps","metadata","music","news","notes","notifications","notify_push","oauth2","ocdownloader","password_policy","passwords","phonetrack","photos","polls","privacy","provisioning_api","recommendations","richdocuments","serverinfo","settings","sharebymail","spreed","ssepush","systemtags","tasks","text","theming","twofactor_backupcodes","twofactor_nextcloud_notification","twofactor_totp","unsplash","user_status","viewer","weather_status","workflow_script","workflowengine"]]},{"file":"/var/www/html/lib/base.php","line":640,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1089,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/index.php","line":34,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"id":"61d664c507dbd"}
{"reqId":"aDKQAPjpmbuz8Vz7W12x","level":4,"time":"2022-01-06T03:40:02+00:00","remoteAddr":"10.0.2.2","user":"--","app":"mail","method":"GET","url":"/index.php/apps/theming/image/background","message":"Error during app service registration: Class \"Horde_Translation\" not found","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"22.2.3.0","exception":{"Exception":"Error","Message":"Class \"Horde_Translation\" not found","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":126,"function":"register","class":"OCA\\Mail\\AppInfo\\Application","type":"->","args":[{"__class__":"OCP\\AppFramework\\Bootstrap\\IRegistrationContext@anonymous\u0000/var/www/html/lib/private/AppFramework/Bootstrap/RegistrationContext.php:106$18e"}]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","accessibility","activity","apporder","bookmarks","breezedark","bruteforcesettings","calendar","checksum","cloud_federation_api","comments","contacts","contactsinteraction","cospend","dashboard","dav","deck","external","extract","federatedfilesharing","files_downloadactivity","files_external","files_markdown","files_mindmap","files_pdfviewer","files_rightclick","files_sharing","files_trashbin","files_versions","files_videoplayer","firstrunwizard","forms","groupfolders","integration_gitlab","logreader","lookup_server_connector","mail","maps","metadata","music","news","notes","notifications","notify_push","oauth2","ocdownloader","password_policy","passwords","phonetrack","photos","polls","privacy","provisioning_api","recommendations","richdocuments","serverinfo","settings","sharebymail","spreed","ssepush","systemtags","tasks","text","theming","twofactor_backupcodes","twofactor_nextcloud_notification","twofactor_totp","unsplash","user_status","viewer","weather_status","workflow_script","workflowengine"]]},{"file":"/var/www/html/lib/base.php","line":640,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1089,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/index.php","line":34,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/custom_apps/mail/lib/AppInfo/Application.php","Line":126,"CustomMessage":"Error during app service registration: Class \"Horde_Translation\" not found"},"id":"61d664c507d12"}
It's too huge to upload, but I can copy some seemingly relevant messages here:
{"reqId":"o1lBfGhQANsvDMeryCH2","level":3,"time":"2022-01-06T03:40:01+00:00","remoteAddr":"10.0.2.2","user":"xavier","app":"index","method":"GET","url":"/settings/user","message":"Class \"Horde_Imap_Client\" not found","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"22.2.3.0","exception":{"Exception":"Exception","Message":"Class \"Horde_Imap_Client\" not found","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\PersonalSettingsController"},"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\PersonalSettingsController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"section":"personal-info","_route":"settings.PersonalSettings.index"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/user"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":158,"Previous":{"Exception":"Error","Message":"Class \"Horde_Imap_Client\" not found","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"newInstanceArgs","class":"ReflectionClass","type":"->","args":[[{"__class__":"OCA\\Mail\\IMAP\\IMAPClientFactory"},{"__class__":"OCA\\Mail\\Db\\MailboxMapper"},{"__class__":"OCA\\Mail\\IMAP\\MailboxSync"},{"__class__":"OCA\\Mail\\IMAP\\FolderMapper"},{"__class__":"OCA\\Mail\\IMAP\\MessageMapper"},{"__class__":"OCA\\Mail\\Db\\MessageMapper"},{"__class__":"OC\\EventDispatcher\\EventDispatcher"},{"__class__":"OC\\AppFramework\\ScopedPsrLogger"},{"__class__":"OCA\\Mail\\Db\\TagMapper"},{"__class__":"OCA\\Mail\\Db\\ThreadMapper"}]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"name":"OCA\\Mail\\Service\\MailManager","__class__":"ReflectionClass"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailManager"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":460,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailManager"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\MailManager"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":56,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\MailManager"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":182,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailManager"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":160,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":127,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OCA\\Mail\\Contracts\\IMailManager"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":454,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailManager"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailManager"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":87,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailManager",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map","args":[{"__class__":"Closure"},[{"name":"userFolder","__class__":"ReflectionParameter"},{"name":"accountService","__class__":"ReflectionParameter"},{"name":"attachmentService","__class__":"ReflectionParameter"},"*** sensitive parameter replaced ***",{"name":"imapClientFactory","__class__":"ReflectionParameter"},{"name":"smtpClientFactory","__class__":"ReflectionParameter"},{"name":"eventDispatcher","__class__":"ReflectionParameter"},{"name":"mailboxMapper","__class__":"ReflectionParameter"},{"name":"messageMapper","__class__":"ReflectionParameter"},{"name":"logger","__class__":"ReflectionParameter"},{"name":"performanceLogger","__class__":"ReflectionParameter"}]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"name":"OCA\\Mail\\Service\\MailTransmission","__class__":"ReflectionClass"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":460,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\MailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":56,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\MailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":182,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\MailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":160,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":127,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OCA\\Mail\\Contracts\\IMailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":454,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailTransmission"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":87,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Contracts\\IMailTransmission",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map","args":[{"__class__":"Closure"},[{"name":"config","__class__":"ReflectionParameter"},{"name":"messageMapper","__class__":"ReflectionParameter"},"*** sensitive parameter replaced ***"]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"name":"OCA\\Mail\\Service\\AntiSpamService","__class__":"ReflectionClass"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\AntiSpamService"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":460,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Service\\AntiSpamService"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":432,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\AntiSpamService"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":87,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Service\\AntiSpamService",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map","args":[{"__class__":"Closure"},[{"name":"initialStateService","__class__":"ReflectionParameter"},{"name":"provisioningManager","__class__":"ReflectionParameter"},"*** sensitive parameter replaced ***"]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"name":"OCA\\Mail\\Settings\\AdminSettings","__class__":"ReflectionClass"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Settings\\AdminSettings"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":460,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Mail\\Settings\\AdminSettings"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":145,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Mail\\Settings\\AdminSettings"]},{"file":"/var/www/html/lib/private/Settings/Manager.php","line":170,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCA\\Mail\\Settings\\AdminSettings"]},{"file":"/var/www/html/lib/private/Settings/Manager.php","line":232,"function":"getSettings","class":"OC\\Settings\\Manager","type":"->","args":["admin","overview"]},{"file":"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php","line":90,"function":"getAdminSettings","class":"OC\\Settings\\Manager","type":"->","args":["overview",false]},{"file":"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php","line":123,"function":"formatSections","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":[{"0":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Overview"}],"1":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Server"}],"5":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Sharing"}],"10":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Security"},{"__class__":"OCA\\Files_External\\Settings\\Section"},{"__class__":"OCA\\News\\Settings\\AdminSection"}],"30":[{"__class__":"OCA\\Theming\\Settings\\Section"}],"50":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Groupware"},{"__class__":"OCA\\Passwords\\Settings\\AdminSection"}],"55":[{"__class__":"OCA\\Activity\\Settings\\AdminSection"},{"__class__":"OCA\\External\\Settings\\Section"},{"__class__":"OCA\\WorkflowEngine\\Settings\\Section"}],"70":[{"__class__":"OCA\\Talk\\Settings\\Admin\\Section"},{"__class__":"OCA\\SSEPush\\Settings\\SSEPushSection"}],"75":[{"__class__":"OCA\\Richdocuments\\Settings\\Section"}],"80":[{"__class__":"OCA\\Bookmarks\\Settings\\AdminSection"},{"__class__":"OCA\\Gitlab\\Settings\\AdminSection"},{"__class__":"OCA\\Polls\\Settings\\AdminSection"}],"90":[{"__class__":"OCA\\AppOrder\\Settings\\Section"},{"__class__":"OCA\\GroupFolders\\Settings\\Section"},{"__class__":"OCA\\LogReader\\Settings\\Section"},{"__class__":"OCA\\ServerInfo\\Settings\\AdminSection"}],"98":[{"__class__":"OCA\\Settings\\Sections\\Admin\\Additional"}]},"personal-info","admin","personal",false]},{"file":"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php","line":75,"function":"formatAdminSections","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal","personal-info",false]},{"file":"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php","line":147,"function":"getNavigationParameters","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal","personal-info"]},{"file":"/var/www/html/apps/settings/lib/Controller/PersonalSettingsController.php","line":67,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal","personal-info"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"index","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal-info"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\PersonalSettingsController"},"index"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\PersonalSettingsController"},"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\PersonalSettingsController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"section":"personal-info","_route":"settings.PersonalSettings.index"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/user"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","Line":106},"CustomMessage":"--"},"id":"61d664c5080fa"}
{"reqId":"aDKQAPjpmbuz8Vz7W12x","level":3,"time":"2022-01-06T03:40:02+00:00","remoteAddr":"10.0.2.2","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/theming/image/background","message":"include_once(/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php): Failed to open stream: No such file or directory at /var/www/html/custom_apps/mail/lib/AppInfo/Application.php#76","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"22.2.3.0","exception":{"Exception":"Error","Message":"include_once(/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php): Failed to open stream: No such file or directory at /var/www/html/custom_apps/mail/lib/AppInfo/Application.php#76","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/mail/lib/AppInfo/Application.php","line":76,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"include_once(/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php): Failed to open stream: No such file or directory","/var/www/html/custom_apps/mail/lib/AppInfo/Application.php",76]},{"file":"/var/www/html/custom_apps/mail/lib/AppInfo/Application.php","line":76,"function":"include_once"},{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":480,"args":["/var/www/html/custom_apps/mail/lib/AppInfo/Application.php"],"function":"include"},{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":346,"function":"Composer\\Autoload\\includeFile","args":["/var/www/html/custom_apps/mail/lib//AppInfo/Application.php"]},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->","args":["OCA\\Mail\\AppInfo\\Application"]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":117,"function":"class_exists","args":["OCA\\Mail\\AppInfo\\Application"]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","accessibility","activity","apporder","bookmarks","breezedark","bruteforcesettings","calendar","checksum","cloud_federation_api","comments","contacts","contactsinteraction","cospend","dashboard","dav","deck","external","extract","federatedfilesharing","files_downloadactivity","files_external","files_markdown","files_mindmap","files_pdfviewer","files_rightclick","files_sharing","files_trashbin","files_versions","files_videoplayer","firstrunwizard","forms","groupfolders","integration_gitlab","logreader","lookup_server_connector","mail","maps","metadata","music","news","notes","notifications","notify_push","oauth2","ocdownloader","password_policy","passwords","phonetrack","photos","polls","privacy","provisioning_api","recommendations","richdocuments","serverinfo","settings","sharebymail","spreed","ssepush","systemtags","tasks","text","theming","twofactor_backupcodes","twofactor_nextcloud_notification","twofactor_totp","unsplash","user_status","viewer","weather_status","workflow_script","workflowengine"]]},{"file":"/var/www/html/lib/base.php","line":640,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1089,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/index.php","line":34,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"id":"61d664c507e4c"}
{"reqId":"aDKQAPjpmbuz8Vz7W12x","level":3,"time":"2022-01-06T03:40:02+00:00","remoteAddr":"10.0.2.2","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/theming/image/background","message":"include_once(): Failed opening '/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php' for inclusion (include_path='/var/www/html/3rdparty/pear/archive_tar:/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/apps:/var/www/html/custom_apps') at /var/www/html/custom_apps/mail/lib/AppInfo/Application.php#76","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"22.2.3.0","exception":{"Exception":"Error","Message":"include_once(): Failed opening '/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php' for inclusion (include_path='/var/www/html/3rdparty/pear/archive_tar:/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/apps:/var/www/html/custom_apps') at /var/www/html/custom_apps/mail/lib/AppInfo/Application.php#76","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/mail/lib/AppInfo/Application.php","line":76,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"include_once(): Failed opening '/var/www/html/custom_apps/mail/lib/AppInfo/../../vendor/autoload.php' for inclusion (include_path='/var/www/html/3rdparty/pear/archive_tar:/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/apps:/var/www/html/custom_apps')","/var/www/html/custom_apps/mail/lib/AppInfo/Application.php",76]},{"file":"/var/www/html/custom_apps/mail/lib/AppInfo/Application.php","line":76,"function":"include_once"},{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":480,"args":["/var/www/html/custom_apps/mail/lib/AppInfo/Application.php"],"function":"include"},{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":346,"function":"Composer\\Autoload\\includeFile","args":["/var/www/html/custom_apps/mail/lib//AppInfo/Application.php"]},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->","args":["OCA\\Mail\\AppInfo\\Application"]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":117,"function":"class_exists","args":["OCA\\Mail\\AppInfo\\Application"]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","accessibility","activity","apporder","bookmarks","breezedark","bruteforcesettings","calendar","checksum","cloud_federation_api","comments","contacts","contactsinteraction","cospend","dashboard","dav","deck","external","extract","federatedfilesharing","files_downloadactivity","files_external","files_markdown","files_mindmap","files_pdfviewer","files_rightclick","files_sharing","files_trashbin","files_versions","files_videoplayer","firstrunwizard","forms","groupfolders","integration_gitlab","logreader","lookup_server_connector","mail","maps","metadata","music","news","notes","notifications","notify_push","oauth2","ocdownloader","password_policy","passwords","phonetrack","photos","polls","privacy","provisioning_api","recommendations","richdocuments","serverinfo","settings","sharebymail","spreed","ssepush","systemtags","tasks","text","theming","twofactor_backupcodes","twofactor_nextcloud_notification","twofactor_totp","unsplash","user_status","viewer","weather_status","workflow_script","workflowengine"]]},{"file":"/var/www/html/lib/base.php","line":640,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1089,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/index.php","line":34,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"id":"61d664c507dbd"}
{"reqId":"aDKQAPjpmbuz8Vz7W12x","level":4,"time":"2022-01-06T03:40:02+00:00","remoteAddr":"10.0.2.2","user":"--","app":"mail","method":"GET","url":"/index.php/apps/theming/image/background","message":"Error during app service registration: Class \"Horde_Translation\" not found","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"22.2.3.0","exception":{"Exception":"Error","Message":"Class \"Horde_Translation\" not found","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":126,"function":"register","class":"OCA\\Mail\\AppInfo\\Application","type":"->","args":[{"__class__":"OCP\\AppFramework\\Bootstrap\\IRegistrationContext@anonymous\u0000/var/www/html/lib/private/AppFramework/Bootstrap/RegistrationContext.php:106$18e"}]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","accessibility","activity","apporder","bookmarks","breezedark","bruteforcesettings","calendar","checksum","cloud_federation_api","comments","contacts","contactsinteraction","cospend","dashboard","dav","deck","external","extract","federatedfilesharing","files_downloadactivity","files_external","files_markdown","files_mindmap","files_pdfviewer","files_rightclick","files_sharing","files_trashbin","files_versions","files_videoplayer","firstrunwizard","forms","groupfolders","integration_gitlab","logreader","lookup_server_connector","mail","maps","metadata","music","news","notes","notifications","notify_push","oauth2","ocdownloader","password_policy","passwords","phonetrack","photos","polls","privacy","provisioning_api","recommendations","richdocuments","serverinfo","settings","sharebymail","spreed","ssepush","systemtags","tasks","text","theming","twofactor_backupcodes","twofactor_nextcloud_notification","twofactor_totp","unsplash","user_status","viewer","weather_status","workflow_script","workflowengine"]]},{"file":"/var/www/html/lib/base.php","line":640,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1089,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/index.php","line":34,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/custom_apps/mail/lib/AppInfo/Application.php","Line":126,"CustomMessage":"Error during app service registration: Class \"Horde_Translation\" not found"},"id":"61d664c507d12"}
I've seen that before. :thinking: but I can't find the ticket.
It's nothing to do with this ticket though.
@miaulalala I'm working on this now. Unfortunately, I'm not much of a web developer, and I cannot find the documentation to install this branch manually. I'm assuming it's occ app:install, but is it expecting a tarball or a filesystem directory?
@spacemule simply git-cloning into the custom_apps folder will do.
Also, I might have mis-stated my situation.
The error message I encountered is the same as in the first post ( mb_convert_encoding
and like ).
The error messages I posted later are raised when I test #5882 (1.20alpha1), after I git clone and enable, it crashes itself as well as my nextcloud settings page.
I probably should have pasted them in that pr.
@spacemule xinstein is right. Do you know how to git clone the app? Then you can use git to checkout the branch fix/detect-char-encoding
@spacemule You might also need to chown the cloned folder to the user running the nextcloud instance
@miaulalala I just installed the patch #5882 to see if the error is disappearing on my side (was in the cron job for me). I'll let you know after a while to be sure it does not come back.
@miaulalala I cannot see anymore the error after applying the patch. And it appears again after removing the patch.
But when the patch is active I still have sync error raised (not sure if this is related to the patch or not, but the stack does not mention the modified file by the patch). I am attaching the log in case it is relevant:
Log of error raised (patch active)
{
"reqId": "j6fDPFnTgXCL2H4pYMt8",
"level": 3,
"time": "2022-02-02T15:25:06+00:00",
"remoteAddr": "",
"user": "--",
"app": "mail",
"method": "",
"url": "--",
"message": "Cron mail sync failed for account {accountId}",
"userAgent": "--",
"version": "22.2.3.0",
"exception": {
"Exception": "OCA\\Mail\\Exception\\ServiceException",
"Message": "Sync failed for 3:INBOX: syntax error, unexpected token \"use\", expecting \",\" or \";\"",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php",
"line": 135,
"function": "sync",
"class": "OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer",
"type": "->",
"args": [
{
"__class__": "OCA\\Mail\\Account"
},
{
"id": 43,
"__class__": "OCA\\Mail\\Db\\Mailbox"
},
{
"__class__": "OC\\AppFramework\\ScopedPsrLogger"
},
42,
null,
false,
true
]
},
{
"file": "/var/www/html/custom_apps/mail/lib/BackgroundJob/SyncJob.php",
"line": 109,
"function": "syncAccount",
"class": "OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer",
"type": "->",
"args": [
{
"__class__": "OCA\\Mail\\Account"
},
{
"__class__": "OC\\AppFramework\\ScopedPsrLogger"
}
]
},
{
"file": "/var/www/html/lib/public/BackgroundJob/Job.php",
"line": 79,
"function": "run",
"class": "OCA\\Mail\\BackgroundJob\\SyncJob",
"type": "->",
"args": [
{
"accountId": 3
}
]
},
{
"file": "/var/www/html/lib/public/BackgroundJob/TimedJob.php",
"line": 63,
"function": "execute",
"class": "OCP\\BackgroundJob\\Job",
"type": "->",
"args": [
{
"__class__": "OC\\BackgroundJob\\JobList"
},
{
"__class__": "OC\\Log"
}
]
},
{
"file": "/var/www/html/cron.php",
"line": 127,
"function": "execute",
"class": "OCP\\BackgroundJob\\TimedJob",
"type": "->",
"args": [
{
"__class__": "OC\\BackgroundJob\\JobList"
},
{
"__class__": "OC\\Log"
}
]
}
],
"File": "/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php",
"Line": 249,
"Previous": {
"Exception": "ParseError",
"Message": "syntax error, unexpected token \"use\", expecting \",\" or \";\"",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/lib/composer/composer/ClassLoader.php",
"line": 346,
"function": "Composer\\Autoload\\includeFile",
"args": [
"/var/www/html/custom_apps/mail/lib//Model/IMAPMessage.php"
]
},
{
"file": "/var/www/html/custom_apps/mail/lib/IMAP/MessageMapper.php",
"line": 249,
"function": "loadClass",
"class": "Composer\\Autoload\\ClassLoader",
"type": "->",
"args": [
"OCA\\Mail\\Model\\IMAPMessage"
]
},
{
"function": "OCA\\Mail\\IMAP\\{closure}",
"class": "OCA\\Mail\\IMAP\\MessageMapper",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/custom_apps/mail/lib/IMAP/MessageMapper.php",
"line": 256,
"function": "array_map",
"args": [
{
"__class__": "Closure"
},
[
"*** sensitive parameter replaced ***",
{
"__class__": "Horde_Imap_Client_Data_Fetch"
},
{
"__class__": "Horde_Imap_Client_Data_Fetch"
}
]
]
},
{
"file": "/var/www/html/custom_apps/mail/lib/IMAP/Sync/Synchronizer.php",
"line": 99,
"function": "findByIds",
"class": "OCA\\Mail\\IMAP\\MessageMapper",
"type": "->",
"args": [
{
"cacheFields": [
"HICenv",
"HICflags",
"HIChdrs",
"HICdate",
"HICsize",
"And 1 more entries, set log level to debug to see all entries"
],
"changed": true,
"statuscache": true,
"__class__": "Horde_Imap_Client_Socket"
},
"INBOX",
[
77205,
77206,
77208
]
]
},
{
"file": "/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php",
"line": 354,
"function": "sync",
"class": "OCA\\Mail\\IMAP\\Sync\\Synchronizer",
"type": "->",
"args": [
{
"cacheFields": [
"HICenv",
"HICflags",
"HIChdrs",
"HICdate",
"HICsize",
"And 1 more entries, set log level to debug to see all entries"
],
"changed": true,
"statuscache": true,
"__class__": "Horde_Imap_Client_Socket"
},
{
"__class__": "OCA\\Mail\\IMAP\\Sync\\Request"
},
8
]
},
{
"file": "/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php",
"line": 230,
"function": "runPartialSync",
"class": "OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer",
"type": "->",
"args": [
{
"__class__": "OCA\\Mail\\Account"
},
{
"id": 43,
"__class__": "OCA\\Mail\\Db\\Mailbox"
},
{
"__class__": "OC\\AppFramework\\ScopedPsrLogger"
},
42,
null
]
},
{
"file": "/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php",
"line": 135,
"function": "sync",
"class": "OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer",
"type": "->",
"args": [
{
"__class__": "OCA\\Mail\\Account"
},
{
"id": 43,
"__class__": "OCA\\Mail\\Db\\Mailbox"
},
{
"__class__": "OC\\AppFramework\\ScopedPsrLogger"
},
42,
null,
false,
true
]
},
{
"file": "/var/www/html/custom_apps/mail/lib/BackgroundJob/SyncJob.php",
"line": 109,
"function": "syncAccount",
"class": "OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer",
"type": "->",
"args": [
{
"__class__": "OCA\\Mail\\Account"
},
{
"__class__": "OC\\AppFramework\\ScopedPsrLogger"
}
]
},
{
"file": "/var/www/html/lib/public/BackgroundJob/Job.php",
"line": 79,
"function": "run",
"class": "OCA\\Mail\\BackgroundJob\\SyncJob",
"type": "->",
"args": [
{
"accountId": 3
}
]
},
{
"file": "/var/www/html/lib/public/BackgroundJob/TimedJob.php",
"line": 63,
"function": "execute",
"class": "OCP\\BackgroundJob\\Job",
"type": "->",
"args": [
{
"__class__": "OC\\BackgroundJob\\JobList"
},
{
"__class__": "OC\\Log"
}
]
},
{
"file": "/var/www/html/cron.php",
"line": 127,
"function": "execute",
"class": "OCP\\BackgroundJob\\TimedJob",
"type": "->",
"args": [
{
"__class__": "OC\\BackgroundJob\\JobList"
},
{
"__class__": "OC\\Log"
}
]
}
],
"File": "/var/www/html/custom_apps/mail/lib/Model/IMAPMessage.php",
"Line": 57
},
"CustomMessage": "Cron mail sync failed for account {accountId}"
}
}
Thanks everyone for testing this!
@doc75 I'm not sure where that error is coming from, can you have a look at your /lib/Service/Sync/ImapToDbSynchronizer.php file and possibly copy&paste the sync
function here? I have looked through the code and it's not apparent to me why this fails.
Here is the content of the file ImapToDbSynchronizer.php:
public function sync(Account $account,
Mailbox $mailbox,
LoggerInterface $logger,
int $criteria = Horde_Imap_Client::SYNC_NEWMSGSUIDS | Horde_Imap_Client::SYNC_FLAGSUIDS | Horde_Imap_Client::SYNC_VANISHEDUIDS,
array $knownUids = null,
bool $force = false,
bool $batchSync = false): void {
if ($mailbox->getSelectable() === false) {
return;
}
if ($force || ($criteria & Horde_Imap_Client::SYNC_NEWMSGSUIDS)) {
$logger->debug("Locking mailbox " . $mailbox->getId() . " for new messages sync");
$this->mailboxMapper->lockForNewSync($mailbox);
}
if ($force || ($criteria & Horde_Imap_Client::SYNC_FLAGSUIDS)) {
$logger->debug("Locking mailbox " . $mailbox->getId() . " for changed messages sync");
$this->mailboxMapper->lockForChangeSync($mailbox);
}
if ($force || ($criteria & Horde_Imap_Client::SYNC_VANISHEDUIDS)) {
$logger->debug("Locking mailbox " . $mailbox->getId() . " for vanished messages sync");
$this->mailboxMapper->lockForVanishedSync($mailbox);
}
try {
if ($force
|| $mailbox->getSyncNewToken() === null
|| $mailbox->getSyncChangedToken() === null
|| $mailbox->getSyncVanishedToken() === null) {
$logger->debug("Running initial sync for " . $mailbox->getId());
$this->runInitialSync($account, $mailbox, $logger);
} else {
try {
$logger->debug("Running partial sync for " . $mailbox->getId());
$this->runPartialSync($account, $mailbox, $logger, $criteria, $knownUids);
} catch (UidValidityChangedException $e) {
$logger->warning('Mailbox UID validity changed. Wiping cache and performing full sync for ' . $mailbox->getId());
$this->resetCache($account, $mailbox);
$logger->debug("Running initial sync for " . $mailbox->getId() . " after cache reset");
$this->runInitialSync($account, $mailbox, $logger);
} catch (MailboxDoesNotSupportModSequencesException $e) {
$logger->warning('Mailbox does not support mod-sequences error occured. Wiping cache and performing full sync for ' . $mailbox->getId(), [
'exception' => $e,
]);
$this->resetCache($account, $mailbox);
$logger->debug("Running initial sync for " . $mailbox->getId() . " after cache reset - no mod-sequences error");
$this->runInitialSync($account, $mailbox, $logger);
}
}
} catch (ServiceException $e) {
// Just rethrow, don't wrap into another exception
throw $e;
} catch (Throwable $e) {
throw new ServiceException('Sync failed for ' . $account->getId() . ':' . $mailbox->getName() . ': ' . $e->getMessage(), 0, $e);
} finally {
if ($force || ($criteria & Horde_Imap_Client::SYNC_VANISHEDUIDS)) {
$logger->debug("Unlocking mailbox " . $mailbox->getId() . " from vanished messages sync");
$this->mailboxMapper->unlockFromVanishedSync($mailbox);
}
if ($force || ($criteria & Horde_Imap_Client::SYNC_FLAGSUIDS)) {
$logger->debug("Unlocking mailbox " . $mailbox->getId() . " from changed messages sync");
$this->mailboxMapper->unlockFromChangedSync($mailbox);
}
if ($force || ($criteria & Horde_Imap_Client::SYNC_NEWMSGSUIDS)) {
$logger->debug("Unlocking mailbox " . $mailbox->getId() . " from new messages sync");
$this->mailboxMapper->unlockFromNewSync($mailbox);
}
}
if (!$batchSync) {
$this->dispatcher->dispatchTyped(
new SynchronizationEvent(
$account,
$this->logger
)
);
}
}