Bugzilla – Bug 1212635
389ds: the command dsctl db2ldif fails
Last modified: 2023-08-02 11:16:29 UTC
In order to make a backup of a ds instance I run: dsctl <DSINST> stop dsctl <DSINST> db2ldif --replication userRoot and a backup file is created in /var/lib/dirsrv/slapd-<DSINST>/ldif The second command works on Leap 15.4 but it fails on Leap 15.5 with the error message: Error: expected str, bytes or os.PathLike object, not NoneType If I specify the path to the ldif output location: dsctl <DSINST> db2ldif --replication userRoot /path/to/file.ldif then the command succeeds. dsctl <DSINST> db2ldif --help shows: usage: dsctl [instance] db2ldif [-h] [--replication] [--encrypted] backend [ldif] which indicates that the ldif path is an optional parameter. Either there is a bug in the leap 15.5 version of dsctl, or the behaviour has changed and the help output had not been updated.