• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.0
    • rhel-9.2.0
    • 389-ds-base
    • None
    • 389-ds-base-3.0.6-1.el10
    • No
    • Moderate
    • ZStream
    • rhel-sst-idm-ds
    • ssg_idm
    • 0
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Approved Blocker
    • None

      This is a clone from https://github.com/389ds/389-ds-base/issues/6386

      Issue Description

      Unable to restore a backup using a build made from the main branch using "bdb"

      Reproduce:

      • Create DS instance using BDB
      • Setup replication and do some mods --> not sure if this is necessary
      • Stop the server
      • Take a backup: dsctl INSTANCE db2bak my_backup
      • Start server and run cleanallruv task --> not sure if this is necessary
      • Stop the server
      • Restore the backup: dsctl INSTANCE bak2db my_backup
      • Fails:
      ...
      ...
      [29/Oct/2024:08:32:44.705446704 -0400] - INFO - bdb_copy_directory - Restoring file 15 (/var/lib/dirsrv/slapd-localhost/db/userroot/entryUUID.db)
      [29/Oct/2024:08:32:44.711564524 -0400] - INFO - bdb_copyfile - Copying /var/lib/dirsrv/slapd-localhost/bak/clean_changelog/userroot/entryUUID.db to /var/lib/dirsrv/slapd-localhost/db/userroot/entryUUID.db
      [29/Oct/2024:08:32:44.717787591 -0400] - INFO - bdb_copy_directory - Restoring file 16 (/var/lib/dirsrv/slapd-localhost/db/userroot/replication_changelog.db)
      [29/Oct/2024:08:32:44.723992505 -0400] - INFO - bdb_copyfile - Copying /var/lib/dirsrv/slapd-localhost/bak/clean_changelog/userroot/replication_changelog.db to /var/lib/dirsrv/slapd-localhost/db/userroot/replication_changelog.db
      [29/Oct/2024:08:32:44.971451666 -0400] - INFO - bdb_restore - Restoring file 17 (/var/lib/dirsrv/slapd-localhost/db/log.0000000431)
      [29/Oct/2024:08:32:44.987012298 -0400] - INFO - bdb_copyfile - Copying /var/lib/dirsrv/slapd-localhost/bak/clean_changelog/log.0000000431 to /var/lib/dirsrv/slapd-localhost/db/log.0000000431
      [29/Oct/2024:08:32:44.997596558 -0400] - INFO - bdb_restore - Restoring file 18 (/dev/shm/slapd-localhost/DBVERSION)
      [29/Oct/2024:08:32:45.004125465 -0400] - INFO - bdb_copyfile - Copying /var/lib/dirsrv/slapd-localhost/bak/clean_changelog/DBVERSION to /dev/shm/slapd-localhost/DBVERSION
      [29/Oct/2024:08:32:45.713041942 -0400] - ERR - libdb - BDB1522 Log file corrupt at LSN: [84][753434]
      [29/Oct/2024:08:32:45.720632303 -0400] - ERR - libdb - BDB0061 PANIC: Invalid argument
      [29/Oct/2024:08:32:45.764186629 -0400] - ERR - libdb - BDB1546 unable to join the environment
      [29/Oct/2024:08:32:45.879122840 -0400] - CRIT - bdb_start - Database Recovery Process FAILED. The database is not recoverable. err=-30973: Unexpected dbimpl error code
      [29/Oct/2024:08:32:45.894651467 -0400] - CRIT - bdb_start - Please make sure there is enough disk space for dbcache (1610612736 bytes) and db region files
      [29/Oct/2024:08:32:45.901162398 -0400] - ERR - bdb_restore - Failed to init database
      [29/Oct/2024:08:32:45.907390365 -0400] - ERR - ldbm_back_archive2ldbm - 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=-30973 (Unexpected dbimpl error code)
      

              idm-ds-dev-bugs IdM DS Dev
              vashirov@redhat.com Viktor Ashirov
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: