Hi all, I am now trying to use the bak2db.pl script in an effort to restore a backup as follows, and receive the error below. Can anyone point out what I am doing wrong? (I had to manually hack the bak2db.pl script to change the host to localhost, the script blindly assumes the box is accessible on port 389 when it is not) [root@joey ~]# /usr/lib64/dirsrv/slapd-serverc/bak2db.pl -v -D "cn=Directory Manager" -j /etc/dirsrv/slapd-serverc.secret -a /tmp/replicate/userRoot/ -n userRoot ldap_initialize( ldap://localhost:389 ) add objectclass: top extensibleObject add cn: restore_2014_5_5_15_14_40 add nsInstance: userRoot add nsArchiveDir: /tmp/replicate/userRoot/ add nsDatabaseType: ldbm database adding new entry "cn=restore_2014_5_5_15_14_40, cn=restore, cn=tasks, cn=config" modify complete So far so good. In the logfile: [05/May/2014:15:14:39 +0200] - Beginning restore to 'ldbm database' [05/May/2014:15:14:39 +0200] - Warning: Unable to read dbversion file in /tmp/replicate/userRoot [05/May/2014:15:14:39 +0200] - Bringing userRoot offline... [05/May/2014:15:14:39 +0200] NSMMReplicationPlugin - multimaster_be_state_change: replica o=wired,c=za is going offline; disabling replication [05/May/2014:15:14:40 +0200] - Waiting for 4 database threads to stop [05/May/2014:15:14:41 +0200] - All database threads now stopped [05/May/2014:15:14:41 +0200] - Restore: backup directory /tmp/replicate/userRoot does not exist. [05/May/2014:15:14:41 +0200] - archive2db: Failed to read backup file set. Either the directory specified doesn't exist, or it exists but doesn't contain a valid backup set, or file permissions prevent the server reading the backup set. error=53 (Invalid request descriptor) [05/May/2014:15:14:41 +0200] NSMMReplicationPlugin - multimaster_be_state_change: replica o=wired,c=za is coming online; enabling replication [05/May/2014:15:14:41 +0200] - Restore finished. Yes, the directory does exist: [root@joey ~]# ls -al /tmp/replicate/userRoot total 239624 drwx------. 2 nobody nobody 4096 May 5 12:08 . drwx------. 4 nobody nobody 4096 May 5 12:08 .. -rw-------. 1 nobody nobody 49 May 5 12:08 DBVERSION -rw-------. 1 nobody nobody 16384 May 5 12:08 aci.db4 -rw-------. 1 nobody nobody 2482176 May 5 12:08 ancestorid.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 associatedDomain.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 certificateUUID.db4 -rw-------. 1 nobody nobody 24117248 May 5 12:08 cn.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 contractClass.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 contractCustomerCounterparty.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 contractRecipientCounterparty.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 contractVendorCounterparty.db4 -rw-------. 1 nobody nobody 22487040 May 5 12:08 entryrdn.db4 -rw-------. 1 nobody nobody 5316608 May 5 12:08 givenName.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 hushkeyAddress.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 hushkeyReference.db4 -rw-------. 1 nobody nobody 159891456 May 5 12:08 id2entry.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 ipHostNumber.db4 -rw-------. 1 nobody nobody 11468800 May 5 12:08 mail.db4 -rw-------. 1 nobody nobody 40960 May 5 12:08 mailAlternateAddress.db4 -rw-------. 1 nobody nobody 24576 May 5 12:08 mailHost.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 memberCertificateIssuerDN.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 memberCertificateSubjectDN.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 nscpEntryDN.db4 -rw-------. 1 nobody nobody 6430720 May 5 12:08 nsuniqueid.db4 -rw-------. 1 nobody nobody 24576 May 5 12:08 numsubordinates.db4 -rw-------. 1 nobody nobody 2473984 May 5 12:08 objectclass.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 owner.db4 -rw-------. 1 nobody nobody 802816 May 5 12:08 parentid.db4 -rw-------. 1 nobody nobody 5308416 May 5 12:08 sn.db4 -rw-------. 1 nobody nobody 16384 May 5 12:08 uid.db4 -rw-------. 1 nobody nobody 4243456 May 5 12:08 uniquemember.db4 Anyone see any reason why this wouldn't work? Regards, Graham -- -- 389 users mailing list 389-users@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/389-users