Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: using zmmailbox export, getting "chunked stream ended unexpectedly"

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Posts
    175
    Rep Power
    9

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

  2. #2
    Join Date
    Nov 2005
    Posts
    175
    Rep Power
    9

    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

  3. #3
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    7

    Default

    I've got the same issue. Any clue ?

  4. #4
    Join Date
    Oct 2006
    Posts
    9
    Rep Power
    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?

  5. #5
    Join Date
    May 2011
    Posts
    1
    Rep Power
    4

    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.

  6. #6
    Join Date
    Oct 2006
    Posts
    9
    Rep Power
    9

    Default

    It worked
    thanks for the reply fvettore, it really helped

  7. #7
    Join Date
    Aug 2010
    Posts
    40
    Rep Power
    5

    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

  8. #8
    Join Date
    Dec 2011
    Posts
    6
    Rep Power
    3

    Default

    Quote Originally Posted by fvettore View Post
    Try with //?fmt=zip .
    This solved the problem for me on ZCS 7.1.0 even for very large accounts (30/40 GB)
    I use this version:
    Release 7.1.3_GA_3346.UBUNTU10_64 UBUNTU10_64 FOSS edition.

    and I tested tgz and zip but doesn't work for me.
    I running my export script and worked with the users of 99% but some account send this error message:

    ################################################## #####################

    zimbra@mail:/root$ /opt/zimbra/bin/zmmailbox -z -m test@test.com -v getRestURL "//?fmt=tgz" > /home/asd/test.tgz
    ERROR: zclient.IO_ERROR (Unable to get ?fmt=tgz) (cause: java.net.SocketTimeoutException Read timed out)
    com.zimbra.common.zclient.ZClientException: Unable to get ?fmt=tgz
    ExceptionId:main:1324317182756:6d7b4b057cc21c48
    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:2401)
    at com.zimbra.cs.zclient.ZMailboxUtil.doGetRestURL(ZM ailboxUtil.java:2787)
    at com.zimbra.cs.zclient.ZMailboxUtil.execute(ZMailbo xUtil.java:1051)
    at com.zimbra.cs.zclient.ZMailboxUtil.main(ZMailboxUt il.java:2679)
    Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream. java:129)
    at com.sun.net.ssl.internal.ssl.InputRecord.readFully (InputRecord.java:293)
    at com.sun.net.ssl.internal.ssl.InputRecord.read(Inpu tRecord.java:331)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRec ord(SSLSocketImpl.java:798)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDat aRecord(SSLSocketImpl.java:755)
    at com.sun.net.ssl.internal.ssl.AppInputStream.read(A ppInputStream.java:75)
    at java.io.BufferedInputStream.fill(BufferedInputStre am.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStre am.java:237)
    at org.apache.commons.httpclient.ChunkedInputStream.g etChunkSizeFromInputStream(ChunkedInputStream.java :249)
    at org.apache.commons.httpclient.ChunkedInputStream.n extChunk(ChunkedInputStream.java:220)
    at org.apache.commons.httpclient.ChunkedInputStream.r ead(ChunkedInputStream.java:175)
    at java.io.FilterInputStream.read(FilterInputStream.j ava:116)
    at org.apache.commons.httpclient.AutoCloseInputStream .read(AutoCloseInputStream.java:107)
    at com.zimbra.cs.zclient.GetMethodInputStream.read(Ge tMethodInputStream.java:65)
    at com.zimbra.common.util.ByteUtil.copy(ByteUtil.java :668)
    at com.zimbra.common.util.ByteUtil.copy(ByteUtil.java :642)
    at com.zimbra.cs.zclient.ZMailbox.getRESTResource(ZMa ilbox.java:2399)
    ... 3 more
    zimbra@mail:/root$

    ################################################## #####################

    I tried some idea, but none of them helped.
    If you have any ideas please share with me!
    Thank you.

  9. #9
    Join Date
    Jun 2010
    Location
    Nancy (France)
    Posts
    7
    Rep Power
    5

    Default

    I have the same problem as you had groop. Did you solve it ?

  10. #10
    Join Date
    Dec 2005
    Posts
    31
    Rep Power
    9

    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.

Similar Threads

  1. Replies: 20
    Last Post: 03-18-2008, 05:37 AM
  2. installation error during ldap setup
    By ljramos in forum Installation
    Replies: 23
    Last Post: 08-10-2007, 10:48 PM
  3. unable to restart zimbra after reboot
    By droefs in forum Administrators
    Replies: 28
    Last Post: 04-16-2006, 02:33 PM
  4. Replies: 16
    Last Post: 01-05-2006, 08:55 AM
  5. After Succesfull Install, Cannot Start mta
    By bsimzer in forum Installation
    Replies: 26
    Last Post: 12-16-2005, 04:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •