Help!!! Moving ZCS does not work!

Looking to migrate to ZCS? Ask here. Got a great tip or script that helped you migrate? Post it here.
Post Reply
ASebestian
Posts: 28
Joined: Sat Sep 13, 2014 12:01 am

Help!!! Moving ZCS does not work!

Post by ASebestian »

Hi!
I'm following the Wiki Post "Moving ZCS to New Server" exactly and get always at the last point an strange situation!
When I copied the zimbra.bak file to my new server and I entered the command "rsync -avrlHKpogDt /opt/zimbra.bak /opt/zimbra" it runs again for hours and creates an new directory under /opt/zimbra/ called zimbra.bak!
I did exactly the steps described and allways get the problem it restores it to a wrong directory!
What did I do wrong?
Please help. I allready did this step for 4times! It drives me crazy.
Thanks in advance
Alex
rchinn
Posts: 30
Joined: Fri Sep 12, 2014 11:14 pm

Help!!! Moving ZCS does not work!

Post by rchinn »

Try adding a trailing slash to both of your directory arguments to rsync:
rsync -avrlHKpogDt /opt/zimbra.bak/ /opt/zimbra/
Ron
uxbod
Ambassador
Ambassador
Posts: 7811
Joined: Fri Sep 12, 2014 10:21 pm

Help!!! Moving ZCS does not work!

Post by uxbod »

Did you remove /opt/zimbra on the new server first as specified in the Wiki ?
ASebestian
Posts: 28
Joined: Sat Sep 13, 2014 12:01 am

Help!!! Moving ZCS does not work!

Post by ASebestian »

yes i did remove the old zimbra dir.
i found out there are some error's.
what confuses me is rsync is not creating one file - it creates another directory called zimbra.bak!!!!
I'm relative new to linux os so i found this fact very late. (it tooks hours until i realized how to copy the whole directory to the new server).
why does it create a directory and not a file as described in the faq?
Please help - I want to migrate really fast because my old system will be returned to another customer.
thanks
alex
rchinn
Posts: 30
Joined: Fri Sep 12, 2014 11:14 pm

Help!!! Moving ZCS does not work!

Post by rchinn »

Did you try adding the slashes after the folder names? I tested that with a couple of test folders and it worked right with the trailing slashes, but without them it creates a subdirectory inside the target directory.
ASebestian
Posts: 28
Joined: Sat Sep 13, 2014 12:01 am

Help!!! Moving ZCS does not work!

Post by ASebestian »

Yes I did try it also with the /
Now I tried to "copy" the rsync files straight to the new server and I get some strange errors straight from beginning.
Here's a short dump of it:
x@sasamuc10:~$ rsync -avrlHKpogDt /opt/zimbra alex@10.0.1.110:/tmp/zcs/

alex@10.0.1.110's password:

building file list ... rsync: opendir "/opt/zimbra/data/amavisd/.spamassassin" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/deferred" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/private" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/hold" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/incoming" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/flush" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/maildrop" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/saved" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/public" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/bounce" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/active" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/defer" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/corrupt" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/data/postfix/spool/trace" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/jetty-6.1.5/webapps/service/zimlet" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/jetty-6.1.5/webapps/zimbraAdmin/tmp" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/jetty-6.1.5/work/service" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/jetty-6.1.5/work/zimbra/eb133304-1e22-41aa-9822-f345ea200dc7-incoming" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/jetty-6.1.5/work/zimbra/eb133304-1e22-41aa-9822-f345ea200dc7-deferred" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/jetty-6.1.5/work/zimbra/eb133304-1e22-41aa-9822-f345ea200dc7-hold" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/jetty-6.1.5/work/zimbraAdmin" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/jetty-6.1.5/work/resource-cache" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-22" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-30" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-26" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-13" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-03" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-24" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-02" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-21" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-29" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-15" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-11" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-18" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-01" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-19" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/pid" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-07" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-16" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-27" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-04" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-09" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-12" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-31" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-14" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-06" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-28" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-17" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-10" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-08" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-25" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-02-05" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-23" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/zmstat/2009-01-20" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/db/data" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/ssl/zimbra.20090113133700" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/ssl/zimbra" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/ssl/zimbra.20090113133655" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/store/incoming" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/store/0" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/dspam-3.8.0/var/dspam" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/.saveconfig" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/redolog/archive" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/logger/db/data" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/log/xmppAudit" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/index/0" failed: Permission denied (13)

rsync: opendir "/opt/zimbra/.ssh" failed: Permission denied (13)

Any idea?
ASebestian
Posts: 28
Joined: Sat Sep 13, 2014 12:01 am

Help!!! Moving ZCS does not work!

Post by ASebestian »

everything back!!!

I did run this command with the "normal" user and not with sudo!
Now it copies.... let's see if i can move it then on the new server from /tmp/zcs to /opt/zimbra
I will let you know!
Alex
ASebestian
Posts: 28
Joined: Sat Sep 13, 2014 12:01 am

Help!!! Moving ZCS does not work!

Post by ASebestian »

Hi!
The rsync did work now.

I did move the /tmp/zcs to /opt/zimbra and resatarted the server but i get now following error:
-su : /opt/zimbra/log/startup.log: Permission denied
I'm giving up for today (it's 2:05 am) and will try tomorrow again.
Post Reply