AFP548 Changing the world one server at a time.

‘Archive’ in Server Admin not working

Home › Forums › OS X Server and Client Discussion › Open Directory › ‘Archive’ in Server Admin not working

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #372546
    HEMI
    Participant

    I’m in the process of getting things ready to move from 10.4 Server to 10.5 Server. We’re using OD to manage user accounts. Instead of re-adding all the accounts manually I’d really like Apple’s tools to work properly and archive the OD database, but things are not going well. The archive file name is created (followed by sparseimage), but after Server Admin gets done doing its thing there’s no actual archive anywhere.

    After poking around in the logs, I found some errors in slapconfig.log. Has anyone seen this before? Have any ideas for a fix?

    2008-05-02 18:14:28 -0500 – slapconfig -backupdb
    2008-05-02 18:14:28 -0500 – 1 Backing up LDAP database
    2008-05-02 18:14:28 -0500 – popen: /usr/sbin/slapcat -l /tmp/slapconfig_backup_stage273964MbMcT/backup.ldif, “r”
    2008-05-02 18:14:28 -0500 – popen: /bin/cp -r /etc/openldap /tmp/slapconfig_backup_stage273964MbMcT/, “r”
    2008-05-02 18:14:28 -0500 – 2 Backing up password server database
    2008-05-02 18:14:28 -0500 – popen: /usr/sbin/mkpassdb -backupdb /tmp/slapconfig_backup_stage273964MbMcT/passwordserver_backup/ > /dev/null, “r”
    2008-05-02 18:14:28 -0500 – popen: /bin/cp -r /Library/Preferences/com.apple.passwordserver.plist /tmp/slapconfig_backup_stage273964MbMcT/, “r”
    2008-05-02 18:14:28 -0500 – popen: /bin/hostname > /tmp/slapconfig_backup_stage273964MbMcT/hostname, “r”
    2008-05-02 18:14:28 -0500 – popen: /usr/sbin/sso_util info -pr /LDAPv3/127.0.0.1 > /tmp/slapconfig_backup_stage273964MbMcT/local_krb5realm, “r”
    2008-05-02 18:14:28 -0500 – 3 Backing up Kerberos database
    2008-05-02 18:14:28 -0500 – popen: /usr/sbin/mkpassdb -list > /tmp/slapconfig_backup_stage273964MbMcT/sasl-plugin-list, “r”
    2008-05-02 18:14:28 -0500 – popen: /usr/sbin/kdb5_util dump > /tmp/slapconfig_backup_stage273964MbMcT/kdb5dump.bak, “r”
    2008-05-02 18:14:28 -0500 – 4 Backing up configuration files
    2008-05-02 18:14:28 -0500 – popen: /usr/bin/tar czpf /tmp/slapconfig_backup_stage273964MbMcT/krb5backup.tar.gz /var/db/krb5kdc/kdc.conf /var/db/krb5kdc/kadm5.acl /var/db/krb5kdc/kadm5.keytab /var/db/krb5kdc/.k5.* /Library/Preferences/edu.mit.Kerberos /etc/krb5.keytab, “r”
    2008-05-02 18:14:28 -0500 – popen: /bin/cp /System/Library/LaunchDaemons/com.apple.PasswordService.xml /tmp/slapconfig_backup_stage273964MbMcT/LaunchDaemons/, “r”
    2008-05-02 18:14:28 -0500 – popen: /bin/cp /System/Library/LaunchDaemons/org.openldap.slapd.xml /tmp/slapconfig_backup_stage273964MbMcT/LaunchDaemons/, “r”
    2008-05-02 18:14:28 -0500 – 5 Backing up local NetInfo database
    2008-05-02 18:14:28 -0500 – popen: /bin/cp /System/Library/LaunchDaemons/org.openldap.slurpd.xml /tmp/slapconfig_backup_stage273964MbMcT/LaunchDaemons/, “r”
    2008-05-02 18:14:28 -0500 – popen: /bin/cp /System/Library/LaunchDaemons/com.apple.kdcmond.xml /tmp/slapconfig_backup_stage273964MbMcT/LaunchDaemons/, “r”
    2008-05-02 18:14:28 -0500 – popen: /bin/cp /System/Library/LaunchDaemons/edu.mit.kadmind.xml /tmp/slapconfig_backup_stage273964MbMcT/LaunchDaemons/, “r”
    2008-05-02 18:14:28 -0500 – popen: /bin/cp -r /Library/Preferences/DirectoryService /tmp/slapconfig_backup_stage273964MbMcT/, “r”
    2008-05-02 18:14:28 -0500 – popen: /bin/cp /etc/hostconfig /tmp/slapconfig_backup_stage273964MbMcT/, “r”
    2008-05-02 18:14:28 -0500 – popen: /usr/bin/nidump -r / . > /tmp/slapconfig_backup_stage273964MbMcT/local.dump, “r”
    2008-05-02 18:14:29 -0500 – popen: /usr/bin/tar czpf /tmp/slapconfig_backup_stage273964MbMcT/shadowbackup.tar.gz /var/db/shadow, “r”
    2008-05-02 18:14:29 -0500 – popen: /usr/bin/tar czpf /tmp/slapconfig_backup_stage273964MbMcT/sambabackup.tar.gz /var/db/samba, “r”
    2008-05-02 18:14:29 -0500 – 6 Creating archive
    2008-05-02 18:14:29 -0500 – command: /usr/bin/hdiutil create -ov -quiet -plist -puppetstrings -layout UNIVERSAL CD -fs HFS+ -volname ldap_bk -srcfolder /tmp/slapconfig_backup_stage273964MbMcT -format SPARSE /tmp/od-users
    2008-05-02 18:16:48 -0500 – hdiutil command failed with status 1
    2008-05-02 18:16:48 -0500 – Command failed with exit code 1: stdout=(null), error-message=(null)
    2008-05-02 18:16:48 -0500 – Warning: Could not set file owner on archive (errno=2)
    2008-05-02 18:16:48 -0500 – Warning: Could not set file permissions on archive (errno=2)
    2008-05-02 18:16:48 -0500 – Removed directory at path /tmp/slapconfig_backup_stage273964MbMcT.

    It dies at the hdiutil command with completely un-helpful error messages.

    I suppose worst-case scenario is I just go through the commands one by one, debugging as I go…But I’m hoping someone’s encountered this before.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.