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, 06:37 AM
Loyal Member
 
Posts: 95
Default Problem upgrading to 6; slapadd import failed

I've tried upgrading to 6 several times but I run into the same error each time.

The upgrade process gets to the point where it's migrating ldap data and then fails.

The exact output is
Code:
Installing LDAP configuration database...done.
Migrating ldap data...slapadd import failed.
UPGRADE FAILED - exiting.
the zmsetup.log has the following
Code:
Sun Sep  6 21:43:15 2009 Migrating ldap data...
Sun Sep  6 21:43:15 2009 *** Running as zimbra user: /opt/zimbra/openldap/sbin/slapadd -q -b '' -F /opt/zimbra/data/ldap/config -l /opt/zimbra/data/ldap/ldap.60
str2entry: entry -1 has invalid DN "sambaDomainName=MEDALIST,dc=medalist,dc=com,dc=au"
slapadd: could not parse entry (line=1476)
Sun Sep  6 21:43:16 2009 slapadd import failed.
Sun Sep  6 21:43:16 2009 UPGRADE FAILED - exiting.
Which seems to indicate the problem is with my zimbra / samba integration.

I started by upgrading 5.0.14 GA and it failed with the above, so I restored from a backup, upgraded to 5.0.18 GA then tried again. Same error.

Before I restart the process all over again, is there a way to fix the issue and start from this point? Can I modify the slap.conf or slap.conf.in file to remove the samba integration?

I'm pretty sure that if I start the upgrade again it will wipe all my user data and email from the ldap, but there should be some way to start it from the error. If not, do I restore from backup again and then what do I need to change to get it to complete?
__________________
Mark Hawkins

Medalist
Reply With Quote
  #2 (permalink)  
Old 09-06-2009, 07:04 AM
Zimbra Employee
 
Posts: 184
Default

Looks like you have custom schemas. Have you done the prep work needed? Ideally, this prep work must be done before the 6.0 upgrade

Optimizing 50 to 60 LDAP upgrade - Zimbra :: Wiki
Reply With Quote
  #3 (permalink)  
Old 09-06-2009, 07:07 AM
Zimbra Employee
 
Posts: 184
Default

A customer ran into this yesterday, and here was the workaround; hopefully this will work for you.

The Workaround
-----------------------

1) zmcontrol stop

2) Do the steps as outlined here: Optimizing 50 to 60 LDAP upgrade - Zimbra :: Wiki

3) Do the steps as outlined here: Installing custom ldap schema 6.0 - Zimbra :: Wiki

4) cd /opt/zimbra/data/ldap **rename all ldap.* files so they are out of the way**

5) Copy the latest ldap.bak from latest backup (most likely from 5.0.x), and place it in /opt/zimbra/data/ldap/

6) chown zimbra:zimbra /opt/zimbra/data/ldap/ldap.bak && chmod 640 /opt/zimbra/data/ldap/ldap.bak

7) mv /opt/zimbra/data/ldap/hdb /opt/zimbra/data/ldap/hdb.OLD

8) mkdir /opt/zimbra/data/ldap/hdb/db && mkdir /opt/zimbra/data/ldap/hdb/logs

9) chown -R zimbra:zimbra /opt/zimbra/data/ldap/hdb/

10) Edit the .install_history file, so it will the install section, for example:
1252187141: INSTALL SESSION START
1252187141: UPGRADED zimbra-spell-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187142: UPGRADED zimbra-logger-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187143: UPGRADED zimbra-ldap-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187144: UPGRADED zimbra-archiving-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187145: UPGRADED zimbra-core-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187146: UPGRADED zimbra-snmp-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187147: UPGRADED zimbra-convertd-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187148: UPGRADED zimbra-mta-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187149: UPGRADED zimbra-apache-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187151: UPGRADED zimbra-store-6.0.0_GA_1802.RHEL5_64-20090830130556
1252187143: INSTALL SESSION COMPLETE
**You only need to delete the CONFIGURED/UPGRADED for 6.0.x section, keep the 6.0.0 INSTALL session. Make sure to keep *everything* that every came before...every 5.0.x install, etc**

11) Run /opt/zimbra/libexec/zmsetup.pl
Reply With Quote
  #4 (permalink)  
Old 09-07-2009, 01:02 AM
Loyal Member
 
Posts: 95
Default

king0770,

I should have check back earlier. I suspected the issue was the schema changes but had not found the post you suggested.

Even following the instructions (from your first post) I was not able to get the upgrade to complete, and at the time I hand't seen your second post, so I returned to a backup to get things up and running.

The upgrade from 5 to 6 in my case is not going to be quite as simple as I orginally thought from the release notes, so I'm going to clone the system and do a test upgrade first (which I really should have done anyway).

Thanks for the help.
__________________
Mark Hawkins

Medalist
Reply With Quote
  #5 (permalink)  
Old 09-24-2009, 09:27 AM
Elite Member
 
Posts: 360
Default

I had the SAME error... solved it by doing: Converting and installing schema with the new LDIF format

in this tutorial:
Installing custom ldap schema 6.0 - Zimbra :: Wiki
Reply With Quote
  #6 (permalink)  
Old 09-24-2009, 07:35 PM
Loyal Member
 
Posts: 95
Default

Thanks,

I did find that post, but still had issues. I'm in the process of setting up a vm copy of my existing server so that I can test the upgrade without having to revert back to a backed up version if it fails.

Thanks,

Mark
__________________
Mark Hawkins

Medalist
Reply With Quote
  #7 (permalink)  
Old 02-17-2010, 01:28 AM
Member
 
Posts: 10
Default

Hit, but in ver.5.0.22 folder: /opt/zimbra/data/ldap/config/cn\=config/cn\=schema
and files:
cn={0}core.ldif cn={1}cosine.ldif cn={2}inetorgperson.ldif cn={3}zimbra.ldif cn={4}amavisd.ldif
does not exist!
Reply With Quote
  #8 (permalink)  
Old 02-17-2010, 05:31 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by pillerk View Post
Hit, but in ver.5.0.22 folder: /opt/zimbra/data/ldap/config/cn\=config/cn\=schema
and files:
cn={0}core.ldif cn={1}cosine.ldif cn={2}inetorgperson.ldif cn={3}zimbra.ldif cn={4}amavisd.ldif
does not exist!
That would be because this thread relates to Zimbra 6.x, see the following note: Optimizing 5.0 to 6.0 LDAP upgrade - Zimbra :: Wiki Perhaps if you told us what you're trying to do someone could provide an answer for you.
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 02-17-2010, 11:55 PM
Member
 
Posts: 10
Default

Hi
I followed the instructions here: Optimizing 5.0 to 6.0 LDAP upgrade - Zimbra :: Wiki

There is neither NIS nor SAMBA customization in the ldap
but unsuccessful upgrade! Here is the zmsetup.log includes:

Thu Feb 18 08:46:28 2010 Operations logged to /tmp/zmsetup.02182010-084628.log
Thu Feb 18 08:46:28 2010 Installing LDAP configuration database...
Thu Feb 18 08:46:28 2010 done.
Thu Feb 18 08:46:28 2010 *** 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...
Thu Feb 18 08:46:28 2010 Upgrading from 5.0.22_GA_3210 to 6.0.5_GA_2213
Thu Feb 18 08:46:28 2010 Stopping zimbra services...
Thu Feb 18 08:46:28 2010 *** Running as zimbra user: /opt/zimbra/bin/zmcontrol stop
Host mail.domain.com
Stopping stats...Done.
Stopping mta...Done.
Stopping spell...Done.
Stopping snmp...Done.
Stopping archiving...Done.
Stopping antivirus...Done.
Stopping antispam...Done.
Stopping imapproxy...Done.
Stopping memcached...Done.
Stopping mailbox...Done.
Stopping logger...Done.
Stopping ldap...Done.
Thu Feb 18 08:46:29 2010 done.
Thu Feb 18 08:46:29 2010 Verifying /opt/zimbra/conf/my.cnf
Thu Feb 18 08:46:30 2010 Starting mysql...
Thu Feb 18 08:46:30 2010 *** Running as zimbra user: /opt/zimbra/bin/mysql.server start
Starting mysqld...done.
Thu Feb 18 08:46:40 2010 done.
Thu Feb 18 08:46:41 2010 This appears to be 5.0.22_GA
Thu Feb 18 08:46:41 2010 Installing LDAP configuration database...
Thu Feb 18 08:46:41 2010 done.
Thu Feb 18 08:46:41 2010 Migrating ldap data...
Thu Feb 18 08:46:41 2010 *** Running as zimbra user: /opt/zimbra/openldap/sbin/slapadd -q -b '' -F /opt/zimbra/data/ldap/config -l /opt/zimbra/data/ldap/ldap.60
=> hdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data pair already exists (-30995)
slapadd: could not add entry dn="" (line=1084): id2entry_add failed: DB_KEYEXIST: Key/data pair already exists (-30995)
Thu Feb 18 08:46:42 2010 slapadd import failed.
Thu Feb 18 08:46:42 2010 UPGRADE FAILED - exiting.
Reply With Quote
  #10 (permalink)  
Old 02-19-2010, 04:49 AM
Member
 
Posts: 10
Thumbs down

Got a bit more. I created (manually) the folder: /opt/zimbra/data/ldap/ldap.60
then the upgrade was successful, but the LDAP data is missing


Running bdb db_recover...done.
Running zmldapapplyldif...done.
Checking ldap status....already running.
ERROR: account.NO_SUCH_SERVER (no such server: mail.domain.com)
ERROR: account.NO_SUCH_SERVER (no such server: mail.domain.com)
Setting defaults...ERROR: account.NO_SUCH_SERVER (no such server: mail.domain.com)
done.
Setting defaults from existing config...
ERROR: account.NO_SUCH_SERVER (no such server: mail.domain.com)
ERROR: account.NO_SUCH_SERVER (no such server: mail.domain.com)
Setting defaults...ERROR: account.NO_SUCH_SERVER (no such server: mail.domain.com)
done.
Checking for port conflicts
ERROR: account.NO_SUCH_SERVER (no such server: mail.domain.com)
ERROR: account.NO_SUCH_SERVER (no such server: mail.domain.com)
Saving config in /opt/zimbra/config.30136...done.

Somebody's idea?
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.