Bug 2444400 - dblib bdb2mdb fails on F43 -> F43 upgrade
Summary: dblib bdb2mdb fails on F43 -> F43 upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: 389-ds-base
Version: 43
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Viktor Ashirov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-03-04 15:20 UTC by Ian Kumlien
Modified: 2026-03-22 01:08 UTC (History)
6 users (show)

Fixed In Version: 389-ds-base-3.1.4-9.fc43 389-ds-base-3.1.4-6.fc42
Clone Of:
Environment:
Last Closed: 2026-03-22 00:53:25 UTC
Type: Bug
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)
coredump (1.52 MB, application/octet-stream)
2026-03-04 15:42 UTC, Ian Kumlien
no flags Details
proposed patch (987 bytes, patch)
2026-03-04 17:12 UTC, Viktor Ashirov
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 7302 0 None open dblib bdb2mdb fails on F43 -> F43 upgrade 2026-03-04 17:42:22 UTC
Red Hat Issue Tracker FC-3285 0 None None None 2026-03-04 15:25:32 UTC

Description Ian Kumlien 2026-03-04 15:20:34 UTC
Description of problem:
389-ds-base has to be bumped to fix issue #7144, which prevents users from updating the 389-ds backend - which was deprecated in fedora 43.

Without this fix:
https://github.com/389ds/389-ds-base/commit/afffed9ede9fa729a26f482767f0f837faf8323f

It will just segfault and you can't update.

Version-Release number of selected component (if applicable):
3.1.4

How reproducible:
100%

Steps to Reproduce:
1. install freeipa on fedora 42 or ealier
2. upgrade to 43
3. freeipa can't update or run

Actual results:
segfault

Expected results:
working

Additional info:
FreeIPA is completely dependent on this working.

Comment 1 Viktor Ashirov 2026-03-04 15:32:48 UTC
Hi,
afffed9ede9fa729a26f482767f0f837faf8323f is included in 3.1.4, so likely you're hitting another issue.
Could you please share coredump that you mentioned in https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahosted.org/thread/UC475ZVS5JQK3QJEBIVJSWQFLZONOUM4/ ? 

Thanks.

Comment 2 Ian Kumlien 2026-03-04 15:42:11 UTC
Created attachment 2132035 [details]
coredump

Comment 3 Ian Kumlien 2026-03-04 15:44:26 UTC
Had to get dns working, the trace from abrt shows:
#0  0x00007fedb275ff66 in bdb_get_page_count (db=<optimized out>, count=count@entry=0x560ec3689b68) at ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:1795
1795	    *count = rc ? 0 : stats->bt_pagecnt;

Thread 1 (Thread 0x7fedb582bc80 (LWP 1574)):
#0  0x00007fedb275ff66 in bdb_get_page_count (db=<optimized out>, count=count@entry=0x560ec3689b68) at ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:1795
        stats = 0x0
        rc = 0
#1  0x00007fedb276036d in bdb_get_inst_page_count (li=<optimized out>, inst=0x560ec3689970) at ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:1876
        return_value = 0
        id2entry_file = 0x0
        inst_dirp = 0x7ffce194b9a0 "/var/lib/dirsrv/slapd-XERCES-LAN/db/userRoot"
        mypEnv = 0x560ec3930270
        open_flags = 16384
        id2entry_db = 0x560ec3921cb0
        priv = 0x560ec356e2d0
        inst_dir = "/var/lib/dirsrv/slapd-XERCES-LAN/db/userRoot", '\000' <repeats 4036 times>...
        conf = 0x560ec3657f20
        data_directories = {0x560ec38db3d0 "/var/lib/dirsrv/slapd-XERCES-LAN/db", 0x0}
        cachesize = 33554432

Comment 4 Viktor Ashirov 2026-03-04 17:12:50 UTC
Created attachment 2132037 [details]
proposed patch

I've built a new version of 389-ds-base with the attached patch: https://copr.fedorainfracloud.org/coprs/vashirov/bz2444400/

Could you please try it and see if it helps?
Thanks.

Comment 6 Ian Kumlien 2026-03-04 21:50:49 UTC
dsctl slapd-XERCES-LAN dblib bdb2mdb
cleanup dbmapdir=/var/lib/dirsrv/slapd-XERCES-LAN/db dbhome=/dev/shm/slapd-XERCES-LAN dblib=bdb
Required space for LDIF files is about 17.0 MB
Required space for DBMAP files is about 41.4 MB
Required number of dbi is 256
Backends exportation 0.000000% (changelog)
ldiffile: /var/lib/dirsrv/slapd-XERCES-LAN/ldif/__dblib-changelog.ldif
Backends exportation 0.634202% (ipaca)
ldiffile: /var/lib/dirsrv/slapd-XERCES-LAN/ldif/__dblib-ipaca.ldif
Exporting changelog /var/lib/dirsrv/slapd-XERCES-LAN/db/ipaca/replication_changelog.db to /var/lib/dirsrv/slapd-XERCES-LAN/ldif/__dblib-ipaca.cl5.dbtxt
Backends exportation 20.611552% (userroot)
ldiffile: /var/lib/dirsrv/slapd-XERCES-LAN/ldif/__dblib-userroot.ldif
Exporting changelog /var/lib/dirsrv/slapd-XERCES-LAN/db/userRoot/replication_changelog.db to /var/lib/dirsrv/slapd-XERCES-LAN/ldif/__dblib-userroot.cl5.dbtxt
Backends exportation 100%
Updating dse.ldif file
Backends importation 0.000000% (changelog)
Backends importation 0.634202% (ipaca)
Importing changelog /var/lib/dirsrv/slapd-XERCES-LAN/db/ipaca/replication_changelog.db from /var/lib/dirsrv/slapd-XERCES-LAN/ldif/__dblib-ipaca.cl5.dbtxt
Backends importation 20.611552% (userroot)
Importing changelog /var/lib/dirsrv/slapd-XERCES-LAN/db/userRoot/replication_changelog.db from /var/lib/dirsrv/slapd-XERCES-LAN/ldif/__dblib-userroot.cl5.dbtxt
Backends importation 100%
Migration from Berkeley database to lmdb is done.

**YAY**

Ran ipa-server-upgrade and now it's up and running! so yes,that seems to have done the trick!

Comment 7 Ian Kumlien 2026-03-05 14:27:02 UTC
Saved a second instance of freeipa on another system as well, so thanks again!

Comment 8 Fedora Update System 2026-03-06 17:16:09 UTC
FEDORA-2026-8f6f3916ee (389-ds-base-3.1.4-6.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-8f6f3916ee

Comment 9 Fedora Update System 2026-03-06 17:16:10 UTC
FEDORA-2026-4455337d8e (389-ds-base-3.1.4-9.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-4455337d8e

Comment 10 Fedora Update System 2026-03-07 01:59:22 UTC
FEDORA-2026-8f6f3916ee has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-8f6f3916ee`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-8f6f3916ee

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2026-03-07 02:17:33 UTC
FEDORA-2026-4455337d8e has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-4455337d8e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-4455337d8e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2026-03-22 00:53:25 UTC
FEDORA-2026-4455337d8e (389-ds-base-3.1.4-9.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2026-03-22 01:08:36 UTC
FEDORA-2026-8f6f3916ee (389-ds-base-3.1.4-6.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.