Results 1 to 10 of 10

Thread: Problem upgrading to 6; slapadd import failed

  1. #1
    gtr33m is offline Loyal Member
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    7

    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

  2. #2
    king0770's Avatar
    king0770 is offline Zimbra Employee
    Join Date
    Sep 2007
    Posts
    186
    Rep Power
    7

    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

  3. #3
    king0770's Avatar
    king0770 is offline Zimbra Employee
    Join Date
    Sep 2007
    Posts
    186
    Rep Power
    7

    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

  4. #4
    gtr33m is offline Loyal Member
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    7

    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

  5. #5
    NoDoze is offline Elite Member
    Join Date
    Feb 2008
    Location
    San Francisco
    Posts
    360
    Rep Power
    7

    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

  6. #6
    gtr33m is offline Loyal Member
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    7

    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

  7. #7
    pillerk is offline Member
    Join Date
    Dec 2007
    Posts
    10
    Rep Power
    7

    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!

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,495
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    pillerk is offline Member
    Join Date
    Dec 2007
    Posts
    10
    Rep Power
    7

    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.

  10. #10
    pillerk is offline Member
    Join Date
    Dec 2007
    Posts
    10
    Rep Power
    7

    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] problem taking opensource backup
    By bluebriarrose in forum Administrators
    Replies: 13
    Last Post: 08-07-2009, 01:02 PM
  2. Help!!! Moving ZCS does not work!
    By ASebestian in forum Migration
    Replies: 7
    Last Post: 02-12-2009, 06:06 PM
  3. Import PST failed
    By undertoe in forum Installation
    Replies: 2
    Last Post: 06-21-2006, 10:16 AM
  4. Replies: 4
    Last Post: 04-26-2006, 10:11 AM
  5. Replies: 18
    Last Post: 03-20-2006, 02:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •