#9526 ipa-restore fails with 'Cannot restore a data backup into an empty system'
Closed: fixed by rcritten. Opened by rcritten.

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2262860

Issue

On a clean IPA server install in Fedora rawhide (freeipa-server-4.11.1-2.fc40.x86_64) the following commands fail.

[root@server ~]# ipa-backup --data --online
Preparing backup on server.ipa.test
Local roles match globally used roles, proceeding.
Backing up userRoot in IPA-TEST to LDIF
Waiting for LDIF to finish
Backing up IPA-TEST
Waiting for BAK to finish
Backed up to /var/lib/ipa/backup/ipa-data-2024-02-05-20-02-50
The ipa-backup command was successful

[root@server ~]# ipa-restore --unattended --password Secret123 --data --online ipa-data-2024-02-05-20-02-50
Preparing restore from /var/lib/ipa/backup/ipa-data-2024-02-05-20-02-50 on server.ipa.test
Cannot restore a data backup into an empty system
The ipa-restore command failed. See /var/log/iparestore.log for more information

Seen in rawhide.


Metadata Update from @rcritten:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=2262860

A related change to ipa-backup was fixed in https://pagure.io/freeipa/issue/9516

PR https://github.com/freeipa/freeipa/pull/7217

master:

  • 3766fb98637254110db04b086299e2eefd59cca6 ipa-restore: adapt for 389-ds switch to LMDB

ipa-4-11:

  • d55a7f90343b9fd5dec7bb45ceb2c0c45916d208 ipa-restore: adapt for 389-ds switch to LMDB

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata