Doug,
Thank you, but the only ldap.bak files I have are in /opt/zimbra/data/ldap there are none in the /tmp directory, are these the same files that I can use to recreate the ldap config in /opt/zimbra/data/ldap/config ? I do not have a slapd.conf file in /opt/zimbra/conf
It seems there are 2 problems I have, there may only be one; that is the configuration at startup!!!:
1) The actual config, which I think is taken from localconfig.xml
I have various config.bak.xxxxxxx files in the opt/zimbra/directory the one from Dec 21st seems to contain al the information on my configuration server passwords networks etc. How do I restore this configuration to my server and create a new correct startup config? It must be created for a reason like this some kind of problem with the config file that can be recovered using the config.bak.xxxxxxx files.
2) Potentially some kind of issue with the ldap config and db
I have various ldap.bak.xxxxxxxxx files in /opt/zimbra/data/ldap again I have one from Dec 21st when I look in it it seems ot contain all of the information for my server domain, user and system accounts, COS settings, everthing. How can I use this file to re-create the config and or ldap DB to match the config file in 1) above. Again this must have been created for this type of reason, some kind of problem with the ldap config/db after upgrade.
Can anyone help me please. Is there anyone from Zimbra monitoring this thread that can help, I can assure you anyone can get into this situation from a simple power cut. I know its my fault that I did not monitor that the backups were running ok, they always were previously Ver 7.x but I have none of those files left. When I get this back up again I will need to work out a new backup strategy that gets around the 80G ldap db file problem that 8.0.x seems to have introduced.
As always hoping that this community can assist me in recoving this server before I get fired!!!
Below is what happens when I upgrade 8.0.6 over itself. I beleive the main problem is that it has created a default ldap db/config and therefore cannot find my server in ldap etc. I have found backups in /opt/zimbra/.saveconfig these files must be able to be used somehow to create the correct configs but I cannot find any information as to how they can be used. I beleive what I need to do is restore my ldap db and config from the Dec 21st files and then reboot the server so it is using the correct startup config and ldap db/ There have been no changes to our setup for a long time i.e. no new accounts or changes to server config for at least a year or more. So Dec 21st configs should be exactly the same as 2 days ago. I seem to be in the position that it is using a deafult ldap DB and config even though my server exists therefore the details cannot be found hence the server not found errors.
At the end it throws me in to the main configuration menu from where I cannot do anything. All passwords are correct for how the system was before the crash. When I check the passwords they are all there and zmlocalconfig -s | grep -i pass shows all passwords correct as they were before the crash.
zcs-8.0.6_GA_5922.UBUNTU10_64.20131203103719$ sudo ./install.sh
Operations logged to /tmp/install.log.3448
Checking for existing installation...
zimbra-ldap...FOUND zimbra-ldap-8.0.6.GA.5922.UBUNTU10.64
zimbra-logger...FOUND zimbra-logger-8.0.6.GA.5922.UBUNTU10.64
zimbra-mta...FOUND zimbra-mta-8.0.6.GA.5922.UBUNTU10.64
zimbra-snmp...FOUND zimbra-snmp-8.0.6.GA.5922.UBUNTU10.64
zimbra-store...FOUND zimbra-store-8.0.6.GA.5922.UBUNTU10.64
zimbra-apache...FOUND zimbra-apache-8.0.6.GA.5922.UBUNTU10.64
zimbra-spell...FOUND zimbra-spell-8.0.6.GA.5922.UBUNTU10.64
zimbra-convertd...NOT FOUND
zimbra-memcached...FOUND zimbra-memcached-8.0.6.GA.5922.UBUNTU10.64
zimbra-proxy...NOT FOUND
zimbra-archiving...NOT FOUND
zimbra-cluster...NOT FOUND
zimbra-core...FOUND zimbra-core-8.0.6.GA.5922.UBUNTU10.64
ZCS upgrade from 8.0.6 to 8.0.6 will be performed.
Saving existing configuration file to /opt/zimbra/.saveconfig
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
License Terms for the Zimbra Collaboration Suite:
Do">
http://www.zimbra.com/license/zimbra_pu ... a_2.4.html
Do you agree with the terms of the software license agreement? [N] y
Do you agree with the terms of the software license agreement? [N] y
Checking for prerequisites...
FOUND: NPTL
FOUND: netcat-openbsd-1.89-3ubuntu2
FOUND: sudo-1.7.2p1-1ubuntu5.6
FOUND: libidn11-1.15-2
FOUND: libpcre3-7.8-3build1
FOUND: libgmp3c2-2:4.3.2+dfsg-1ubuntu1
FOUND: libexpat1-2.0.1-7ubuntu1.1
FOUND: libstdc++6-4.4.3-4ubuntu5.1
FOUND: libperl5.10-5.10.1-8ubuntu2.3
Checking for suggested prerequisites...
FOUND: pax
FOUND: perl-5.10.1
FOUND: sysstat
FOUND: sqlite3
Prerequisite check complete.
Checking current number of databases...
Do you want to verify message store database integrity? [Y] Y
Verifying integrity of message store databases. This may take a while.
Starting mysqld...done.
mysqld is alive
No errors found
mysqld is alive 1) Common Configuration:
+Hostname: zimbra.twhg.home
+Ldap master host: zimbra.twhg.home
+Ldap port: 389
+Ldap Admin password: set
+Secure interprocess communications: yes
+TimeZone: America/Los_Angeles
+IP Mode: ipv4
+Default SSL digest: sha1
2) zimbra-ldap: Enabled
+Create Domain: no
+Ldap root password: set
+Ldap replication password: set
******* +Ldap postfix password: Not Verified
******* +Ldap amavis password: Not Verified
+Ldap nginx password: set
******* +Ldap Bes Searcher password: Not Verified
3) zimbra-store: Enabled
+Create Admin User: no
+Anti-virus quarantine user:
virus-quarantine.dijrrvf3tt@zimbra.twhg.home
+Enable automated spam training: yes
+Spam training user:
spam.wpilbeoum@zimbra.twhg.home
+Non-spam(Ham) training user:
ham.uejw0jxxl@zimbra.twhg.home
+SMTP host: zimbra.twhg.home
+Web server HTTP port: 80
+Web server HTTPS port: 443
+Web server mode: https
+IMAP server port: 143
+IMAP server SSL port: 993
+POP server port: 110
+POP server SSL port: 995
+Use spell check server: yes
+Spell server URL:
http://zimbra.twhg.home:7780/aspell.php
******* +Enable version update checks: UNSET
4) zimbra-mta: Enabled
+MTA Auth host: zimbra.twhg.home
+Enable Spamassassin: no
+Enable Clam AV: no
+Enable OpenDKIM: no
******* +Bind password for postfix ldap user: Not Verified
******* +Bind password for amavis ldap user: Not Verified
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit
Stopping mysqld... done.
Checking for installable packages
Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy
The Zimbra Collaboration Server appears already to be installed.
It can be upgraded with no effect on existing accounts,
or the current installation can be completely removed prior
to installation for a clean install.
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
Upgrading zimbra-memcached
Install zimbra-proxy [N]
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
zimbra-memcached
The system will be modified. Continue? [N] Y
Shutting down zimbra mail
Backing up the ldap database...done.
Removing existing packages
zimbra-ldap...done
zimbra-logger...done
zimbra-mta...done
zimbra-snmp...done
zimbra-store...done
zimbra-spell...done
zimbra-memcached...done
zimbra-apache...done
zimbra-core...done
Removing deployed webapp directories
Installing packages
zimbra-core......zimbra-core_8.0.6.GA.5922.UBUNTU10.64_amd64.deb...done
zimbra-ldap......zimbra-ldap_8.0.6.GA.5922.UBUNTU10.64_amd64.deb...done
zimbra-logger......zimbra-logger_8.0.6.GA.5922.UBUNTU10.64_amd64.deb...done
zimbra-mta......zimbra-mta_8.0.6.GA.5922.UBUNTU10.64_amd64.deb...done
zimbra-snmp......zimbra-snmp_8.0.6.GA.5922.UBUNTU10.64_amd64.deb...done
zimbra-store......zimbra-store_8.0.6.GA.5922.UBUNTU10.64_amd64.deb...done
zimbra-apache......zimbra-apache_8.0.6.GA.5922.UBUNTU10.64_amd64.deb...done
zimbra-spell......zimbra-spell_8.0.6.GA.5922.UBUNTU10.64_amd64.deb...done
zimbra-memcached......zimbra-memcached_8.0.6.GA.5922.UBUNTU10.64_amd64.deb...done
Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
HOSTNAME=zimbra.twhg.home
LDAPHOST=zimbra.twhg.home
LDAPPORT=389
SNMPTRAPHOST=zimbra.twhg.home
SMTPSOURCE=
admin@zimbra.twhg.home
SMTPDEST=
admin@zimbra.twhg.home
SNMPNOTIFY=yes
SMTPNOTIFY=yes
LDAPROOTPW=TYG6ZKeR
LDAPZIMBRAPW=TYG6ZKeR
LDAPPOSTPW=TYG6ZKeR
LDAPREPPW=TYG6ZKeR
LDAPAMAVISPW=TYG6ZKeR
LDAPNGINXPW=TYG6ZKeR
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done
Operations logged to /tmp/zmsetup.01142014-162022.log
Running zmldapapplyldif...done.
Checking ldap status....not running.
Starting ldap...done.
ERROR: account.NO_SUCH_SERVER (no such server: zimbra.twhg.home)
ERROR: account.NO_SUCH_SERVER (no such server: zimbra.twhg.home)
Setting defaults...ERROR: account.NO_SUCH_SERVER (no such server: zimbra.twhg.home)
done.
Setting defaults from existing config...done.
Checking for port conflicts
Setting defaults from ldap...done.
ERROR: account.NO_SUCH_SERVER (no such server: zimbra.twhg.home)
ERROR: account.NO_SUCH_SERVER (no such server: zimbra.twhg.home)
Main menu
Many thanks
Stephen