Page 1 of 1

Zmmailbox zclient.IO_ERROR (Read timed out)

Posted: Sat Aug 10, 2019 12:39 am
by intercenter
After install the ZCS 8.8.15 on Ubuntu 16.04 LTS, we are trying to restore accounts backup using zmmailbox as ever:

sudo -u zimbra /opt/zimbra/bin/zmmailbox -z -m -t 0 account@domain postRestURL "//?fmt=tgz&resolve=skip" /backup/domain/backupfile.tgz

we always get this error:

ERROR: zclient.IO_ERROR (Read timed out) (cause: java.net.SocketTimeoutException Read timed out)

Anybody knows how to use zmmailbox to recovery mailboxes? Any Changes on 8.8.15

Re: Zmmailbox zclient.IO_ERROR (Read timed out)

Posted: Mon Aug 12, 2019 7:28 am
by pup_seba
Hi,

I've actually never used that way of importing users. Is using Zextras to migrate an option for you? It would make things easier.

Also, that timeout is only for the import process? I mean, can you "zmmailbox -z -m admin@domain gaf" for example? This should work (as long as you have an "admin" user).

Regards,

Re: Zmmailbox zclient.IO_ERROR (Read timed out)

Posted: Mon Aug 12, 2019 5:15 pm
by intercenter
Thanks for the answer,

However we did not find a version of Zextras Migration Tool for this version of zimbra. We have always used the Zmmailbox command to export and import accounts in previous zimbra versions as well, including as a backup tool. Do you know what happens in 8.8.15??

Thanks and Regards

Re: Zmmailbox zclient.IO_ERROR (Read timed out)

Posted: Mon Aug 12, 2019 6:09 pm
by phoenix
intercenter wrote:However we did not find a version of Zextras Migration Tool for this version of zimbra. We have always used the Zmmailbox command to export and import accounts in previous zimbra versions as well, including as a backup tool. Do you know what happens in 8.8.15??
You haven't mentioned which version of ZCS is used for the current server from which you're moving. The ZeXtras migration tool goes on the source server not the destination server.

Re: Zmmailbox zclient.IO_ERROR (Read timed out)

Posted: Tue Aug 13, 2019 12:02 am
by intercenter
phoenix wrote:
intercenter wrote:However we did not find a version of Zextras Migration Tool for this version of zimbra. We have always used the Zmmailbox command to export and import accounts in previous zimbra versions as well, including as a backup tool. Do you know what happens in 8.8.15??
You haven't mentioned which version of ZCS is used for the current server from which you're moving. The ZeXtras migration tool goes on the source server not the destination server.


Bill the old server is off, i only have the tar.gz files exported by zmmailbox command.

Regards

Re: Zmmailbox zclient.IO_ERROR (Read timed out)

Posted: Sun Sep 22, 2019 3:09 pm
by zrustam80
Hi everybody!!! I also have a similar problem on this version. Who knows what could be the problem?
install the ZCS 8.8.15 on CentOS 7 x 64 RAM 16 GB HDD 4Tb

Re: Zmmailbox zclient.IO_ERROR (Read timed out)

Posted: Mon Sep 23, 2019 3:29 pm
by zrustam80
intercenter wrote:
phoenix wrote:
intercenter wrote:However we did not find a version of Zextras Migration Tool for this version of zimbra. We have always used the Zmmailbox command to export and import accounts in previous zimbra versions as well, including as a backup tool. Do you know what happens in 8.8.15??
You haven't mentioned which version of ZCS is used for the current server from which you're moving. The ZeXtras migration tool goes on the source server not the destination server.


Bill the old server is off, i only have the tar.gz files exported by zmmailbox command.

Regards



Could this be related to the settings for the volume of downloading letters?

Re: Zmmailbox zclient.IO_ERROR (Read timed out)

Posted: Tue Sep 24, 2019 10:34 am
by zrustam80
intercenter wrote:After install the ZCS 8.8.15 on Ubuntu 16.04 LTS, we are trying to restore accounts backup using zmmailbox as ever:

sudo -u zimbra /opt/zimbra/bin/zmmailbox -z -m -t 0 account@domain postRestURL "//?fmt=tgz&resolve=skip" /backup/domain/backupfile.tgz

we always get this error:

ERROR: zclient.IO_ERROR (Read timed out) (cause: java.net.SocketTimeoutException Read timed out)

Anybody knows how to use zmmailbox to recovery mailboxes? Any Changes on 8.8.15


In general, I found a solution like this. And it helped me move the big boxes.
https://wiki.zimbra.com/wiki/Guide_to_imapsync

An example in my experience. Zimbra to zimbra. We install "yum install imapsync -y" the utility on the server from where we transfer mail and run the command as root

Code: Select all

imapsync --nofoldersizes --skipsize --fast --nosyncacls --syncinternaldates --host1 192.168.0.1 --user1 "mailuser@domain.com" --authuser1 "admin" --password1 "XXXXXXXXX" --ssl1 --host2 192.168.0.2 --user2 "mailuser@domain.com"  --authuser2 "admin" --password2 "YYYYYYYYY" --ssl2


And it works !!!

Code: Select all

zmprov -l gaa | tee -a users.txt


and lite script

Code: Select all

#!/bin/bash
host1=192.168.0.1    # host1 is Source
host2=192.168.0.2    # host2 is Dest
admin1=admin
admin2=admin
admpass1=XXXXXXX
admpass2=YYYYYYY


for user in `cat users.txt`; do
echo "Exporting mailbox $user" ;
imapsync --nofoldersizes --skipsize --fast --nosyncacls --syncinternaldates \
--host1 $host1 --user1 "$user" --authuser1 "$admin1" --password1 "$admpass1" --ssl1 \
--host2 $host2 --user2 "$user" --authuser2 "$admin2" --password2 "$admpass2" --ssl2 ;
done;


Homepage: http://imapsync.lamiral.info/