[SOLVED] sync failure

If Zimbra Desktop had a sync failure, it may have told you to post your error in this section.
Post Reply
eombah
Advanced member
Advanced member
Posts: 87
Joined: Fri Sep 12, 2014 10:19 pm

[SOLVED] sync failure

Post by eombah »

Hi,
Almost finished syncing a large Zimbra account (completed 3.4 GB of 3.6 GB), a sync error occurs.

I don't get an error report so I turned on DEBUG mode.

mailbox.log now says:


2008-09-20 11:26:53,253 DEBUG [btpool0-0] [name=bart@abc.com;aname=local@host.local;mid=3;ip=127.0.0.1;ua=ZimbraWebClient - PRISM (Linux)/0.0;] request - GET https://webmail.abc.com/home/~/?fmt=tgz ... 4607,34606

2008-09-20 11:26:53,422 ERROR [btpool0-0] [name=bart@abc.com;aname=local@host.local;mid=3;ip=127.0.0.1;ua=ZimbraWebClient - PRISM (Linux)/0.0;] offline - sync failure: bart@abc.com

com.zimbra.common.service.ServiceException: system failure: InitialSync.syncMessagesAsTgz

ExceptionId:btpool0-0:1221906413421:4c705020b968722b

Code:service.FAILURE

at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:253)

at com.zimbra.cs.mailbox.SyncExceptionHandler.checkRecoverableException(SyncExceptionHandler.java:38)

at com.zimbra.cs.mailbox.InitialSync.syncMessagesAsTgz(InitialSync.java:882)

at com.zimbra.cs.mailbox.InitialSync.syncMessages(InitialSync.java:840)

at com.zimbra.cs.mailbox.InitialSync.syncMessagelikeItems(InitialSync.java:423)

at com.zimbra.cs.mailbox.InitialSync.initialFolderSync(InitialSync.java:313)

at com.zimbra.cs.mailbox.InitialSync.prioritySync(InitialSync.java:387)

at com.zimbra.cs.mailbox.InitialSync.initialFolderSync(InitialSync.java:372)

at com.zimbra.cs.mailbox.InitialSync.initialFolderSync(InitialSync.java:377)

at com.zimbra.cs.mailbox.InitialSync.resume(InitialSync.java:188)

at com.zimbra.cs.mailbox.InitialSync.resume(InitialSync.java:174)

at com.zimbra.cs.mailbox.MailboxSync.sync(MailboxSync.java:192)

at com.zimbra.cs.mailbox.OfflineMailbox.sync(OfflineMailbox.java:115)

at com.zimbra.cs.service.offline.OfflineSync.handle(OfflineSync.java:44)

at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:411)

at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:268)

at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:160)

at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:266)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:188)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)

at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)

at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)

at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:716)

at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:406)

at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)

at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

at org.mortbay.jetty.handler.RewriteHandler.handle(RewriteHandler.java:176)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

at org.mortbay.jetty.Server.handle(Server.java:313)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)

at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)

at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)

at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)

at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

Caused by: com.zimbra.common.service.ServiceException: system failure: Unable to read/write message id=34722

ExceptionId:btpool0-0:1221906413421:4c705020b968722b

Code:service.FAILURE

at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:253)

at com.zimbra.cs.mailbox.InitialSync.saveMessage(InitialSync.java:1014)

at com.zimbra.cs.mailbox.InitialSync.syncMessagesAsTgz(InitialSync.java:879)

... 37 more

Caused by: java.io.IOException: unexpected EOF with 1 bytes unread

at com.zimbra.common.util.tar.TarInputStream.read(TarInputStream.java:353)

at com.zimbra.common.util.tar.TarInputStream.read(TarInputStream.java:298)

at com.zimbra.common.util.ByteUtil.readInput(ByteUtil.java:614)

at com.zimbra.cs.mailbox.InitialSync.saveMessage(InitialSync.java:1003)

... 38 more

I had exactly the same promblem with this account on another zdesktop machine.

I only have it with this account.

I'm running zdesktop_0_90_build_1278_linux_i686.sh
-Bart
eombah
Advanced member
Advanced member
Posts: 87
Joined: Fri Sep 12, 2014 10:19 pm

[SOLVED] sync failure

Post by eombah »

I investigated some more.
In firefox I navigate to
this">https://webmail.abc.com/home/~/?fmt=tgz&list=34722
this returns a tgz file. Opening it in File Roller fails.

Command line output is:
tar: Unexpected EOF in archive

tar: Error is not recoverable: exiting now


Fetching the next message, 34723, opens fine in File Roller.

So it looks as if there's something wrong with message 34722.
I viewed message 34722 using more, there were strange characters in it and an attachment named winmail.dat.
I couldn't delete the message using the Zimbra Advanced Client so I deleted it with Thunderbird, this worked.
I killed the server part of zdesktop and restarted, after that it started to sync again, up until the message 35885. I couldn't delete this one from the Zmmbra Advanced Client nor using Thunderbird so I deleted it "hard" from the mail server's file system. Then restarted zdesktop and it's syncing again. Guess I'll have to reindex my mailbox.
So in my case, syncing stopped working due to corrupted messages. I don't know how they got corrupted, I guess in one of the two migrations from Cyrus IMAP to zimbra that I have performed over the last two years.
So for me this is SOLVED, I'll mark it as such.
-Bart
jjzhuang
Elite member
Elite member
Posts: 1687
Joined: Fri Sep 12, 2014 10:24 pm

[SOLVED] sync failure

Post by jjzhuang »

You probably ran into this issue:
Access Denied
eombah
Advanced member
Advanced member
Posts: 87
Joined: Fri Sep 12, 2014 10:19 pm

[SOLVED] sync failure

Post by eombah »

I get:
You are not authorized to access bug #31519.
jjzhuang
Elite member
Elite member
Posts: 1687
Joined: Fri Sep 12, 2014 10:24 pm

[SOLVED] sync failure

Post by jjzhuang »

my bad. i referenced a zimbra internal bug. sorry.
Post Reply