Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

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 02-18-2011, 12:25 PM
Special Member
 
Posts: 170
Default using zmmailbox export, getting "chunked stream ended unexpectedly"

With the new ZCS 7.0, I'm trying to use zmmailbox to export all the email accounts from my server. I'm going in a loop over the list of mailboxes returned from zmprov -l gaa and doing the following :

zmmailbox -z -m email@domain.com getRestURL "//?fmt=tgz" > email.tgz

Of the 135 or so accounts, all of them worked but three. The error I get on the three that didn't work is :

ERROR: zclient.IO_ERROR (Unable to get ?fmt=tgz) (cause: java.io.IOException chunked stream ended unexpectedly)

Two of the three accounts that didn't work are fairly large. One is 40GB and another is 27GB. The other one that failed was less than 5GB. We have many accounts with over 10GB that worked, including one that was 36GB that worked. I couldn't find anything on the forums about "chunked stream ended unexpectedly".
Reply With Quote
  #2 (permalink)  
Old 02-21-2011, 05:59 PM
Special Member
 
Posts: 170
Default

Running zmmailbox with the -v option results in the following message :

ERROR: zclient.IO_ERROR (Unable to get ?fmt=tgz) (cause: java.io.IOException chunked stream ended unexpectedly)
com.zimbra.common.zclient.ZClientException: Unable to get ?fmt=tgz
ExceptionId:main:1298339822222:0e134d50bb1a62c5
Code:zclient.IO_ERROR
at com.zimbra.common.zclient.ZClientException.IO_ERRO R(ZClientException.java:45)
at com.zimbra.cs.zclient.ZMailbox.getRESTResource(ZMa ilbox.java:2386)
at com.zimbra.cs.zclient.ZMailboxUtil.doGetRestURL(ZM ailboxUtil.java:2783)
at com.zimbra.cs.zclient.ZMailboxUtil.execute(ZMailbo xUtil.java:1047)
at com.zimbra.cs.zclient.ZMailboxUtil.main(ZMailboxUt il.java:2675)
Caused by: java.io.IOException: chunked stream ended unexpectedly
at org.apache.commons.httpclient.ChunkedInputStream.g etChunkSizeFromInputStream(ChunkedInputStream.java :252)
at org.apache.commons.httpclient.ChunkedInputStream.n extChunk(ChunkedInputStream.java:221)
at org.apache.commons.httpclient.ChunkedInputStream.r ead(ChunkedInputStream.java:176)
at java.io.FilterInputStream.read(FilterInputStream.j ava:116)
at org.apache.commons.httpclient.AutoCloseInputStream .read(AutoCloseInputStream.java:108)
at com.zimbra.cs.zclient.GetMethodInputStream.read(Ge tMethodInputStream.java:65)
at com.zimbra.common.util.ByteUtil.copy(ByteUtil.java :659)
at com.zimbra.common.util.ByteUtil.copy(ByteUtil.java :633)
at com.zimbra.cs.zclient.ZMailbox.getRESTResource(ZMa ilbox.java:2384)
... 3 more
Reply With Quote
  #3 (permalink)  
Old 02-24-2011, 07:22 AM
Starter Member
 
Posts: 2
Default

I've got the same issue. Any clue ?
Reply With Quote
  #4 (permalink)  
Old 05-02-2011, 07:13 AM
Junior Member
 
Posts: 9
Default

Same problem here.
It only happens on Zimbra 7.x .
Random accounts, during backup, get the "cause: java.io.IOException chunked stream ended unexpectedly)" error for some reason i can't debug

Anyone solved the issue?
Reply With Quote
  #5 (permalink)  
Old 05-11-2011, 07:01 AM
Starter Member
 
Posts: 1
Default

Try with //?fmt=zip .
This solved the problem for me on ZCS 7.1.0 even for very large accounts (30/40 GB)

Last edited by fvettore; 05-11-2011 at 07:08 AM..
Reply With Quote
  #6 (permalink)  
Old 05-12-2011, 12:14 AM
Junior Member
 
Posts: 9
Default

It worked
thanks for the reply fvettore, it really helped
Reply With Quote
  #7 (permalink)  
Old 05-27-2011, 01:30 AM
Active Member
 
Posts: 31
Default

Anyone tried restore from zip ?

It's messing-up the account, I have multiple Inbox, and not all is restored.

Tried again with tgz, and it's working well.

Here is a screenshot from zip and tgz :

ImageShack® - Online Photo and Video Hosting
Reply With Quote
  #8 (permalink)  
Old 07-13-2011, 11:42 AM
Member
 
Posts: 14
Default same issue here

Has anyone upgraded to 7.1.2? Does that resolve the issue? zip appears to be an option from cli only.
Reply With Quote
  #9 (permalink)  
Old 07-13-2011, 12:19 PM
Zimbra Consultant & Moderator
 
Posts: 20,314
Default

Quote:
Originally Posted by pyperdown View Post
Has anyone upgraded to 7.1.2? Does that resolve the issue?
It would be interesting if anyone has done that, ZCS 7.1.2 hasn't been released yet.
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 09-06-2011, 12:23 AM
Starter Member
 
Posts: 1
Default

Hi guys,
Just wondering if this query was ever resolved...?

I export two mailboxes from Release 7.1.2_GA_3268.UBUNTU10_64 UBUNTU10_64 FOSS edition every 2 hours as a simple way of keeping a reasonably current dump of the mailboxes (to supplement nightly backups).. The two mailboxes are very different in size, one being around 300mb in tgz format, the other 1.6gb.

My export script mails me with the status of the export each time it runs and retries twice per mailbox on error.

Sometimes I get two clean exports with no issues.
Sometimes one mailbox will export fine and the other will need 1-2 retries..
Sometimes both mailboxes will require 1-2 retries.

Can't point a finger at any particular combination of server load etc..

Is anyone else seeing this error?

Cheers,
Steve.
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.