Hi everyone,

I'm migrating from courier imap (maildir) to zimbra, and facing a problem when using zmmailbox.

First step, create a mailbox:

zmprov ca xxxxxxx@xxxxxxxx.com.br "123456"

Now create a folder and importing messages:

/opt/zimbra/bin/zmmailbox -d -v -z -m xxxxxxx@xxxxxxxx.com.br

mbox xxxxxx@xxxxxxxx.com.br > createFolder "/Particular Saída"
..............
mbox xxxxxx@xxxxxxxx.com.br > addMessage "/Particular Saída" "/mnt/pl/xxxxxx/.Particular Sa&AO0-da/cru"

(It's "cru", I did rename the "cur" folder for testing)

Then it started the importing, but at some random point in the process zmmailbox stops with error:

ERROR: remote.TIMEOUT (https://zinco.xxxxxxxxxx.net:7071/service/admin/soap/) (cause: java.net.SocketTimeoutException Read timed out)

Anyone has some ideas about that?

Things I already did:

Restart zimbra;
Restart server;
Remove the message where the error happens (it changes to another one);
Importing over NFS;
Importing locally;
Start zmmailbox and entering commands manually;
Using a script ( /opt/zimbra/bin/zmmailbox -d -v -z -m xxxxxxx@xxxxxxxx.com.br < /tmp/tmp.txt );

The error happens with any mailbox, in random folders.
That way I can't build a reliable importing script for all my users and these folders, because in the end of importing, there are some folders partially imported.


(Full error message below (interesting parts)).

674 (/mnt/pl/xxxxxxxx/.Particular Sa&AO0-da/cru/314.txt)
========== SOAP SEND ==========
{
"Body": {
"AddMsgRequest": {
"m": {
"d": 1220969153000,
"noICal": false,
"aid": "d8009235-9594-492b-aa10-2d1fe32df97c:f76b38cb-1710-4e3a-a343-59ca1844a348",
"l": "257"
},
"_jsns": "urn:zimbraMail"
}
},
"Header": {
"context": {
"userAgent": {
"_content": "5.0.16_GA_2921.RHEL5_64",
"name": "zclient",
"version": "5.0.16_GA_2921.RHEL5_64"
},
"sessionId": {
"_content": "143",
"id": "143"
},
"authToken": [{
"_content": "0_851f11209a37ae89e4412aa5bf36792dbc7ea46e_69643d 33363a38616232666364332d616463392d343464632d383462 302d6636633863306239336561663b6578703d31333a313234 333334393736373032313b6169643d33363a65306661666438 392d313336302d313164392d383636312d3030306139356439 386566323b747970653d363a7a696d6272613b"
}],
"notify": [{
"seq": 404
}],
"_jsns": "urn:zimbra"
}
},
"_jsns": "urn:zimbraSoap"
}
===============================
ERROR: remote.TIMEOUT (https://zinco.xxxxxxxxxxxx.net:7071/service/admin/soap/) (cause: java.net.SocketTimeoutException Read timed out)
com.zimbra.common.service.RemoteServiceException: https://zinco.xxxxxxxxxxx.net:7071/service/admin/soap/
ExceptionId:main:1243263848559:d3f7ad0403a6ae67
Code:remote.TIMEOUT
at com.zimbra.common.service.RemoteServiceException.T IMEOUT(RemoteServiceException.java:49)
at com.zimbra.common.service.RemoteServiceException.d oConnectionFailures(RemoteServiceException.java:13 4)
at com.zimbra.cs.zclient.ZMailbox.invoke(ZMailbox.jav a:519)
at com.zimbra.cs.zclient.ZMailbox.invoke(ZMailbox.jav a:508)
at com.zimbra.cs.zclient.ZMailbox.addMessage(ZMailbox .java:2012)
at com.zimbra.cs.zclient.ZMailboxUtil.addMessage(ZMai lboxUtil.java:1652)
at com.zimbra.cs.zclient.ZMailboxUtil.doAddMessage(ZM ailboxUtil.java:1668)
at com.zimbra.cs.zclient.ZMailboxUtil.execute(ZMailbo xUtil.java:920)
at com.zimbra.cs.zclient.ZMailboxUtil.interactive(ZMa ilboxUtil.java:2398)
at com.zimbra.cs.zclient.ZMailboxUtil.main(ZMailboxUt il.java:2492)
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:782)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDat aRecord(SSLSocketImpl.java:739)
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:235)
at org.apache.commons.httpclient.HttpParser.readRawLi ne(HttpParser.java:77)
at org.apache.commons.httpclient.HttpParser.readLine( HttpParser.java:105)
at org.apache.commons.httpclient.HttpConnection.readL ine(HttpConnection.java:1115)
at org.apache.commons.httpclient.HttpMethodBase.readS tatusLine(HttpMethodBase.java:1832)
at org.apache.commons.httpclient.HttpMethodBase.readR esponse(HttpMethodBase.java:1590)
at org.apache.commons.httpclient.HttpMethodBase.execu te(HttpMethodBase.java:995)
at org.apache.commons.httpclient.HttpMethodDirector.e xecuteWithRetry(HttpMethodDirector.java:397)
at org.apache.commons.httpclient.HttpMethodDirector.e xecuteMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMe thod(HttpClient.java:324)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:258)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:226)
at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:315)
at com.zimbra.cs.zclient.ZMailbox.invoke(ZMailbox.jav a:514)
... 7 more