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

Thread: [SOLVED] Moving ZCS to new server - fails

  1. #1
    scarrington is offline Member
    Join Date
    Jun 2008
    Posts
    10
    Rep Power
    7

    Default [SOLVED] Moving ZCS to new server - fails

    I am trying to setup a new server with Ubuntu 6.06 LTS with ZCS Network Edition. My current server is running out of storage space so a move is needed. Both are running the exact same version of Ubuntu as well as the same ZCS and license files. ZCS on the new server appears to be functioning with an admin account and I can login using the admin web interface.
    I am trying to use Moving ZCS to New Server - Zimbra :: Wiki to help me out, but one of the first lines is giving me errors. I first move the full backup and incremental backup to the new server. I then run zmrestoreldap -lb full-20080628XXXXXXX and I get the following error: Stopping ldap...Can't exec "ldap": No such file or directory at /opt/zimbra/bin/./zmrestoreldap line 133.
    ERROR: failed to stop ldap.

    Any ideas? Thanks!

  2. #2
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,262
    Rep Power
    10

    Default

    Sounds like the "/opt/zimbra/bin/ldap" script is not in your path, or doesn't exist.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  3. #3
    scarrington is offline Member
    Join Date
    Jun 2008
    Posts
    10
    Rep Power
    7

    Default LDAP script is there

    I just check for an LDAP script in /opt/zimbra/bin. It is there. I am at a total loss.
    Steve Carrington

  4. #4
    scarrington is offline Member
    Join Date
    Jun 2008
    Posts
    10
    Rep Power
    7

    Default

    Would it have anything to do with the way I run the zmrestoreldap command? I do sudo -u zimbra /opt/zimbra/bin/zmrestoreladp -lb full2008...........
    Steve Carrington

  5. #5
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    I would sudo to a full shell and the execute the command. I would also check that the zimbra user has the same UID and GID as per the original installation. It would not harm aswell to run /opt/zimbra/libexec/zmfixperms -extended as root.

  6. #6
    scarrington is offline Member
    Join Date
    Jun 2008
    Posts
    10
    Rep Power
    7

    Default

    I have tried both of these and I get the same errors. I am going to wipe the new system and start all over again and see if it helps out. The zimbra uid and gid were different, but changing them did not seem to help. Hopefully I will soon post again that all is well. What exactly is the error I am getting talking about? - Can't exec "ldap": No such file or directory at /opt/zimbra/bin/./zmrestoreldap line 133 - I looked at line 133 in zmrestoreldap and I see nothing out of the ordinary. Line 133 is my $rc = 0xffff & system("ldap stop"). It would appear that the problem is stopping ldap. I have manually stopped ldap, and verified it is not running, and I get the the same error message.
    Steve Carrington

  7. #7
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Try this:
    Moving ZCS to Another Server » Zimbra :: Blog

    I wrote that, and it's much easier, trust me

  8. #8
    scarrington is offline Member
    Join Date
    Jun 2008
    Posts
    10
    Rep Power
    7

    Default

    I thought that this was fine for open-source versions, but with the network edition, I assumed that I should use the network edition backup/restore procedure. If the backup and restore method is not working correctly, it makes me wonder how good my backups are worth. Also, the open-source version makes me take the mail server offline for a MUCH longer time. If I cannot get it to work with a backup/restore, I will go this route.
    Steve Carrington

  9. #9
    bart is offline Intermediate Member
    Join Date
    Apr 2008
    Posts
    21
    Rep Power
    7

    Default

    I do this jobs many times with good result.

    I make this.

    1- install the new server, if possible the same OS that the old one.
    2- Install dependences to make possible to install zimbra from scartch. ( in my case debian dependences, a nice howto in howtoforge)
    3. download the same zimbra version as the old server
    4. run installer int he new server ./install.sh -s "( -s is important)"
    5. remove the /opt/zimbra from the new server "rm -rf /opt/zimbra"

    6.Install rsyn in both servers and rsync the old server with the new one, in the old server run "rsync -e ssh -avz /opt/zimbra root@ip_new_server:"
    7. take a wile, take a break a sit with a coffe..
    8. when finish.. then in the new server you have a zimbra directory under root, move it to /opt/ "mv /root/zimbra /opt/", run in the new server again ./install.sh (without -s)
    9. when installer ask for upgrade, say "yes"

    regards.

    B.

  10. #10
    scarrington is offline Member
    Join Date
    Jun 2008
    Posts
    10
    Rep Power
    7

    Default

    I reloaded Ubuntu fully and tried it all over again - exact same error message. I even installed with the -s option and I get the same error.
    Steve Carrington

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem With Moving ZCS to New Server
    By LMStone in forum Installation
    Replies: 42
    Last Post: 03-29-2011, 01:30 PM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  3. Moving from FOSS to NE server - mysql problem
    By zzzzsg in forum Administrators
    Replies: 5
    Last Post: 03-18-2008, 03:11 PM
  4. [SOLVED] Moving ZCS to new server
    By Bill Brock in forum Administrators
    Replies: 8
    Last Post: 02-26-2008, 11:29 AM
  5. Moving Zimbra to New Server
    By Jazzhands in forum Installation
    Replies: 1
    Last Post: 08-03-2007, 06:01 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
  •