Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-06-2009, 07:40 PM
Junior Member
 
Posts: 9
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
Reply With Quote
  #2 (permalink)  
Old 09-07-2009, 12:12 AM
Moderator
 
Posts: 7,911
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 ?
__________________
Reply With Quote
  #3 (permalink)  
Old 09-07-2009, 12:36 AM
Junior Member
 
Posts: 9
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.
Reply With Quote
  #4 (permalink)  
Old 09-07-2009, 12:39 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
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
Reply With Quote
  #5 (permalink)  
Old 09-07-2009, 12:40 AM
Moderator
 
Posts: 7,911
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).
__________________
Reply With Quote
  #6 (permalink)  
Old 09-07-2009, 03:48 PM
Junior Member
 
Posts: 9
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.
Reply With Quote
  #7 (permalink)  
Old 09-07-2009, 05:12 PM
Junior Member
 
Posts: 9
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.
Reply With Quote
  #8 (permalink)  
Old 09-07-2009, 05:18 PM
Junior Member
 
Posts: 9
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?
Reply With Quote
  #9 (permalink)  
Old 09-07-2009, 06:21 PM
Junior Member
 
Posts: 9
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?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.