using zmmailbox export, getting "chunked stream ended unexpectedly"

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
bjquinn
Advanced member
Advanced member
Posts: 179
Joined: Fri Sep 12, 2014 10:00 pm

using zmmailbox export, getting "chunked stream ended unexpectedly"

Postby bjquinn » Fri Feb 18, 2011 2:25 pm

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".


bjquinn
Advanced member
Advanced member
Posts: 179
Joined: Fri Sep 12, 2014 10:00 pm

using zmmailbox export, getting "chunked stream ended unexpectedly"

Postby bjquinn » Mon Feb 21, 2011 7:59 pm

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_ERROR(ZClientException.java:45)

at com.zimbra.cs.zclient.ZMailbox.getRESTResource(ZMailbox.java:2386)

at com.zimbra.cs.zclient.ZMailboxUtil.doGetRestURL(ZMailboxUtil.java:2783)

at com.zimbra.cs.zclient.ZMailboxUtil.execute(ZMailboxUtil.java:1047)

at com.zimbra.cs.zclient.ZMailboxUtil.main(ZMailboxUtil.java:2675)

Caused by: java.io.IOException: chunked stream ended unexpectedly

at org.apache.commons.httpclient.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:252)

at org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputStream.java:221)

at org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:176)

at java.io.FilterInputStream.read(FilterInputStream.java:116)

at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108)

at com.zimbra.cs.zclient.GetMethodInputStream.read(GetMethodInputStream.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(ZMailbox.java:2384)

... 3 more
Marcet
Posts: 2
Joined: Fri Sep 12, 2014 11:27 pm

using zmmailbox export, getting "chunked stream ended unexpectedly"

Postby Marcet » Thu Feb 24, 2011 9:22 am

I've got the same issue. Any clue ?
belgarioz
Posts: 9
Joined: Fri Sep 12, 2014 10:18 pm

using zmmailbox export, getting "chunked stream ended unexpectedly"

Postby belgarioz » Mon May 02, 2011 9:13 am

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?
11125fvettore
Posts: 1
Joined: Sat Sep 13, 2014 2:00 am

using zmmailbox export, getting "chunked stream ended unexpectedly"

Postby 11125fvettore » Wed May 11, 2011 9:01 am

Try with //?fmt=zip .

This solved the problem for me on ZCS 7.1.0 even for very large accounts (30/40 GB)
belgarioz
Posts: 9
Joined: Fri Sep 12, 2014 10:18 pm

using zmmailbox export, getting "chunked stream ended unexpectedly"

Postby belgarioz » Thu May 12, 2011 2:14 am

It worked :)

thanks for the reply fvettore, it really helped :)
Kidoucorp
Posts: 40
Joined: Sat Sep 13, 2014 1:24 am

using zmmailbox export, getting "chunked stream ended unexpectedly"

Postby Kidoucorp » Fri May 27, 2011 3:30 am

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
7310pyperdown
Posts: 31
Joined: Fri Sep 12, 2014 10:02 pm

using zmmailbox export, getting "chunked stream ended unexpectedly"

Postby 7310pyperdown » Wed Jul 13, 2011 1:42 pm

Has anyone upgraded to 7.1.2? Does that resolve the issue? zip appears to be an option from cli only.
phoenix
Ambassador
Ambassador
Posts: 26614
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

using zmmailbox export, getting "chunked stream ended unexpectedly"

Postby phoenix » Wed Jul 13, 2011 2:19 pm

[quote user="7310pyperdown"]Has anyone upgraded to 7.1.2? Does that resolve the issue? [/QUOTE]It would be interesting if anyone has done that, ZCS 7.1.2 hasn't been released yet. ;)
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
sa73917
Posts: 1
Joined: Fri Sep 12, 2014 11:25 pm

using zmmailbox export, getting "chunked stream ended unexpectedly"

Postby sa73917 » Tue Sep 06, 2011 2:23 am

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.

Return to “Administrators”

Who is online

Users browsing this forum: Bing [Bot] and 15 guests