Mail: Sync failed

Created on 15 Apr 2020  路  16Comments  路  Source: nextcloud/mail

Expected behavior

Sync with iCloud acct

Actual behavior

Sync failed

Mail app

Mail app version: (see apps admin page, e.g. 0.5.3)
1.3.0

Mailserver or service: (e.g. Outlook, Yahoo, Gmail, Exchange,...)
iCloud

Server configuration

Operating system: (e.g. Debian 8)
Ubuntu 18.04

Web server: (e.g. Apache, Nginx,...)
Apache

Database: (e.g. MariaDB, SQLite or PostgreSQL)
MadiaDB

PHP version: (e.g. 7.0)
7.2..24

Nextcloud Version: (see admin page, e.g. 13.0.2)
18.0.3

Client configuration

Browser: (e.g. Firefox 48)
Several tested, mainly Brave

Operating system: (e.g. Arch Linux)
macOS 10.15.4

[mail] Error: OCA\Mail\Exception\ServiceException: Sync failed: at <>

  1. /var/www/nextcloud/apps/mail/lib/Service/Sync/SyncService.php line 107
    OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 267}, 42, [], true)
  2. /var/www/nextcloud/apps/mail/lib/Controller/FoldersController.php line 131
    OCA\Mail\Service\Sync\SyncService->syncMailbox(OCA\Mail\Account {}, "INBOX", 42, [], false, null)
  3. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
    OCA\Mail\Controller\FoldersController->sync(12, "SU5CT1g=", [], true, null)
  4. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Mail\Controller\FoldersController {}, "sync")
  5. /var/www/nextcloud/lib/private/AppFramework/App.php line 125
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Controller\FoldersController {}, "sync")
  6. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\Mail\Cont ... r", "sync", OC\AppFramework\ ... {}, {accountId: "12" ... "})
  7. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({accountId: "12" ... "})
  8. /var/www/nextcloud/lib/private/Route/Router.php line 299
    call_user_func(OC\AppFramework\ ... {}, {accountId: "12" ... "})
  9. /var/www/nextcloud/lib/base.php line 1008
    OC\Route\Router->match("/apps/mail/api/ ... c")
  10. /var/www/nextcloud/index.php line 38
    OC::handleRequest()

POST /index.php/apps/mail/api/accounts/12/folders/SU5CT1g%3D/sync
from 46.90.225.233 by mp at 2020-04-15T10:57:45+00:00

3. to review bug high

All 16 comments

please check nextcloud.log for the full log message and trace

Yesterday I upgraded the Mail app. I found a thread regarding the body height in the reading pane, what is fine now. :) With the previous (stable / released) version the iCloud account worked. I looked into the nextcloud.log, but unfortunately that doesn't help. There is a 2nd account connected to Microsoft365 and all is well. Tested another IMAP-Account, no problem at all. The nextcloud.log contains no further information other than above. I'm sorry - I would really like to be more specific and spent already a few hours with locating the problem. Do you have any other ideas?

The Nextcloud mail app offers an extensive logging system to make it easier identifying and tracking down bugs. Please enable debug mode and set the log level to debug in your admin settings. Then, try to reproduce your issue and take another look at data/nextcloud.log and data/horde_imap.log.

Mail app version: (see apps admin page, e.g. 0.5.3)
1.3.0

That is the RC, I guess?

Mail app version: (see apps admin page, e.g. 0.5.3)
1.3.0

That is the RC, I guess?

Yes, sir.

How can I revert it to the released version? :/

Restore your backup.

If you're interested in actually helping getting the problem fixed, please provide the logs with the instructions given. Otherwise there is nothing we can help with until someone else runs into this and provides the details. There are simply too many possible ways this could fail.

Thanks for the follow-up, Christoph. I'll try to do so in the evening. Gave it a first shot, but with no helpful results for now. I understand there is no way back without a backup. So it's completely my fault, as I don't have one yet. We are still evaluating Nextcloud and not really in production, although it would be a relatively big effort to start from scratch now. As I said - I messed it up and don't want to blame it on your app. Thank you for your time. Best, Markus

Once there is more info we can check if this is the same as https://github.com/nextcloud/mail/issues/2909.

I'm not in iCloud, but after updating to Ver.1.3, I'm getting the following errors frequently.

[mail] Error: OCA\Mail\Exception\ServiceException: Sync failed: Can not get messages from mailbox INBOX/FLAGGED: Could not open mailbox "INBOX/FLAGGED". at <<closure>>

0. /NEXTCLOUD/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php line 106
   OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 67}, 42, null, false)
1. /NEXTCLOUD/apps/mail/lib/BackgroundJob/SyncJob.php line 76
   OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount(OCA\Mail\Account {})
2. /NEXTCLOUD/lib/public/BackgroundJob/Job.php line 79
   OCA\Mail\BackgroundJob\SyncJob->run({accountId: 28})
3. /NEXTCLOUD/lib/public/BackgroundJob/TimedJob.php line 61
   OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
4. /NEXTCLOUD/cron.php line 125
   OCP\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})


[mail] Error: OCA\Mail\Exception\ServiceException: Sync failed:  at <<closure>>

0. /NEXTCLOUD/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php line 106
OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 9}, 42, null, false)
1. /NEXTCLOUD/apps/mail/lib/BackgroundJob/SyncJob.php line 76
OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount(OCA\Mail\Account {})
2. /NEXTCLOUD/lib/public/BackgroundJob/Job.php line 79
OCA\Mail\BackgroundJob\SyncJob->run({accountId: 37})
3. /NEXTCLOUD/lib/public/BackgroundJob/TimedJob.php line 61
OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
4. /NEXTCLOUD/cron.php line 125
OCP\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

@Bables55 please open a new ticket. I can see why that fails for you but we'll have to debug why that old flagged inbox is still there. This should have vanished after the update.

@Bables55 see https://github.com/nextcloud/mail/issues/2913. Someone else ran into the same error :v:

v1.3.1 was just released. Please update :v:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChristophWurst picture ChristophWurst  路  3Comments

StCyr picture StCyr  路  4Comments

CHazz picture CHazz  路  3Comments

clem-bcc picture clem-bcc  路  4Comments

g6094199 picture g6094199  路  3Comments