Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Desktop > Error Reports

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-2010, 07:08 AM
Partner (VAR/HSP)
 
Posts: 186
Default zdesktop error report: mail.ALREADY_EXISTS

The Account with this error is on a Zimbra ZCS NEP 6.0.7 Server and in the Zimbra Webclient everything is working fine.

This message appears every minute or so and I have no Idea what the cause could be. So any help is appreciated. Thanks!

Code:
Product name:    Zimbra Desktop
Product version: 2.0
Build ID:        10580
Release type:    GA
OS Platform:     Mac OS X i386 10.6.4
Time of event:   2010-11-23 09:02:22
Error type:      mail.ALREADY_EXISTS
Item ID:         1073742689
Error summary:   message sync failed

Failure details - PLEASE REMOVE ANY SENSITIVE INFORMATION
----------------------------------------------------------------------------

com.zimbra.cs.mailbox.MailServiceException: object with that id already exists: 1073742690
ExceptionId:sync-mbox-xxxxxxx@xxxxxxxxx.net:1290499342881:04dd83da82189350
Code:mail.ALREADY_EXISTS ArgitemId, IID, "1073742690")
        at com.zimbra.cs.mailbox.MailServiceException.ALREADY_EXISTS(MailServiceException.java:391)
        at com.zimbra.cs.db.DbMailItem.create(DbMailItem.java:191)
        at com.zimbra.cs.mailbox.Conversation.create(Conversation.java:239)
        at com.zimbra.cs.mailbox.Mailbox.createConversation(Mailbox.java:4733)
        at com.zimbra.cs.mailbox.ZcsMailbox.setConversationId(ZcsMailbox.java:345)
        at com.zimbra.cs.mailbox.DeltaSync.syncMessage(DeltaSync.java:804)
        at com.zimbra.cs.mailbox.InitialSync.saveMessage(InitialSync.java:1272)
        at com.zimbra.cs.mailbox.InitialSync.syncMessagesAsTgz(InitialSync.java:1027)
        at com.zimbra.cs.mailbox.InitialSync.syncMessages(InitialSync.java:960)
        at com.zimbra.cs.mailbox.InitialSync.syncMessagelikeItems(InitialSync.java:441)
        at com.zimbra.cs.mailbox.DeltaSync.deltaSync(DeltaSync.java:247)
        at com.zimbra.cs.mailbox.DeltaSync.sync(DeltaSync.java:89)
        at com.zimbra.cs.mailbox.DeltaSync.sync(DeltaSync.java:73)
        at com.zimbra.cs.mailbox.MailboxSync.sync(MailboxSync.java:178)
        at com.zimbra.cs.mailbox.ZcsMailbox.sync(ZcsMailbox.java:119)
        at com.zimbra.cs.mailbox.ZcsMailbox.syncOnTimer(ZcsMailbox.java:100)
        at com.zimbra.cs.mailbox.SyncMailbox$1.run(SyncMailbox.java:262)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: java.sql.SQLException: [SQLITE_CONSTRAINT]  Abort due to constraint violation (column id is 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.executeUpdate(DebugPreparedStatement.java:173)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
        at com.zimbra.cs.db.DbMailItem.create(DbMailItem.java:179)
        ... 17 more
__________________
Best regards

Andreas Wolske

managedhosting.de GmbH

Zimbra Cloud Hosting, Consulting & Support
VMware vCloud Powered Serviceprovider
Reply With Quote
  #2 (permalink)  
Old 11-29-2010, 09:48 AM
Zimbra Employee
 
Posts: 98
Default

If you are willing to dig a bit you might be able to help us track this down. It looks like something in the database is not right.

You will need sqlite3; which you may already have in /usr/bin on Mac.

1. $cd ~/Library/Zimbra Desktop/sqlite
2. $sqlite3 zimbra.db
3. >select id,comment from mailbox; (note the id which matches your account)
4. >.exit
5. $sqlite3 mboxgroup<id from step 3>.db
6. >select id,subject,type,folder_id,parent_id from mail_item where id in (1073742689, 1073742690)
7. >pragma integrity_check

Please post the results from 6 & 7 here.
Reply With Quote
  #3 (permalink)  
Old 11-29-2010, 12:25 PM
Partner (VAR/HSP)
 
Posts: 186
Default

Quote:
Originally Posted by jflanigan View Post
Please post the results from 6 & 7 here.
I'll check this out asap and keep you posted.
Thank you very much for your assistance.
__________________
Best regards

Andreas Wolske

managedhosting.de GmbH

Zimbra Cloud Hosting, Consulting & Support
VMware vCloud Powered Serviceprovider
Reply With Quote
  #4 (permalink)  
Old 12-02-2010, 03:55 AM
Partner (VAR/HSP)
 
Posts: 186
Default

here's the output:

Code:
sqlite> select id,subject,type,folder_id,parent_id from mail_item where id in (1073743743);
1073743743|zdesktop error report (2010-12-01 09:26:39): mail.ALREADY_EXISTS|5|252|1073743744

sqlite> pragma integrity_check;
ok
__________________
Best regards

Andreas Wolske

managedhosting.de GmbH

Zimbra Cloud Hosting, Consulting & Support
VMware vCloud Powered Serviceprovider
Reply With Quote
  #5 (permalink)  
Old 12-02-2010, 06:59 AM
Zimbra Employee
 
Posts: 98
Default

Quote:
id in (1073743743)
This doesn't look like the ID from the original post. Did you have another occurrence which listed this ID? If so there should be a second ID in the error report which is also relevant, for example in the OP it was 1073742689 and 1073742690.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.