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
  #21 (permalink)  
Old 09-05-2009, 04:00 AM
Moderator
 
Posts: 7,911
Default

What files do you have under /opt/zimbra/data/ldap/config ?
__________________
Reply With Quote
  #22 (permalink)  
Old 09-05-2009, 04:03 AM
Active Member
 
Posts: 42
Default

Quote:
Originally Posted by uxbod View Post
What files do you have under /opt/zimbra/data/ldap/config ?
i have 2 files there..

Quote:
zimbra@server:~$ ls -l /opt/zimbra/data/ldap/config
total 8
drwxr-xr-x 3 zimbra zimbra 4096 Sep 4 11:56 cn=config
-rw------- 1 zimbra zimbra 1073 Sep 4 11:56 cn=config.ldif
Reply With Quote
  #23 (permalink)  
Old 09-05-2009, 10:02 PM
Active Member
 
Posts: 42
Default

i missing my zimbra :-( Anyone have any idea?
Reply With Quote
  #24 (permalink)  
Old 09-07-2009, 12:21 AM
Active Member
 
Posts: 42
Default

Quote:
Originally Posted by mmorse View Post
Goal is to create an /opt/zimbra/data/ldap/ldap.bak



A way to generate a LDIF output is a slapcat:
Code:
openldap/sbin/slapcat -f /opt/zimbra/conf/slapd.conf -l /tmp/ldap.ldif
so far i understand is, that this command ist exactly the same like

Quote:
/opt/zimbra/libexec/zmslapcat /opt/zimbra/data/ldap
or like


Quote:
/opt/zimbra/openldap/sbin/slapcat -F /opt/zimbra/data/ldap/config -b "" -l /opt/zimbra/data/ldap/ldap.bak
Is this correct? So, if this is true, die command
Quote:
openldap/sbin/slapcat -f /opt/zimbra/conf/slapd.conf -l /tmp/ldap.ldif
generates an error:

Quote:
zimbra@server:~$ /opt/zimbra/openldap-2.4.17.8z/sbin/slapcat -f /opt/zimbra/conf/slapd.conf -l /tmp/ldap.ldif
could not stat config file "/opt/zimbra/lib/conf/zimbra-ext.schema": No such file or directory (2)
slapcat: bad configuration file!
zimbra@server:~$
The dir /opt/zimbra/lib/conf doesnt exists

i hope this helps a little to get this error resolved - bad times without a running zimbra :-)

Last edited by Nextasy; 09-07-2009 at 12:30 AM..
Reply With Quote
  #25 (permalink)  
Old 09-07-2009, 12:33 AM
Moderator
 
Posts: 7,911
Default

Did you backup /opt/zimbra before you performed the upgrade ?
__________________
Reply With Quote
  #26 (permalink)  
Old 09-07-2009, 12:45 AM
Active Member
 
Posts: 42
Default

Quote:
Originally Posted by uxbod View Post
Did you backup /opt/zimbra before you performed the upgrade ?
not exactly before, but i made a tarball every night of the zimbra dir
Reply With Quote
  #27 (permalink)  
Old 09-07-2009, 12:54 AM
Moderator
 
Posts: 7,911
Default

Okay, so what you could try is extracting your tarball somewhere else on the server. Switch into the zimbra user. Change to the directory where your extracted backup is and then run /opt/zimbra/openldap/sbin/slapcat -F /opt/zimbra/data/ldap/config -b "" -l /opt/zimbra/data/ldap/ldap.bak.

You may wish to backup the ldap.bak first or even move it to a subdirectory out of the way. Hopefully this will generate a good LDAP backup using the V5 binaries.

Once that is done, if it works, copy the ldap.bak to /opt/zimbra/data/ldap and try the upgrade again.
__________________
Reply With Quote
  #28 (permalink)  
Old 09-07-2009, 04:41 AM
Active Member
 
Posts: 42
Default

Quote:
Originally Posted by uxbod View Post
Okay, so what you could try is extracting your tarball somewhere else on the server. Switch into the zimbra user. Change to the directory where your extracted backup is and then run /opt/zimbra/openldap/sbin/slapcat -F /opt/zimbra/data/ldap/config -b "" -l /opt/zimbra/data/ldap/ldap.bak.
Hmm - slapcat generates an sharded lib error.

Also, there is no opt/zimbra/data/ dir

Quote:
zimbra@server:/daten2/backup/zimbra/opt/zimbra/openldap-2.3.43.10z/sbin$ /daten2/backup/zimbra/opt/zimbra/openldap-2.3.43.10z/sbin/slapcat -F /daten2/backup/zimbra/opt/zimbra/data/ldap/config -b "" -l /daten2/backup/zimbra/opt/data/ldap/ldap.bak
/daten2/backup/zimbra/opt/zimbra/openldap-2.3.43.10z/sbin/slapcat: error while loading shared libraries: libldap_r-2.3.so.0: cannot open shared object file: No such file or directory
Reply With Quote
  #29 (permalink)  
Old 09-07-2009, 05:12 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Quote:
Originally Posted by Nextasy View Post
Hmm - slapcat generates an sharded lib error.

Also, there is no opt/zimbra/data/ dir
There should be as that's the new data directory instead of /opt/zimbra/openldap-data, are you sure that the upgrade went OK did you check the log file?
__________________
Regards


Bill
Reply With Quote
  #30 (permalink)  
Old 09-07-2009, 05:18 AM
Active Member
 
Posts: 42
Default

Hi Phoenix

the main error is, that on the installation process from 5.0.18 to 6, the script ended with an "no valid backup found" error - the debs are in version 6, but the zmsetup.pl script ended in this error. It seems, that the slapcat cannot make an valid backup of the ldap structure..dunno why. permissions are ok
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.