Results 1 to 9 of 9

Thread: Zimbra 4.5.6 data recovery problems

  1. #1
    hallm is offline Junior Member
    Join Date
    Aug 2007
    Posts
    9
    Rep Power
    7

    Default Zimbra 4.5.6 data recovery problems

    Basically about a month ago our 4.5.6 installation hard drive crashed. It was a dead board on the hard drive, so our data was able to be restored completely because our data was not touched. I've got a removable hard drive where the entire Linux installation was copied. I've been really stumbling on how to restore the data, hitting errors and dead ends on each turn. The day after the crash we moved our email to 01.com and will be staying with that option to prevent what happened. Right now I just want to restore our old data so we can migrate messages with IMAP or whatevers best. We won't need it as a permanent solution.

    I've tried several of the suggestions in the forums and in the wiki and have hit error each time. I've been bad and not really documenting all my failures but I'd like to start now so we can resolve it.

    I did a fresh installation of Ubuntu Dapper and installed zimbra 4.5.6. This works fine and I can log into administration and create users, etc.

    I stopped services and moved the folder as a copy, like zimbragoodinstall. I copied my entire backup zimbra folder back into /opt .

    I did the following which from the forums kept moved forward in my recovery.

    chown -R zimbra:zimbra /opt/zimbra
    /opt/zimbra/libexec/zmfixperms
    I had to chmod 777 zmfixperms before I ran it.

    Then ln -s perdiction-1.17.1/ perdition-1.17 to correct perdition error. Then zmfixperms runs fine.

    After that I tried running ./install.sh from zcs and performing an upgrade that's where I am now.

    I get this, and I'm not sure where to proceed. I can restore the data other ways if that would help, just need an idea where to go from here.:

    Do you wish to upgrade? [Y] y

    Select the packages to install
    Upgrading zimbra-core
    Upgrading zimbra-ldap
    Upgrading zimbra-logger
    Upgrading zimbra-mta
    Upgrading zimbra-snmp
    Upgrading zimbra-store
    Upgrading zimbra-apache
    Upgrading zimbra-spell
    Checking required space for zimbra-core
    checking space for zimbra-store

    Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell

    The system will be modified. Continue? [N] y

    Shutting down zimbra mail

    Backing up ldap

    ./util/utilfunc.sh: line 899: /opt/zimbra/openldap/sbin/slapcat: No such file or directory

    Removing existing packages

    zimbra-ldap...done
    zimbra-logger...done
    zimbra-mta...done
    zimbra-snmp...done
    zimbra-store...done
    zimbra-spell...done
    zimbra-apache...done
    zimbra-core...done

    Removing deployed webapp directories
    Installing packages

    zimbra-core......zimbra-core_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-ldap......zimbra-ldap_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-logger......zimbra-logger_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-mta......zimbra-mta_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-snmp......zimbra-snmp_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-store......zimbra-store_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-apache......zimbra-apache_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-spell......zimbra-spell_4.5.6_GA_1044.UBUNTU6_i386.deb...done

    Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
    HOSTNAME=
    LDAPHOST=
    LDAPPORT=
    SNMPTRAPHOST=
    SMTPSOURCE=
    SMTPDEST=
    SNMPNOTIFY=0
    SMTPNOTIFY=0
    LDAPROOTPW=
    LDAPZIMBRAPW=
    Restoring existing configuration file from /opt/zimbra/.saveconfig/config.save...done
    -su: zmlocalconfig: command not found
    Operations logged to /tmp/zmsetup.log.27015
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
    Setting defaults...Done
    Setting defaults from existing config...Warning: null valued key 'mysql_logger_root_password'
    Checking for port conflicts

    Main menu

    1) Hostname: mail.1satcom.com
    ** 2) Ldap master host: UNSET
    3) Ldap port: 389
    4) Ldap password: set
    5) zimbra-ldap: Disabled
    6) zimbra-store: Disabled
    7) zimbra-mta: Disabled
    8) zimbra-snmp: Disabled
    9) zimbra-logger: Disabled
    10) zimbra-spell: Disabled
    r) Start servers after configuration yes
    s) Save config to file
    x) Expand menu
    q) Quit

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

    Default

    Did you make sure that the zimbra UID and GID were the same as the original install ? Have you used exactly the same server name ? How did you backup /opt/zimbra in the first instance ?

  3. #3
    hallm is offline Junior Member
    Join Date
    Aug 2007
    Posts
    9
    Rep Power
    7

    Default

    As far as server name, uid, gid. I doubt that they match. I didn't check. If that is required I'll need to see if I can get that from the restored files.

    The files were just copied off of the repaired hard drive to an external USB drive. We did not have backups. But all of the files are intact. The biggest problem is that none of the permissions have been retained.

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,566
    Rep Power
    57

    Default

    Quote Originally Posted by hallm View Post
    As far as server name, uid, gid. I doubt that they match. I didn't check. If that is required I'll need to see if I can get that from the restored files.
    They should match.

    Quote Originally Posted by hallm View Post
    The files were just copied off of the repaired hard drive to an external USB drive. We did not have backups. But all of the files are intact. The biggest problem is that none of the permissions have been retained.
    You can fix that with zmfixperms.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

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

    Default

    You will need to make sure that the UID and GID are the same on the new server. Have a read through http://wiki.zimbra.com/index.php?tit...Source_Version).

  6. #6
    hallm is offline Junior Member
    Join Date
    Aug 2007
    Posts
    9
    Rep Power
    7

    Default

    That link didn't go to an actual article. I googled this http://wiki.zimbra.com/index.php?tit...Source_Version) and it doesn't have anything about uid and gid. How can I check my uid and gid on the new server and just as important, how can I do it on my restored files from the drive. I can't actually boot into that one.

  7. #7
    hallm is offline Junior Member
    Join Date
    Aug 2007
    Posts
    9
    Rep Power
    7

    Default

    Looked in /etc/hosts and /etc/hostname on my old drive data and it is identical down to the local ip address of the machine. How do I check UID and GID on my old data?

    On the new machine Zimbra is 1003 user and 1004 group.

  8. #8
    hallm is offline Junior Member
    Join Date
    Aug 2007
    Posts
    9
    Rep Power
    7

    Default

    Nevermind. Looked at /etc/passwd on old data and it is :

    zimbra:x:1001:1001::/opt/zimbra:/bin/bash
    postfix:x:1002:1002::/opt/zimbra/postfix:/bin/sh

    New data is as posted before:
    postfix:x:1002:1002::/opt/zimbra/postfix:/bin/sh
    zimbra:x:1003:1004::/opt/zimbra:/bin/bash

    Do I just edit the /etc/passwd on the new box to match for zimbra?

  9. #9
    hallm is offline Junior Member
    Join Date
    Aug 2007
    Posts
    9
    Rep Power
    7

    Default

    Okay I matched the uid and gid from my original installation.

    Installed zimbra from fresh install, stopped services, mv director to zimbranewinstall. Copied my old data to /opt/zimbra.
    Chowned, ln -s, and zmfixperms like first post.

    Ran ./install.sh and I'm getting the same thing.

    Do you wish to upgrade? [Y] y

    Select the packages to install
    Upgrading zimbra-core
    Upgrading zimbra-ldap
    Upgrading zimbra-logger
    Upgrading zimbra-mta
    Upgrading zimbra-snmp
    Upgrading zimbra-store
    Upgrading zimbra-apache
    Upgrading zimbra-spell
    Checking required space for zimbra-core
    checking space for zimbra-store

    Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell

    The system will be modified. Continue? [N] y

    Shutting down zimbra mail

    Backing up ldap

    ./util/utilfunc.sh: line 899: /opt/zimbra/openldap/sbin/slapcat: No such file or directory

    Removing existing packages

    zimbra-ldap...done
    zimbra-logger...done
    zimbra-mta...done
    zimbra-snmp...done
    zimbra-store...done
    zimbra-spell...done
    zimbra-apache...done
    zimbra-core...done

    Removing deployed webapp directories
    Installing packages

    zimbra-core......zimbra-core_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-ldap......zimbra-ldap_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-logger......zimbra-logger_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-mta......zimbra-mta_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-snmp......zimbra-snmp_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-store......zimbra-store_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-apache......zimbra-apache_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    zimbra-spell......zimbra-spell_4.5.6_GA_1044.UBUNTU6_i386.deb...done
    -su: zmlocalconfig: command not found
    Operations logged to /tmp/zmsetup.log.2313
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
    Setting defaults...Done
    Setting defaults from existing config...Warning: null valued key 'mysql_logger_root_password'
    Checking for port conflicts

    Main menu

    1) Hostname: mail.1satcom.com
    ** 2) Ldap master host: UNSET
    3) Ldap port: 389
    4) Ldap password: set
    5) zimbra-ldap: Disabled
    6) zimbra-store: Disabled
    7) zimbra-mta: Disabled
    8) zimbra-snmp: Disabled
    9) zimbra-logger: Disabled
    10) zimbra-spell: Disabled
    r) Start servers after configuration yes
    s) Save config to file
    x) Expand menu
    q) Quit

    Address unconfigured (**) items or correct ldap configuration (? - help)


    What do I do here?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Moving Zimbra to a new server
    By krolen in forum Administrators
    Replies: 109
    Last Post: 02-05-2009, 11:38 AM
  2. Zimbra spam system
    By rajahd in forum Administrators
    Replies: 9
    Last Post: 04-16-2008, 07:25 PM
  3. Replies: 8
    Last Post: 02-27-2007, 04:10 AM
  4. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •