Upgrade from 7.2.0 to 8.0 fail with ldap error

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
10424bofh
Outstanding Member
Outstanding Member
Posts: 286
Joined: Sat Sep 13, 2014 1:15 am

Upgrade from 7.2.0 to 8.0 fail with ldap error

Postby 10424bofh » Sat Sep 22, 2012 6:26 am

hey thats intresting, could not remeber change those values, but it looks like i did, i guess it was with tuning.
ok very much thanks iam gonna try that in the night


mchughs
Posts: 3
Joined: Sat Sep 13, 2014 2:55 am

Upgrade from 7.2.0 to 8.0 fail with ldap error

Postby mchughs » Sat Sep 22, 2012 11:58 am

Hi all,
This might help some other folks out there:
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done

Operations logged to /tmp/zmsetup.09222012-162307.log

Upgrading from 7.2.0_GA_2669 to 8.0.0_GA_5434

Stopping zimbra services...done.

Starting mysql...done.

This appears to be 7.2.0_GA

Error: /opt/zimbra/data/ldap/ldap.bak is empty

UPGRADE FAILED - exiting.
For some reason, my ldap.bak was being overwritten during installation/backup , and my solution was to copy the original timestamped backup after the upgrade process indicated:
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
cp /opt/zimbra/data/ldap/ldap.bak.20120922145210 /opt/zimbra/data/ldap/ldap.bak
Hope that makes sense :-)
-M
10424bofh
Outstanding Member
Outstanding Member
Posts: 286
Joined: Sat Sep 13, 2014 1:15 am

Upgrade from 7.2.0 to 8.0 fail with ldap error

Postby 10424bofh » Sun Sep 23, 2012 12:01 am

[quote user="Albin Mujkic"]I had the same problem and it is not certificate related.
The problem was that i have changed ldap settings:

ldap_common_threads,ldap_common_toolthreads,ldap_db_cachesizeldap_db_idlcachesize,ldap_cache_domain_maxsize

by following OpenLDAP Performance Tuning instructions (OpenLDAP Performance Tuning - Zimbra :: Wiki).
I had set the ldap settings to default again:



su - zimbra

zmlocalconfig -e ldap_common_threads=8

zmlocalconfig -e ldap_common_toolthreads=1

zmlocalconfig -e ldap_db_cachesize=10000

zmlocalconfig -e ldap_db_idlcachesize=10000

zmlocalconfig -e ldap_cache_domain_maxsize=100
zmcontrol restart
and upgrade to 8.0 finished successfully.
For multinode installation do this on ldap master and replicas to.[/QUOTE]


Well id did change something, i cold a little mroe output now but it still fails at the same point.

in addition if i try to run the slapp d command from the upgrade iam getting now also a segfault

too bad..


well at least it was a good test for our backup


@ mchughs
uhm wtf?
youre shure you know what your doing?
as far i know tehy use the ldap.bak file to create the new ldap files based on the conversion.

so now simply renaming it wont do much alone , you still have to upgrade the ldap directory or you may run into serisous - baremettal restore - trouble


what youve done after renaming your files?

pS: upgrade from 7.2 to 7.21 was flawless as usual - 8.0 seems really wierd, maybe to much upgrade at once
10424bofh
Outstanding Member
Outstanding Member
Posts: 286
Joined: Sat Sep 13, 2014 1:15 am

Upgrade from 7.2.0 to 8.0 fail with ldap error

Postby 10424bofh » Sun Sep 23, 2012 12:06 am

mchughs
Posts: 3
Joined: Sat Sep 13, 2014 2:55 am

Upgrade from 7.2.0 to 8.0 fail with ldap error

Postby mchughs » Sun Sep 23, 2012 12:21 am

[quote user="10424bofh"]ah btw i files a bug report


Hi
bofh,
I apologize for not being clear about the issue. The ldap backup portion of the upgrade from 7.2 to 8.0 overwrites

the ldap.bak, BEFORE updating it. Hence a bug report is an appropriate action.
-mchughs
10424bofh
Outstanding Member
Outstanding Member
Posts: 286
Joined: Sat Sep 13, 2014 1:15 am

Upgrade from 7.2.0 to 8.0 fail with ldap error

Postby 10424bofh » Sun Sep 23, 2012 12:38 am

Yes it does, at least i suspected that.
Well if i do the upgrade first time i got an .bak file generated, if i do it a second time its gone too, still replacing it wont save the issue cause i cannot upgrade it

if i try todo the upgrade manually by slapp command im getting a segfault
maybe theres an additional ldap settings needs to be tweaked back to default.

hopefully we get osme more info from the bugzilla
mchughs
Posts: 3
Joined: Sat Sep 13, 2014 2:55 am

Upgrade from 7.2.0 to 8.0 fail with ldap error

Postby mchughs » Sun Sep 23, 2012 12:46 am

Gotcha, you might want to check the directory where ldap.bak is stored... On my server, the upgrade script made an initial backup and added a timestamp like so ldap.bak.XXXXXXX .
Once I noticed that, I just opened two shells and restored the ldap.bak from the latest correct timestamped one and viola, the entire process completed successfully. The server is up and running perfectly now.
10424bofh
Outstanding Member
Outstanding Member
Posts: 286
Joined: Sat Sep 13, 2014 1:15 am

Upgrade from 7.2.0 to 8.0 fail with ldap error

Postby 10424bofh » Sun Sep 23, 2012 2:28 am

[quote user="mchughs"]Gotcha, you might want to check the directory where ldap.bak is stored... On my server, the upgrade script made an initial backup and added a timestamp like so ldap.bak.XXXXXXX .
Once I noticed that, I just opened two shells and restored the ldap.bak from the latest correct timestamped one and viola, the entire process completed successfully. The server is up and running perfectly now.[/QUOTE]

hmp again, no that does not work.

the ldap.bak.timestamp is the backup bevore it get upgraded.

the problem is that the update script try to issue a slapp command (as shown in the log) in order to succesfully upgrade it.

this script segfaults when its executed, not because of an emtpy bak (its there nad its fine) but during the ldap upgrade it segfaults.


after setting ldap to defaults it segfaults just later so i get a bit more of the new structure, but it still segfaults
gilles.guillotin
Posts: 2
Joined: Sat Sep 13, 2014 2:54 am

Upgrade from 7.2.0 to 8.0 fail with ldap error

Postby gilles.guillotin » Sun Sep 23, 2012 3:30 am

[quote user="Albin Mujkic"]I had the same problem and it is not certificate related.
The problem was that i have changed ldap settings:

ldap_common_threads,ldap_common_toolthreads,ldap_db_cachesizeldap_db_idlcachesize,ldap_cache_domain_maxsize

by following OpenLDAP Performance Tuning instructions (OpenLDAP Performance Tuning - Zimbra :: Wiki).
I had set the ldap settings to default again:



su - zimbra

zmlocalconfig -e ldap_common_threads=8

zmlocalconfig -e ldap_common_toolthreads=1

zmlocalconfig -e ldap_db_cachesize=10000

zmlocalconfig -e ldap_db_idlcachesize=10000

zmlocalconfig -e ldap_cache_domain_maxsize=100
zmcontrol restart
and upgrade to 8.0 finished successfully.
For multinode installation do this on ldap master and replicas to.[/QUOTE]
I can confirm this is working for me. No errors in migration process after resetting those defaults !
apsantos
Posts: 8
Joined: Fri Sep 12, 2014 10:30 pm

Upgrade from 7.2.0 to 8.0 fail with ldap error

Postby apsantos » Sun Sep 23, 2012 7:20 am

for me the IM is critiacal, and it work in 7.2.0.
after the 8.0 upgrade do you still have do IM working?

Return to “Administrators”

Who is online

Users browsing this forum: MSN [Bot] and 10 guests