I can reproduce this; I get a failed slapd upgrade from Squeeze to Wheezy. For some reason slapcat is never run and the .ldif file is never created. Then load_databases() is run and tries to access a file that doesn't exist.
> chiestand@sagan:/tmp/openldap-2.4.31/debian$ sudo dpkg --configure -a > Setting up slapd (2.4.31-1) ... > Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.23-7.3... done. > Moving old database directories to /var/backups: > - directory dc=aa,dc=bb,dc=cc... done. > Loading from /var/backups/slapd-2.4.23-7.3: > - directory dc=aa,dc=bb,dc=cc... failed. > > Loading the database from the LDIF dump failed with the following > error while running slapadd: > /var/backups/slapd-2.4.23-7.3/dc=aa,dc=bb,dc=cc.ldif: No such file or > directory > dpkg: error processing slapd (--configure): > subprocess installed post-installation script returned error exit status 1 > Errors were encountered while processing: > slapd -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org