Restore from completely broken installation

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
User avatar
axslingr
Outstanding Member
Outstanding Member
Posts: 256
Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18

Re: Restore from completely broken installation

Post by axslingr »

So shall I remove apparmor from that box?
Definitely.

Lance
empe
Posts: 20
Joined: Fri Sep 12, 2014 10:44 pm

Re: Restore from completely broken installation

Post by empe »

Ok, removed.

Fixed DNS stuff to the "old" IP (fixed BIND9 and added additional IP to my NIC).

Now I restarted from scratch ...

Code: Select all

./install -u
rm -rf /opt/zimbra
./install -s
rsync -azv /opt/zimbra_last_working/ /opt/zimbra/
Then copied backup of .install_hostory and localconfig.xml which I saved before the failing dist upgrade.

Code: Select all

cp -a $ZIMBRA_BAK/.install_history $BASE/.install_history
cp -a $ZIMBRA_BAK/localconfig.xml $BASE/localconfig.xml
As the ldap files are sparse files my backup script used zmslapcat to save them to another directory.
So I restored these also by

Code: Select all

rm -rf $BASE/data/ldap
mkdir -p $BASE/data/ldap/mdb/db

rm -rf $BASE/data/ldap/config
mkdir $BASE/data/ldap/config

/opt/zimbra/libexec/zmslapadd -c $LDAP_BAK/ldap-config.bak
/opt/zimbra/libexec/zmslapadd $LDAP_BAK/ldap.bak
I assume /opt/zimbra should now be prepared to reinstall zimbra ...

Code: Select all

./install
But unfortunately it fails setting up ldap stuff :(
This is the log file

Code: Select all

ri Jan 25 06:23:09 2019 Operations logged to /tmp/zmsetup.20190125-062309.log
Fri Jan 25 06:23:09 2019 *** Running as zimbra user: /opt/zimbra/libexec/zmldapschema 2>/dev/null
Looking for LDAP installation...succeeded
Installing core schema...
Installing cosine schema...
Installing inetOrgPerson schema...
Installing zimbra schema...
Installing amavis schema...
Installing dyngroup schema...
Installing OpenDKIM schema...
Fri Jan 25 06:23:10 2019 Adding /opt/zimbra/conf/ca/ca.pem to cacerts
Fri Jan 25 06:23:10 2019 *** Running as zimbra user: /opt/zimbra/bin/zmcertmgr addcacert /opt/zimbra/conf/ca/ca.pem
** Importing cert '/opt/zimbra/conf/ca/ca.pem' as 'zcs-user-ca' into cacerts '/opt/zimbra/common/lib/jvm/java/jre/lib/security/cacerts'
** NOTE: restart mailboxd to use the imported certificate.
Fri Jan 25 06:23:10 2019 Upgrading from 8.8.11_GA_3737 to 8.8.9_GA_3019
Fri Jan 25 06:23:11 2019 Stopping zimbra services...
Fri Jan 25 06:23:11 2019 *** Running as zimbra user: /opt/zimbra/bin/zmcontrol stop
Host zimbra.empec.de
        Stopping zmconfigd...Done.
        Stopping zimlet webapp...Done.
        Stopping zimbraAdmin webapp...Done.
        Stopping zimbra webapp...Done.
        Stopping service webapp...Done.
        Stopping stats...Done.
        Stopping mta...Done.
        Stopping spell...Done.
        Stopping snmp...Done.
        Stopping cbpolicyd...Done.
        Stopping archiving...Done.
        Stopping opendkim...Done.
        Stopping amavis...Done.
        Stopping antivirus...Done.
        Stopping antispam...Done.
        Stopping proxy...Done.
        Stopping memcached...Done.
        Stopping mailbox...Done.
        Stopping logger...Done.
        Stopping dnscache...Done.
        Stopping ldap...Done.
Fri Jan 25 06:23:15 2019 done.
Fri Jan 25 06:23:15 2019 This appears to be 8.8.11_GA
Fri Jan 25 06:23:15 2019 Starting mysql...
Fri Jan 25 06:23:15 2019 *** Running as zimbra user: /opt/zimbra/bin/mysql.server start
Starting mysqld...done.
Fri Jan 25 06:23:28 2019 done.
Fri Jan 25 06:23:28 2019 Checking ldap status...
Fri Jan 25 06:23:28 2019 *** Running as zimbra user: /opt/zimbra/bin/ldap status
Fri Jan 25 06:23:29 2019 not running.
Fri Jan 25 06:23:29 2019 Checking ldap status...
Fri Jan 25 06:23:29 2019 *** Running as zimbra user: /opt/zimbra/bin/ldap status
Fri Jan 25 06:23:29 2019 not running.
Fri Jan 25 06:23:29 2019 Starting ldap...
Fri Jan 25 06:23:29 2019 *** Running as zimbra user: /opt/zimbra/bin/ldap start
Failed to start slapd.  Attempting debug start to determine error.
5c4a9d76 config error processing olcDatabase={2}mdb,cn=config: <olcAccess> handler exited with 1

Fri Jan 25 06:24:06 2019 failed with exit code: 256.
Fri Jan 25 06:25:43 2019 UPGRADE FAILED - exiting.
So I am lost again. Shame.
User avatar
axslingr
Outstanding Member
Outstanding Member
Posts: 256
Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18

Re: Restore from completely broken installation

Post by axslingr »

You need to install 8.8.9 the first time. Once that's working then you can upgrade.

Lance
empe
Posts: 20
Joined: Fri Sep 12, 2014 10:44 pm

Re: Restore from completely broken installation

Post by empe »

You need to install 8.8.9 the first time. Once that's working then you can upgrade.
I am also surprised. But that was the installer of 8.8.9 :(
User avatar
axslingr
Outstanding Member
Outstanding Member
Posts: 256
Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18

Re: Restore from completely broken installation

Post by axslingr »

I'm afraid I don't have an answer for that issue. I'd be rebuilding my vm at this point and starting fresh.

There still seems to be some confusion with the hostname though, because your log indicates this:

Code: Select all

ri Jan 25 06:23:11 2019 *** Running as zimbra user: /opt/zimbra/bin/zmcontrol stop
Host zimbra.empec.de
        Stopping zmconfigd...Done.
        Stopping zimlet webapp...Done.
        Stopping zimbraAdmin webapp...Done.
        Stopping zimbra webapp...Done.
But earlier you said the hostname was vmd10085.contabo.host. So, check the /etc/hosts and /etc/hostname files of the failed server and make sure your restore server is exactly the same. This will not work if they aren't.

Lance
empe
Posts: 20
Joined: Fri Sep 12, 2014 10:44 pm

Re: Restore from completely broken installation

Post by empe »

Thank you for your patience, Lance.

My failed server shows:

Code: Select all

$ cat /etc/hostname
vmd10085.contabo.host
I am a bit short in time this weekend. Will retry Monday.
It really drives me cracy as I did the whole procedure already some times moving to other VPS providers.
empe
Posts: 20
Joined: Fri Sep 12, 2014 10:44 pm

Re: Restore from completely broken installation

Post by empe »

Hi Lance,

I finally gave up as my box is not willing to work :(
Purchased a commercial software to convert my messages to Outlook PST format and moved them to my new hosted server. Completely uncategorized and including SPAM :(
As everything is inside a folder on my new zcs I could replace the stuff if I can make it working somewhen later.

Thanks a lot for your help and all hints You gave!
Michael
User avatar
axslingr
Outstanding Member
Outstanding Member
Posts: 256
Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18

Re: Restore from completely broken installation

Post by axslingr »

You're welcome. Sorry we couldn't get it working.

Lance
Post Reply