Closed bluestar800 closed 1 year ago
Allowed memory size of 2097152 bytes exhausted
Your memory limit is 2MB?
Allowed memory size of 2097152 bytes exhausted
Your memory limit is 2MB?
in hyper-v vm , the omv6 used 4096MB. And installed the nextcloud with docker
I do not understand. Please see articles like https://help.dreamhost.com/hc/en-us/articles/214893937-How-do-I-increase-the-PHP-memory-limit- or the forums at https://help.nextcloud.com/search?q=memory%20limit to increase your limit.
Because nextcloud is running normally(eg. upload,download,sync contacts,onlyoffice) in docker of omv6, I want to solve the problem of mail first and then limit. Now I have to solve the limit problem first
I will check and fix this limit when I get home.
I will give more feedback.
I do not understand. Please see articles like https://help.dreamhost.com/hc/en-us/articles/214893937-How-do-I-increase-the-PHP-memory-limit- or the forums at https://help.nextcloud.com/search?q=memory%20limit to increase your limit.
I fix the memory_limit to 512MB. But mail still doesn't work. It keeps loading that I can not use it
`www-data@d7619e190baf:~/html$ php occ mail:account:sync -f 1 [debug] Syncing 1 [debug] Locking mailbox 1 for new messages sync [debug] Locking mailbox 1 for changed messages sync [debug] Locking mailbox 1 for vanished messages sync [debug] Running initial sync for 1 [debug] Unlocking mailbox 1 from vanished messages sync [debug] Unlocking mailbox 1 from changed messages sync [debug] Unlocking mailbox 1 from new messages sync
In ImapToDbSynchronizer.php line 298:
Can not get messages from mailbox INBOX: Could not open mailbox "INBOX".
In Socket.php line 1242:
Could not open mailbox "INBOX". `
and the nextcloud config.php
<?php $CONFIG = array ( 'htaccess.RewriteBase' => '/', 'memcache.local' => '\\OC\\Memcache\\APCu', 'memcache.distributed' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => '*.*.*.*', 'port' => *, 'password' => '*', ), 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/html/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/html/custom_apps', 'url' => '/custom_apps', 'writable' => true, ), ), 'instanceid' => '*', 'passwordsalt' => '*', 'secret' => '*', 'trusted_domains' => array ( 0 => '*', 1 => '*', ), 'datadirectory' => '/var/www/html/data', 'dbtype' => '*', 'dbname' => '*', 'dbhost' => '*', 'dbport' => '', 'dbtableprefix' => '*', 'mysql.utf8mb4' => true, 'dbuser' => '*', 'dbpassword' => '*', 'mail_smtpmode' => 'smtp', 'mail_smtphost' => 'smtp.163.com', 'mail_sendmailmode' => 'smtp', 'mail_smtpsecure' => 'ssl', 'mail_from_address' => '*', 'mail_domain' => '163.com', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtpname' => '*', 'mail_smtppassword' => '*', 'mail_smtpport' => '465', 'overwrite.cli.url' => '*', 'overwriteprotocol' => 'https', 'allow_local_remote_servers' => true, 'loglevel' => 0, 'default_phone_region' => 'CN', 'default_language' => 'zh', 'default_locale' => 'zh_CN', 'onlyoffice' => array ( "jwt_secret" => "secret-from-local.json", "jwt_header" => "AuthorizationJwt", ), 'version' => '23.0.3.2', 'installed' => true, 'maintenance' => false, );
Try running with -v
to get the full trace.
Try running with
-v
to get the full trace.
www-data@d7619e190baf:~/html$ php occ mail:account:sync -vf 1 [debug] Syncing 1 [debug] Locking mailbox 1 for new messages sync
In MailboxLockedException.php line 33:
[OCA\Mail\Exception\MailboxLockedException] 1 is already being synced
Exception trace: at /var/www/html/custom_apps/mail/lib/Exception/MailboxLockedException.php:33 OCA\Mail\Exception\MailboxLockedException::from() at /var/www/html/custom_apps/mail/lib/Db/MailboxMapper.php:168 OCA\Mail\Db\MailboxMapper->lockForSync() at /var/www/html/custom_apps/mail/lib/Db/MailboxMapper.php:192 OCA\Mail\Db\MailboxMapper->lockForNewSync() at /var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php:209 OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync() at /var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php:135 OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount() at /var/www/html/custom_apps/mail/lib/Command/SyncAccount.php:110 OCA\Mail\Command\SyncAccount->sync() at /var/www/html/custom_apps/mail/lib/Command/SyncAccount.php:94 OCA\Mail\Command\SyncAccount->execute() at /var/www/html/3rdparty/symfony/console/Command/Command.php:255 Symfony\Component\Console\Command\Command->run() at /var/www/html/3rdparty/symfony/console/Application.php:1009 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/3rdparty/symfony/console/Application.php:273 Symfony\Component\Console\Application->doRun() at /var/www/html/3rdparty/symfony/console/Application.php:149 Symfony\Component\Console\Application->run() at /var/www/html/lib/private/Console/Application.php:211 OC\Console\Application->run() at /var/www/html/console.php:99 require_once() at /var/www/html/occ:11
mail:account:sync [-f|--force] [--]
I ran -v again I hope I can give you some more details
I uninstalled the app mail and used SQL command - TRUNCATE 'ocmail*' After reinstalling app mail, I added Gmail into app mail . And Gmail works normally. Then I added 163's email again, but the problem was the same as above - " Can not get messages from mailbox INBOX: Could not open mailbox "INBOX" "
In phpMyadmin, I found an exception in "name-INBOX" that is in the 'oc_mail_mailboxes' table .The "Sync_new_lock", "sync_changed_lock", and "sync_vanished_lock" are constantly increasing the value , also changing between 'value' and 'NULL'. The other 'name' is normal
Therefore, I think it should be caused by app mail can not getting the correct "inbox" name of 163's mailbox , but I don't know how to solve this problem
我也遇到了相同的问题,163邮箱无法加载 I have a same issue , mail 163 can't reload.
error OCA\Mail\Exception\ServiceException: Can not get messages from mailbox INBOX: Could not open mailbox "INBOX".
详细信息
www-data@59c5e1cb4827:~/html$ php occ mail:account:sync -vf 1
[debug] Syncing 1
[debug] Locking mailbox 1 for new messages sync
[debug] Locking mailbox 1 for changed messages sync
[debug] Locking mailbox 1 for vanished messages sync
[debug] Running initial sync for 1
[debug] Unlocking mailbox 1 from vanished messages sync
[debug] Unlocking mailbox 1 from changed messages sync
[debug] Unlocking mailbox 1 from new messages sync
In ImapToDbSynchronizer.php line 298:
[OCA\Mail\Exception\ServiceException]
Can not get messages from mailbox INBOX: Could not open mailbox "INBOX".
Exception trace:
at /var/www/html/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php:298
OCA\Mail\Service\Sync\ImapToDbSynchronizer->runInitialSync() at /var/www/html/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php:226
OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync() at /var/www/html/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php:135
OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount() at /var/www/html/apps/mail/lib/Command/SyncAccount.php:110
OCA\Mail\Command\SyncAccount->sync() at /var/www/html/apps/mail/lib/Command/SyncAccount.php:94
OCA\Mail\Command\SyncAccount->execute() at /var/www/html/3rdparty/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /var/www/html/3rdparty/symfony/console/Application.php:1009
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/3rdparty/symfony/console/Application.php:273
Symfony\Component\Console\Application->doRun() at /var/www/html/3rdparty/symfony/console/Application.php:149
Symfony\Component\Console\Application->run() at /var/www/html/lib/private/Console/Application.php:211
OC\Console\Application->run() at /var/www/html/console.php:99
require_once() at /var/www/html/occ:11
In Socket.php line 1242:
[Horde_Imap_Client_Exception (200)]
Could not open mailbox "INBOX".
Exception trace:
at /var/www/html/apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php:1242
Horde_Imap_Client_Socket->_openMailbox() at /var/www/html/apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Base.php:1051
Horde_Imap_Client_Base->openMailbox() at /var/www/html/apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Base.php:2232
Horde_Imap_Client_Base->search() at /var/www/html/apps/mail/lib/IMAP/MessageMapper.php:109
OCA\Mail\IMAP\MessageMapper->findAll() at /var/www/html/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php:294
OCA\Mail\Service\Sync\ImapToDbSynchronizer->runInitialSync() at /var/www/html/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php:226
OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync() at /var/www/html/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php:135
OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount() at /var/www/html/apps/mail/lib/Command/SyncAccount.php:110
OCA\Mail\Command\SyncAccount->sync() at /var/www/html/apps/mail/lib/Command/SyncAccount.php:94
OCA\Mail\Command\SyncAccount->execute() at /var/www/html/3rdparty/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /var/www/html/3rdparty/symfony/console/Application.php:1009
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/3rdparty/symfony/console/Application.php:273
Symfony\Component\Console\Application->doRun() at /var/www/html/3rdparty/symfony/console/Application.php:149
Symfony\Component\Console\Application->run() at /var/www/html/lib/private/Console/Application.php:211
OC\Console\Application->run() at /var/www/html/console.php:99
require_once() at /var/www/html/occ:11
mail:account:sync [-f|--force] [--]
我也遇到了相同的问题,163邮箱无法加载 I have a same issue , mail 163 can't reload.
error OCA\Mail\Exception\ServiceException: Can not get messages from mailbox INBOX: Could not open mailbox "INBOX".
我初步认为是邮箱插件获取的163的'收件箱'的名称被写成'inbox'而不是'收件箱'导致的。
I think that the name of the '收件箱' of 163 obtained by the mailbox plugin is written as 'inbox' instead of '收件箱'.
Same issue here. The inbox doesn't open and getting same error. Use 163 mail too. Maybe something related to netease(163) mail?
我也遇到了相同的问题,163邮箱无法加载 I have a same issue , mail 163 can't reload. error OCA\Mail\Exception\ServiceException: Can not get messages from mailbox INBOX: Could not open mailbox "INBOX".
我初步认为是邮箱插件获取的163的'收件箱'的名称被写成'inbox'而不是'收件箱'导致的。
I think that the name of the '收件箱' of 163 obtained by the mailbox plugin is written as 'inbox' instead of '收件箱'.
same issue here. did you solve it?
我也遇到了相同的问题,163邮箱无法加载 I have a same issue , mail 163 can't reload. error OCA\Mail\Exception\ServiceException: Can not get messages from mailbox INBOX: Could not open mailbox "INBOX".
我初步认为是邮箱插件获取的163的'收件箱'的名称被写成'inbox'而不是'收件箱'导致的。 I think that the name of the '收件箱' of 163 obtained by the mailbox plugin is written as 'inbox' instead of '收件箱'.
same issue here. did you solve it?
I'm not using this app for the time being, because I don't have time to analyze it in detail
we are on version 3.4.0-alpha3, would be nice if you can upgrade to a higher version because this issue is solved
I also have this problem and it cannot be used when using the 163 mailbox. {message: "mailbox 32 is not cached", type: "OCA\Mail\Exception\MailboxNotCachedException"}
ServiceException Can not get messages from mailbox INBOX: Could not open mailbox "INBOX".
Steps to reproduce
Expected behavior
should display message header and body
Actual behavior
"loading" is always displayed, but child folders are displayed nextcloud log is growing really fast The same things after uninstallation and reinstallation, including the removal of key values in SQL
Mail app version
1.11.7
Mailserver or service
163
Operating system
debian 11 openmediavault6 docker
PHP engine version
PHP 7.4
Web server
Nginx
Database
MariaDB
Additional info
nextcloud log(0)
{"reqId":"UCAaKeWRvOVlkYofxKXN","level":3,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"mail","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"Can not get messages from mailbox INBOX: Could not open mailbox \"INBOX\".","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2","exception":{"Exception":"OCA\\Mail\\Exception\\ServiceException","Message":"Can not get messages from mailbox INBOX: Could not open mailbox \"INBOX\".","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php","line":226,"function":"runInitialSync","class":"OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},{"__class__":"OC\\AppFramework\\ScopedPsrLogger"}]},{"file":"/var/www/html/custom_apps/mail/lib/Service/Sync/SyncService.php","line":127,"function":"sync","class":"OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},{"__class__":"OC\\AppFramework\\ScopedPsrLogger"},42,[],true]},{"file":"/var/www/html/custom_apps/mail/lib/Controller/MailboxesController.php","line":161,"function":"syncMailbox","class":"OCA\\Mail\\Service\\Sync\\SyncService","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},42,[],false,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"sync","class":"OCA\\Mail\\Controller\\MailboxesController","type":"->","args":[1,[],true,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MailboxesController"},"sync"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MailboxesController"},"sync"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Mail\\Controller\\MailboxesController","sync",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"id":"1","_route":"mail.mailboxes.sync"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/mail/api/mailboxes/1/sync"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php","Line":298,"Previous":{"Exception":"Horde_Imap_Client_Exception","Message":"Could not open mailbox \"INBOX\".","Code":200,"Trace":[{"file":"/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Base.php","line":1051,"function":"_openMailbox","class":"Horde_Imap_Client_Socket","type":"->","args":[{"__class__":"Horde_Imap_Client_Mailbox"},1]},{"file":"/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Base.php","line":2232,"function":"openMailbox","class":"Horde_Imap_Client_Base","type":"->","args":[{"__class__":"Horde_Imap_Client_Mailbox"},1]},{"file":"/var/www/html/custom_apps/mail/lib/IMAP/MessageMapper.php","line":109,"function":"search","class":"Horde_Imap_Client_Base","type":"->","args":["INBOX",{"__class__":"Horde_Imap_Client_Search_Query"},{"results":[4,3,1],"_query":{"charset":null,"exts":[],"query":{"__class__":"Horde_Imap_Client_Data_Format_List"}}}]},{"file":"/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php","line":294,"function":"findAll","class":"OCA\\Mail\\IMAP\\MessageMapper","type":"->","args":[{"__class__":"Horde_Imap_Client_Socket","cacheFields":{"9":"HICenv","10":"HICflags","8":"HIChdrs","11":"HICdate","12":"HICsize","1":"HICstruct"},"changed":true,"statuscache":true},"INBOX",5000,0]},{"file":"/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php","line":226,"function":"runInitialSync","class":"OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},{"__class__":"OC\\AppFramework\\ScopedPsrLogger"}]},{"file":"/var/www/html/custom_apps/mail/lib/Service/Sync/SyncService.php","line":127,"function":"sync","class":"OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},{"__class__":"OC\\AppFramework\\ScopedPsrLogger"},42,[],true]},{"file":"/var/www/html/custom_apps/mail/lib/Controller/MailboxesController.php","line":161,"function":"syncMailbox","class":"OCA\\Mail\\Service\\Sync\\SyncService","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},42,[],false,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"sync","class":"OCA\\Mail\\Controller\\MailboxesController","type":"->","args":[1,[],true,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MailboxesController"},"sync"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MailboxesController"},"sync"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Mail\\Controller\\MailboxesController","sync",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"id":"1","_route":"mail.mailboxes.sync"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/mail/api/mailboxes/1/sync"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php","Line":1242},"CustomMessage":"Can not get messages from mailbox INBOX: Could not open mailbox \"INBOX\"."}} {"reqId":"f7YtOrzxDd2u70Bkqs1N","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"camerarawpreviews","method":"GET","url":"/apps/mail/api/messages?mailboxId=1&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"f7YtOrzxDd2u70Bkqs1N","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"serverDI","method":"GET","url":"/apps/mail/api/messages?mailboxId=1&limit=20","message":"The requested alias \"PreviewManager\" is deprecated. Please request \"OCP\\IPreview\" directly. This alias will be removed in a future Nextcloud version.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"f7YtOrzxDd2u70Bkqs1N","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"files_mindmap","method":"GET","url":"/apps/mail/api/messages?mailboxId=1&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"f7YtOrzxDd2u70Bkqs1N","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"maps","method":"GET","url":"/apps/mail/api/messages?mailboxId=1&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"f7YtOrzxDd2u70Bkqs1N","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"mail","method":"GET","url":"/apps/mail/api/messages?mailboxId=1&limit=20","message":"loading messages of folder <1>","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"camerarawpreviews","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"serverDI","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"The requested alias \"PreviewManager\" is deprecated. Please request \"OCP\\IPreview\" directly. This alias will be removed in a future Nextcloud version.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"files_mindmap","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"maps","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"mail","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"Locking mailbox 1 for new messages sync","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"mail","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"Locking mailbox 1 for changed messages sync","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"mail","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"Locking mailbox 1 for vanished messages sync","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"mail","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"Running initial sync for 1","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"mail","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"Unlocking mailbox 1 from vanished messages sync","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"mail","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"Unlocking mailbox 1 from changed messages sync","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":0,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"mail","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"Unlocking mailbox 1 from new messages sync","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2"} {"reqId":"BA6Bk9NyrxmsZ4SAjkr5","level":3,"time":"2022-04-07T11:05:36+00:00","remoteAddr":"221.231.218.18","user":"bluestar","app":"mail","method":"POST","url":"/apps/mail/api/mailboxes/1/sync","message":"Can not get messages from mailbox INBOX: Could not open mailbox \"INBOX\".","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36","version":"23.0.3.2","exception":{"Exception":"OCA\\Mail\\Exception\\ServiceException","Message":"Can not get messages from mailbox INBOX: Could not open mailbox \"INBOX\".","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php","line":226,"function":"runInitialSync","class":"OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},{"__class__":"OC\\AppFramework\\ScopedPsrLogger"}]},{"file":"/var/www/html/custom_apps/mail/lib/Service/Sync/SyncService.php","line":127,"function":"sync","class":"OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},{"__class__":"OC\\AppFramework\\ScopedPsrLogger"},42,[],true]},{"file":"/var/www/html/custom_apps/mail/lib/Controller/MailboxesController.php","line":161,"function":"syncMailbox","class":"OCA\\Mail\\Service\\Sync\\SyncService","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},42,[],false,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"sync","class":"OCA\\Mail\\Controller\\MailboxesController","type":"->","args":[1,[],true,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MailboxesController"},"sync"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MailboxesController"},"sync"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Mail\\Controller\\MailboxesController","sync",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"id":"1","_route":"mail.mailboxes.sync"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/mail/api/mailboxes/1/sync"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php","Line":298,"Previous":{"Exception":"Horde_Imap_Client_Exception","Message":"Could not open mailbox \"INBOX\".","Code":200,"Trace":[{"file":"/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Base.php","line":1051,"function":"_openMailbox","class":"Horde_Imap_Client_Socket","type":"->","args":[{"__class__":"Horde_Imap_Client_Mailbox"},1]},{"file":"/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Base.php","line":2232,"function":"openMailbox","class":"Horde_Imap_Client_Base","type":"->","args":[{"__class__":"Horde_Imap_Client_Mailbox"},1]},{"file":"/var/www/html/custom_apps/mail/lib/IMAP/MessageMapper.php","line":109,"function":"search","class":"Horde_Imap_Client_Base","type":"->","args":["INBOX",{"__class__":"Horde_Imap_Client_Search_Query"},{"results":[4,3,1],"_query":{"charset":null,"exts":[],"query":{"__class__":"Horde_Imap_Client_Data_Format_List"}}}]},{"file":"/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php","line":294,"function":"findAll","class":"OCA\\Mail\\IMAP\\MessageMapper","type":"->","args":[{"__class__":"Horde_Imap_Client_Socket","cacheFields":{"9":"HICenv","10":"HICflags","8":"HIChdrs","11":"HICdate","12":"HICsize","1":"HICstruct"},"changed":true,"statuscache":true},"INBOX",5000,0]},{"file":"/var/www/html/custom_apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php","line":226,"function":"runInitialSync","class":"OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},{"__class__":"OC\\AppFramework\\ScopedPsrLogger"}]},{"file":"/var/www/html/custom_apps/mail/lib/Service/Sync/SyncService.php","line":127,"function":"sync","class":"OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},{"__class__":"OC\\AppFramework\\ScopedPsrLogger"},42,[],true]},{"file":"/var/www/html/custom_apps/mail/lib/Controller/MailboxesController.php","line":161,"function":"syncMailbox","class":"OCA\\Mail\\Service\\Sync\\SyncService","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"__class__":"OCA\\Mail\\Db\\Mailbox","id":1},42,[],false,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"sync","class":"OCA\\Mail\\Controller\\MailboxesController","type":"->","args":[1,[],true,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MailboxesController"},"sync"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MailboxesController"},"sync"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Mail\\Controller\\MailboxesController","sync",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"id":"1","_route":"mail.mailboxes.sync"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/mail/api/mailboxes/1/sync"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php","Line":1242},"CustomMessage":"Can not get messages from mailbox INBOX: Could not open mailbox \"INBOX\"."}}
mariadb:
sudo -u www-data PHP_MEMORY_LIMIT=512M php occ mail:account:sync 1 -f
`[debug] Syncing 1 [debug] Locking mailbox 1 for new messages sync [debug] Locking mailbox 1 for changed messages sync [debug] Locking mailbox 1 for vanished messages sync [debug] Running initial sync for 1 [debug] Unlocking mailbox 1 from vanished messages sync [debug] Unlocking mailbox 1 from changed messages sync [debug] Unlocking mailbox 1 from new messages syncIn ImapToDbSynchronizer.php line 298:
Can not get messages from mailbox INBOX: Could not open mailbox "INBOX".
In Socket.php line 1242:
Could not open mailbox "INBOX".`
if use
sudo -u www-data php occ mail:account:sync 1 -f
displayFatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 438272 bytes) in /var/www/html/3rdparty/composer/autoload_real.php on line 37