Failure communicating with remote server. Please try again later.

Debug message: [SQLITE_CONSTRAINT] Abort due to constraint violation (columns data_source_id, remote_id are not unique)

Exception:

com.zimbra.common.service.ServiceException: system failure: Folder sync failed
ExceptionId:sync-mbox-passmore.david@gmail.com:1288378732179:946e42b21a0 26c14
Code:service.FAILURE
at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:248)
at com.zimbra.cs.datasource.imap.ImapSync.importData( ImapSync.java:138)
at com.zimbra.cs.datasource.imap.ImapSync.importData( ImapSync.java:115)
at com.zimbra.cs.offline.OfflineImport.importData(Off lineImport.java:94)
at com.zimbra.cs.offline.GMailImport.importData(GMail Import.java:53)
at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:254)
at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:219)
at com.zimbra.cs.mailbox.DataSourceMailbox.syncAllLoc alDataSources(DataSourceMailbox.java:435)
at com.zimbra.cs.mailbox.DataSourceMailbox.sync(DataS ourceMailbox.java:465)
at com.zimbra.cs.mailbox.DataSourceMailbox.syncOnTime r(DataSourceMailbox.java:401)
at com.zimbra.cs.mailbox.SyncMailbox$1.run(SyncMailbo x.java:262)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: com.zimbra.common.service.ServiceException: system failure: Synchronization of folder '/Inbox' failed
ExceptionId:sync-mbox-passmore.david@gmail.com:1288378732179:946e42b21a0 26c14
Code:service.FAILURE
at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:248)
at com.zimbra.cs.datasource.imap.ImapSync.syncFailed( ImapSync.java:338)
at com.zimbra.cs.datasource.imap.ImapSync.syncMessage s(ImapSync.java:279)
at com.zimbra.cs.datasource.imap.ImapSync.syncFolders (ImapSync.java:210)
at com.zimbra.cs.datasource.imap.ImapSync.importData( ImapSync.java:133)
... 11 more
Caused by: com.zimbra.common.service.ServiceException: system failure: Unable to add mapping for dataSource passmore.david
ExceptionId:sync-mbox-passmore.david@gmail.com:1288378732177:946e42b21a0 26c14
Code:service.FAILURE
at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:248)
at com.zimbra.cs.db.DbDataSource.addMapping(DbDataSou rce.java:109)
at com.zimbra.cs.datasource.DataSourceMapping.add(Dat aSourceMapping.java:91)
at com.zimbra.cs.datasource.imap.ImapFolderSync.moveM essage(ImapFolderSync.java:1031)
at com.zimbra.cs.datasource.imap.ImapFolderSync.moveM essages(ImapFolderSync.java:968)
at com.zimbra.cs.datasource.imap.ImapFolderSync.syncM essages(ImapFolderSync.java:276)
at com.zimbra.cs.datasource.imap.ImapSync.syncMessage s(ImapSync.java:276)
... 13 more
Caused by: java.sql.SQLException: [SQLITE_CONSTRAINT] Abort due to constraint violation (columns data_source_id, remote_id are not unique)
at org.sqlite.DB.newSQLException(DB.java:374)
at org.sqlite.DB.newSQLException(DB.java:378)
at org.sqlite.DB.execute(DB.java:333)
at org.sqlite.DB.executeUpdate(DB.java:354)
at org.sqlite.PrepStmt.executeUpdate(PrepStmt.java:91 )
at com.zimbra.cs.db.DebugPreparedStatement.executeUpd ate(DebugPreparedStatement.java:173)
at org.apache.commons.dbcp.DelegatingPreparedStatemen t.executeUpdate(DelegatingPreparedStatement.java:1 02)
at com.zimbra.cs.db.DbDataSource.addMapping(DbDataSou rce.java:101)
... 18 more