Results 1 to 6 of 6

Thread: ldif checksum error

  1. #1
    Join Date
    Aug 2007
    Posts
    21
    Rep Power
    8

    Default ldif checksum error

    We've recently upgraded to version 8.x and have been working on changing our backup procedure to incorporate the changes to LDAP as described here. Running zmslapcat throws a checksum error when executed. The outcome is the same whether LDAP is running or not.

    Code:
    zimbra@apollo:~$ /opt/zimbra/libexec/zmslapcat -c /opt/zimbra/backup/ldap
    52274e03 ldif_read_file: checksum error on "/opt/zimbra/data/ldap/config/cn=config.ldif"
    52274e04 ldif_read_file: checksum error on "/opt/zimbra/data/ldap/config/cn=config.ldif"
    zimbra@apollo:~$ /opt/zimbra/libexec/zmslapcat /opt/zimbra/backup/ldap
    52274e68 ldif_read_file: checksum error on "/opt/zimbra/data/ldap/config/cn=config.ldif"
    I found the same error message in zimbra.log when LDAP starts up:

    Code:
    Sep  4 11:08:45 localhost slapd[12126]: @(#) $OpenLDAP: slapd 2.4.35 (May 24 2013 11:37:31) $#012#011root@zre-ubuntu12-64:/home/build/p4/zimbra/IRONMAIDEN/ThirdParty/openldap/openldap-2.4.35.2z/servers/slapd
    Sep  4 11:08:45 localhost slapd[12126]: ldif_read_file: checksum error on "/opt/zimbra/data/ldap/config/cn=config.ldif"
    Sep  4 11:08:45 localhost slapd[12127]: slapd starting
    Fortunately everything seems to be functional, but I am concerned our backups aren't valid.
    Is anyone else encountering this? The only mention of this I've been able to find is on a French speaking Zimbra forum and that comment had no replies.
    Is it safe to ignore?

  2. #2
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,285
    Rep Power
    10

    Default

    This is not an error, and it does not affect backups. It is purely a warning, and it is trivial to make it go away.

    Code:
    ldapmodify -x -H ldapi:/// -D cn=config -w `zmlocalconfig -s -m nokey ldap_root_password`
    dn: cn=config
    changetype: modify
    replace: olcConcurrency
    olcConcurrency: 0
    
    <control-D>
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  3. #3
    Join Date
    Aug 2007
    Posts
    21
    Rep Power
    8

    Default

    Thanks quanah, that took care of it.

    Just a note for anyone else following this: be sure to hit enter twice after "olcConcurrency: 0" such that it responds with "modifying entry "cn=config"".

  4. #4
    Join Date
    Jul 2009
    Posts
    7
    Rep Power
    6

    Default

    Quote Originally Posted by quanah View Post
    This is not an error, and it does not affect backups. It is purely a warning, and it is trivial to make it go away.

    Code:
    ldapmodify -x -H ldapi:/// -D cn=config -w `zmlocalconfig -s -m nokey ldap_root_password`
    dn: cn=config
    changetype: modify
    replace: olcConcurrency
    olcConcurrency: 0
    
    <control-D>
    After upgrading from 8.03 to 8.06 we have similar messages in the log:

    Jan 9 10:41:08 HOST zimbramon[13643]: 13643:info: Starting services initiated by zmcontrol
    Jan 9 10:41:08 HOST slapd[14123]: @(#) $OpenLDAP: slapd 2.4.38 (Nov 22 2013 09:35:09) $#012#011root@zre-ubuntu10-64:/home/build/p4/zimbra/IRONMAIDEN/ThirdParty/openldap/openldap-2.4.38.2z/servers/slapd
    Jan 9 10:41:09 HOST slapd[14123]: ldif_read_file: checksum error on "/opt/zimbra/data/ldap/config/cn=config/olcDatabase={0}config.ldif"
    Jan 9 10:41:09 HOST slapd[14124]: slapd starting

    and similar problems running zmslapcat:

    52cf2d38 ldif_read_file: checksum error on "/opt/zimbra/data/ldap/config/cn=config/olcDatabase={0}config.ldif"

    quanah: Could you please verify that this is not a problem, or even better could you state the ldapmodify command to fix the probem.

    A would also very much appreciate a short note or reference on what causes the checksum error, if you have the time.

    regards p4th

  5. #5
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,285
    Rep Power
    10

    Default

    This is not a problem. You can make it go away with a simple modification to make it recalculate the CRC. For example:

    Code:
    ldapmodify -x -H ldapi:/// -D cn=config -W
    dn: olcDatabase={0}config,cn=config
    changetype:modify
    replace: olcMaxDerefDepth
    olcMaxDerefDepth: 15
    followed by a control-D. You will be prompted to provide the ldap_root_password value from localconfig
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  6. #6
    Join Date
    Jul 2009
    Posts
    7
    Rep Power
    6

    Default

    Quote Originally Posted by quanah View Post
    This is not a problem. You can make it go away with a simple modification to make it recalculate the CRC. For example:

    Code:
    ldapmodify -x -H ldapi:/// -D cn=config -W
    dn: olcDatabase={0}config,cn=config
    changetype:modify
    replace: olcMaxDerefDepth
    olcMaxDerefDepth: 15
    followed by a control-D. You will be prompted to provide the ldap_root_password value from localconfig
    Thanks a lot. Your solution appears to have solved the problem.

    A couple of minor clarifications on things I was unsure of:

    1. I ran the command while Zimbra was running.
    2. I ran the command as the zimbra user.
    3. The ldap_root_password can be obtained by running: zmlocalconfig -s -m nokey ldap_root_password (as the zimbra user).

    regards

    p4th

Similar Threads

  1. Import LDIF to ZCS
    By sysuser in forum Administrators
    Replies: 5
    Last Post: 06-12-2013, 09:06 AM
  2. Export ldap to ldif in Zimbra 6
    By openlog in forum Administrators
    Replies: 4
    Last Post: 01-20-2012, 10:52 PM
  3. Export ldap to ldif in Zimbra 6
    By openlog in forum Migration
    Replies: 0
    Last Post: 01-12-2012, 03:47 AM
  4. Import Zimbra ldif to edirectory
    By ghanedan in forum Administrators
    Replies: 1
    Last Post: 11-21-2010, 03:52 PM
  5. [SOLVED] import ldap ldif into new Zimbra 6
    By fdezmichael in forum Administrators
    Replies: 1
    Last Post: 12-02-2009, 08:30 AM

Posting Permissions

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