zmrestoreoffline seems to run forever without any output

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
heiko.robert
Posts: 5
Joined: Wed Aug 31, 2022 2:54 pm

zmrestoreoffline seems to run forever without any output

Post by heiko.robert »

Unfortunately we have been affected by the "Authentication Bypass in MailboxImportServlet vulnerability".

Now I set up a new box, installed zcs-NETWORK-8.8.15_GA_3869.UBUNTU18_64.20190918004220 and followed https://wiki.zimbra.com/wiki/Network_Ed ... r_Recovery

When doing a

Code: Select all

zmrestoreoffline -t $ZM_BACKUP --systemData --account all --continueOnError -rf --label "$BACKUP_LABEL"
the command now runs since hours but seem to do nothing.

in the process list I see

Code: Select all

/opt/zimbra/common/lib/jvm/java/bin/java -Xms1996m -Xmx1996m -server -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -Djdk.tls.client.protocols=TLSv1,TLSv1.1,TLSv1.2 -Djava.awt.headless=true -Dsun.net.inetaddr.ttl=60 -Dorg.apache.jasper.compiler.disablejsr199=true -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=1 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=15 -XX:G1MaxNewSizePercent=45 -XX:-OmitStackTraceInFastThrow -Xlog:gc*=info,safepoint=info:file=/opt/zimbra/log/gc.log:time:filecount=20,filesize=10m -Djava.security.egd=file:/dev/./urandom --add-opens java.base/java.lang=ALL-UNNAMED -Djava.net.preferIPv4Stack=true -Dzimbra.config=/opt/zimbra/conf/localconfig.xml -Djava.library.path=/opt/zimbra/lib -classpath /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/lib/ext:/opt/zimbra/mailboxd/lib/*:/opt/zimbra/mailboxd/common/lib/*:/opt/zimbra/lib/jars/*:/opt/zimbra/lib/ext-common/*:/opt/zimbra/lib/ext/zimbra-license/*:/opt/zimbra/lib/ext/clamscanner/*:/opt/zimbra/lib/ext/zimbra-archive/*:/opt/zimbra/lib/ext/zimbra-freebusy/*:/opt/zimbra/lib/ext/zm-gql/*:/opt/zimbra/lib/ext/twofactorauth/*:/opt/zimbra/lib/ext/network-modules-ng/*:/opt/zimbra/lib/ext/zimbraadminversioncheck/*:/opt/zimbra/lib/ext/mitel/*:/opt/zimbra/lib/ext/voice/*:/opt/zimbra/lib/ext/backup/*:/opt/zimbra/lib/ext/com_zimbra_ssdb_ephemeral_store/*:/opt/zimbra/lib/ext/com_zimbra_clientuploader/*:/opt/zimbra/lib/ext/smime/*:/opt/zimbra/lib/ext/zimbraews/*:/opt/zimbra/lib/ext/zm-oauth-social/*:/opt/zimbra/lib/ext/openidconsumer/*:/opt/zimbra/lib/ext/zimbraldaputils/*:/opt/zimbra/lib/ext/network/*:/opt/zimbra/lib/ext/convertd/*:/opt/zimbra/lib/ext/com_zimbra_cert_manager/*:/opt/zimbra/lib/ext/cisco/*:/opt/zimbra/lib/ext/zimbrahsm/*:/opt/zimbra/lib/ext/zimbradrive/*:/opt/zimbra/lib/ext/com_zimbra_oo/*:/opt/zimbra/lib/ext/com_zimbra_xmbxsearch/*:/opt/zimbra/lib/ext/nginx-lookup/*:/opt/zimbra/lib/ext/com_zimbra_bulkprovision/*:/opt/zimbra/lib/ext/zimbrasync/*:/opt/zimbra/jetty/common/lib/*:/opt/zimbra/jetty/webapps/service/WEB-INF/lib/* com.zimbra.cs.backup.RestoreOfflineUtil -t /mnt/backup --systemData --account all --continueOnError -rf --label
and blocks a CPU core with nearly 100% but nothing happens. No I/O and no traffic. It seams the process is waiting for something.

MySQL, LDAP, zmconvertctl are running.

in the zimbra.log I only see repeatingly:

Code: Select all

Aug 31 17:10:07 ssl zmmailboxdmgr[31785]: no manager process is running
Aug 31 17:10:08 ssl zmmailboxdmgr[31863]: file /opt/zimbra/log/zmmailboxd_manager.pid does not exist
Aug 31 17:10:08 ssl zmmailboxdmgr[31863]: assuming no other instance is running
Aug 31 17:10:08 ssl zmmailboxdmgr[31863]: file /opt/zimbra/log/zmmailboxd.pid does not exist
Aug 31 17:10:08 ssl zmmailboxdmgr[31863]: assuming no other instance is running
Aug 31 17:10:08 ssl zmmailboxdmgr[31863]: no manager process is running
Aug 31 17:10:08 ssl zmmailboxdmgr[31880]: file /opt/zimbra/log/zmmailboxd_manager.pid does not exist
Aug 31 17:10:08 ssl zmmailboxdmgr[31880]: assuming no other instance is running
Has anyone an idea or is that command really that slow? The full backup I want to restore is ~ 25 GB and contains 108 accounts.
The backup itself just takes ~20 mins

Thanks
Heiko
heiko.robert
Posts: 5
Joined: Wed Aug 31, 2022 2:54 pm

Solved: zmrestoreoffline seems to run forever without any output

Post by heiko.robert »

zmrestoreoffline seems to be broken and support told me that the tool is no longer supported (!?).

The more or less manual backup/restore worked as descibed as "3) Using Rsync migration" in https://wiki.zimbra.com/wiki/Steps_To_R ... ZCS_Server
Post Reply