Home Forums OS X Server and Client Discussion Open Directory Backup/restoring archives

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #365837
    Commander Keen
    Participant

    Hello,

    While using the archive function in serveradmin (which actually is based on slapconfig -backupdb), and afterwards trying to restore from that archive, I get some errors, the restore seems to be working fine though.

    Still, I’d like to know where these errors come from:
    As you can see below, first there is this authentication error in hdiutil. Strange, cause it seems to get trough it after all.

    hdiutil: attach failed – Authentication error

    Second and worse:
    at the end I’m getting this error:

    2006-03-28 11:55:35 +0200 – Error: command failed with exit code 256: /usr/sbin/slapadd -c -l

    while merging the ldap DB

    Anyone any ideas?

    Thanks

    2006-03-28 11:55:27 +0200 – slapconfig -mergedb
    2006-03-28 11:55:27 +0200 – command: /usr/bin/hdiutil attach -stdinpass /Archives/budb-20060328.sparseimage -readonly
    2006-03-28 11:55:28 +0200 – hdiutil command output:
    hdiutil: attach failed – Authentication error
    2006-03-28 11:55:28 +0200 – hdiutil command failed with status 1
    2006-03-28 11:55:28 +0200 – command: /usr/bin/hdiutil attach -stdinpass /Archives/budb-20060328.sparseimage -readonly
    2006-03-28 11:55:30 +0200 – 1 Merging Kerberos database
    2006-03-28 11:55:30 +0200 – popen: cd /tmp/slapconfig_restore_stage11204LGMCTH;/usr/bin/tar xzpf /Volumes/ldap_bk/krb5backup.tar.gz, “r”
    2006-03-28 11:55:30 +0200 – Copied file from /Volumes/ldap_bk/kdb5dump.bak to /tmp/slapconfig_restore_stage11204LGMCTH/kdb5dump.bak.
    2006-03-28 11:55:30 +0200 – command: /usr/sbin/kdb5_util dump -new_mkey_file /tmp/slapconfig_restore_stage11204LGMCTH/var/db/krb5kdc/.k5.LDAP.IDEWE.BE /tmp/slapconfig_restore_stage11204LGMCTH/kdb5backup.bak
    2006-03-28 11:55:31 +0200 – Copied directory from /var/db/krb5kdc to /var/db/krb5kdc.pre-merge.
    2006-03-28 11:55:31 +0200 – command: /bin/cp /tmp/slapconfig_restore_stage11204LGMCTH/var/db/krb5kdc/.k5.LDAP.IDEWE.BE /var/db/krb5kdc/
    2006-03-28 11:55:31 +0200 – command: /usr/sbin/kdb5_util load -update /tmp/slapconfig_restore_stage11204LGMCTH/kdb5dump.bak
    2006-03-28 11:55:32 +0200 – command: /usr/sbin/kdb5_util load -update /tmp/slapconfig_restore_stage11204LGMCTH/kdb5backup.bak
    2006-03-28 11:55:33 +0200 – 2 Merging Password Server data
    2006-03-28 11:55:33 +0200 – command: /usr/sbin/mkpassdb -mergeparent /Volumes/ldap_bk/passwordserver_backup/ /Volumes/ldap_bk/id_omitfile
    2006-03-28 11:55:33 +0200 – 3 Merging LDAP database
    2006-03-28 11:55:33 +0200 – Stopping LDAP server (slapd)
    2006-03-28 11:55:34 +0200 – popen: /usr/sbin/slapadd -c -l /tmp/backup11204.ldif, “w”
    2006-03-28 11:55:35 +0200 – Error: command failed with exit code 256: /usr/sbin/slapadd -c -l /tmp/backup11204.ldif
    2006-03-28 11:55:35 +0200 – Starting LDAP server (slapd)
    2006-03-28 11:55:35 +0200 – command: /usr/bin/hdiutil detach disk4

    #369308
    wstrucke
    Participant

    bump

    having the exit code 256 problem… any ideas?

    #369463
    kainewynd2
    Participant

    [QUOTE]
    2006-03-28 11:55:35 +0200 – Error: command failed with exit code 256: /usr/sbin/slapadd -c -l /tmp/backup11204.ldif
    [/QUOTE]

    Check that ldif file if it still exists and see what it is?

    #381435
    danissimo
    Participant

    Hello,

    My OD is corrupt, LDAP Server is ‘stopped’ and I can’t add/delete users in Workgroup Manager (as admin, diradmin or root). After running the archive restore nothing changes, although I have successfully restored the same archive onto a test machine and add/remove users work on it.
    I’m getting the same “hdiutil: attach failed – Authentication error” and “Error: command failed with exit code 256:” and thought it is this that prevents the archive from being restored properly and give me the permissions back.

    Is this the case and is there a way to somehow (manually?) restore from the backup archive successfully?

    By the way this is all on the OD master. I have OD replica on which LDAP server is running, but still the add/remove users buttons in Workgroup Manager there are grayed out.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Comments are closed