Periodically recently we've been seeing our IPA 389 servers complain about running out of locks. Had another spate last night:
[05/Oct/2026:23:59:01.213763242 -0600] - NOTICE - bdb_compact - Compacting DB start: userRoot [05/Oct/2026:23:59:01.230473177 -0600] - NOTICE - bdb_do_compact - Compacting databases ... [05/Oct/2026:23:59:01.232221019 -0600] - NOTICE - bdb_do_compact - Compacting DB: userRoot [05/Oct/2026:23:59:01.298726798 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact userRoot - 6 pages freed [05/Oct/2026:23:59:01.317889617 -0600] - NOTICE - bdb_do_compact - Compacting Replication Changelog: userRoot [05/Oct/2026:23:59:36.485232209 -0600] - CRIT - ldbm_back_next_search_entry - DB locks threshold is reached (nsslapd-db-locks-monitoring-threshold under cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks according to your needs. [05/Oct/2026:23:59:36.521600710 -0600] - CRIT - ldbm_back_next_search_entry - DB locks threshold is reached (nsslapd-db-locks-monitoring-threshold under cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks according to your needs. [05/Oct/2026:23:59:36.525528105 -0600] - ERR - ids_sasl_check_bind - sasl bind failed mech=GSSAPI (conn=98639): SASL(-14): authorization failure: [05/Oct/2026:23:59:37.253791042 -0600] - ERR - libdb - BDB2055 Lock table is out of available lock entries ... LOTS OF THESE ... [06/Oct/2026:00:02:21.091563310 -0600] - CRIT - ldbm_back_next_search_entry - DB locks threshold is reached (nsslapd-db-locks -monitoring-threshold under cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks accord ing to your needs. [06/Oct/2026:00:02:21.093369230 -0600] - CRIT - ldbm_back_next_search_entry - DB locks threshold is reached (nsslapd-db-locks-monitoring-threshold under cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks according to your needs. [06/Oct/2026:00:02:21.213832955 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact ipaca - 0 pages freed [06/Oct/2026:00:02:21.215728292 -0600] - NOTICE - bdb_do_compact - Compacting Replication Changelog: ipaca [06/Oct/2026:00:02:21.232152622 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact ipaca - 0 pages freed [06/Oct/2026:00:02:21.234640647 -0600] - NOTICE - bdb_do_compact - Compacting DB: changelog [06/Oct/2026:00:02:21.236521659 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact changelog - 0 pages freed [06/Oct/2026:00:02:21.237943094 -0600] - NOTICE - bdb_do_compact - Compacting Replication Changelog: changelog [06/Oct/2026:00:02:21.239425345 -0600] - NOTICE - bdb_do_compact - Compacting databases finished. [06/Oct/2026:00:02:21.320132067 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:24.400447933 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:27.477384978 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:29.551874750 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:32.638543912 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:35.718848659 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:38.799295444 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:41.885263951 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:44.969278524 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:45.899692476 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-bld02.cora.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:48.047058127 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:51.120265022 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:59:37.359032617 -0600] - ERR - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389) - Replication bind with GSSAPI auth failed: LDAP error 49 (Invalid credentials) () [06/Oct/2026:01:00:00.894556979 -0600] - ERR - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389) - Replication bind with GSSAPI auth failed: LDAP error 49 (Invalid credentials) () [06/Oct/2026:01:01:10.504556658 -0600] - INFO - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389): Replication bind with GSSAPI auth resumed [06/Oct/2026:01:01:10.648779773 -0600] - ERR - NSMMReplicationPlugin - acquire_replica - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389): Unable to acquire replica: permission denied. The bind dn "" does not have permission to supply replication updates to the replica. Will retry later. [06/Oct/2026:01:02:46.634739364 -0600] - ERR - NSMMReplicationPlugin - acquire_replica - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389): Unable to acquire replica: permission denied. The bind dn "" does not have permission to supply replication updates to the replica. Will retry later. [06/Oct/2026:01:03:10.354185538 -0600] - INFO - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389): Replication bind with GSSAPI auth resumed [06/Oct/2026:01:03:10.493468730 -0600] - ERR - NSMMReplicationPlugin - acquire_replica - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389): Unable to acquire replica: permission denied. The bind dn "" does not have permission to supply replication updates to the replica. Will retry later.
Lock table maximum is 150000.
389-ds-base-2.8.0-10.el9_8.x86_64
Any idea what is causing this or how to prevent it?
On 10/6/26 17:05, Orion Poplawski via FreeIPA-users wrote:
Periodically recently we've been seeing our IPA 389 servers complain about running out of locks. Had another spate last night:
[05/Oct/2026:23:59:01.213763242 -0600] - NOTICE - bdb_compact - Compacting DB start: userRoot [05/Oct/2026:23:59:01.230473177 -0600] - NOTICE - bdb_do_compact - Compacting databases ... [05/Oct/2026:23:59:01.232221019 -0600] - NOTICE - bdb_do_compact - Compacting DB: userRoot [05/Oct/2026:23:59:01.298726798 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact userRoot - 6 pages freed [05/Oct/2026:23:59:01.317889617 -0600] - NOTICE - bdb_do_compact - Compacting Replication Changelog: userRoot [05/Oct/2026:23:59:36.485232209 -0600] - CRIT - ldbm_back_next_search_entry - DB locks threshold is reached (nsslapd-db-locks-monitoring-threshold under cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks according to your needs. [05/Oct/2026:23:59:36.521600710 -0600] - CRIT - ldbm_back_next_search_entry - DB locks threshold is reached (nsslapd-db-locks-monitoring-threshold under cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks according to your needs. [05/Oct/2026:23:59:36.525528105 -0600] - ERR - ids_sasl_check_bind - sasl bind failed mech=GSSAPI (conn=98639): SASL(-14): authorization failure: [05/Oct/2026:23:59:37.253791042 -0600] - ERR - libdb - BDB2055 Lock table is out of available lock entries ... LOTS OF THESE ... [06/Oct/2026:00:02:21.091563310 -0600] - CRIT - ldbm_back_next_search_entry - DB locks threshold is reached (nsslapd-db-locks -monitoring-threshold under cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks accord ing to your needs. [06/Oct/2026:00:02:21.093369230 -0600] - CRIT - ldbm_back_next_search_entry - DB locks threshold is reached (nsslapd-db-locks-monitoring-threshold under cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks according to your needs. [06/Oct/2026:00:02:21.213832955 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact ipaca - 0 pages freed [06/Oct/2026:00:02:21.215728292 -0600] - NOTICE - bdb_do_compact - Compacting Replication Changelog: ipaca [06/Oct/2026:00:02:21.232152622 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact ipaca - 0 pages freed [06/Oct/2026:00:02:21.234640647 -0600] - NOTICE - bdb_do_compact - Compacting DB: changelog [06/Oct/2026:00:02:21.236521659 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact changelog - 0 pages freed [06/Oct/2026:00:02:21.237943094 -0600] - NOTICE - bdb_do_compact - Compacting Replication Changelog: changelog [06/Oct/2026:00:02:21.239425345 -0600] - NOTICE - bdb_do_compact - Compacting databases finished. [06/Oct/2026:00:02:21.320132067 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:24.400447933 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:27.477384978 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:29.551874750 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:32.638543912 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:35.718848659 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:38.799295444 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:41.885263951 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:44.969278524 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:45.899692476 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-bld02.cora.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:48.047058127 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:02:51.120265022 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com,cn=services,cn=accounts,dc=nwra,dc=com to perform replication extended operation [06/Oct/2026:00:59:37.359032617 -0600] - ERR - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389) - Replication bind with GSSAPI auth failed: LDAP error 49 (Invalid credentials) () [06/Oct/2026:01:00:00.894556979 -0600] - ERR - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389) - Replication bind with GSSAPI auth failed: LDAP error 49 (Invalid credentials) () [06/Oct/2026:01:01:10.504556658 -0600] - INFO - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389): Replication bind with GSSAPI auth resumed [06/Oct/2026:01:01:10.648779773 -0600] - ERR - NSMMReplicationPlugin - acquire_replica - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389): Unable to acquire replica: permission denied. The bind dn "" does not have permission to supply replication updates to the replica. Will retry later. [06/Oct/2026:01:02:46.634739364 -0600] - ERR - NSMMReplicationPlugin - acquire_replica - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389): Unable to acquire replica: permission denied. The bind dn "" does not have permission to supply replication updates to the replica. Will retry later. [06/Oct/2026:01:03:10.354185538 -0600] - INFO - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389): Replication bind with GSSAPI auth resumed [06/Oct/2026:01:03:10.493468730 -0600] - ERR - NSMMReplicationPlugin - acquire_replica - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com" (ipa-sea01:389): Unable to acquire replica: permission denied. The bind dn "" does not have permission to supply replication updates to the replica. Will retry later.
Lock table maximum is 150000.
389-ds-base-2.8.0-10.el9_8.x86_64
Any idea what is causing this or how to prevent it?
nsslapd-db-locks: 150000 nsslapd-serial-lock: on nsslapd-db-deadlock-policy: 9 nsslapd-db-locks-monitoring-enabled: on nsslapd-db-locks-monitoring-threshold: 90 nsslapd-db-locks-monitoring-pause: 500 nsslapd-db-deadlock-rate: 0 nsslapd-db-lock-conflicts: 4801 nsslapd-db-lock-region-wait-rate: 14669 nsslapd-db-lock-request-rate: 55859228944 nsslapd-db-lockers: 178 nsslapd-db-configured-locks: 150000 nsslapd-db-current-locks: 133 nsslapd-db-max-locks: 150008 nsslapd-db-current-lock-objects: 133 nsslapd-db-max-lock-objects: 147432
According to https://access.redhat.com/solutions/3217591 the theoretical max is 52485792 but the article generally seems to think that 100000 is plenty. Why isn't 150000 enough?
Hi,
On Wed, Oct 7, 2026 at 1:13 AM Orion Poplawski via FreeIPA-users < freeipa-users@lists.fedorahosted.org> wrote:
On 10/6/26 17:05, Orion Poplawski via FreeIPA-users wrote:
Periodically recently we've been seeing our IPA 389 servers complain
about
running out of locks. Had another spate last night:
[05/Oct/2026:23:59:01.213763242 -0600] - NOTICE - bdb_compact -
Compacting DB
start: userRoot [05/Oct/2026:23:59:01.230473177 -0600] - NOTICE - bdb_do_compact -
Compacting
databases ... [05/Oct/2026:23:59:01.232221019 -0600] - NOTICE - bdb_do_compact -
Compacting
DB: userRoot [05/Oct/2026:23:59:01.298726798 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact userRoot - 6 pages freed [05/Oct/2026:23:59:01.317889617 -0600] - NOTICE - bdb_do_compact -
Compacting
Replication Changelog: userRoot [05/Oct/2026:23:59:36.485232209 -0600] - CRIT -
ldbm_back_next_search_entry -
DB locks threshold is reached (nsslapd-db-locks-monitoring-threshold
under
cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks according to your needs. [05/Oct/2026:23:59:36.521600710 -0600] - CRIT -
ldbm_back_next_search_entry -
DB locks threshold is reached (nsslapd-db-locks-monitoring-threshold
under
cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks according to your needs. [05/Oct/2026:23:59:36.525528105 -0600] - ERR - ids_sasl_check_bind -
sasl bind
failed mech=GSSAPI (conn=98639): SASL(-14): authorization failure: [05/Oct/2026:23:59:37.253791042 -0600] - ERR - libdb - BDB2055 Lock
table is
out of available lock entries ... LOTS OF THESE ... [06/Oct/2026:00:02:21.091563310 -0600] - CRIT -
ldbm_back_next_search_entry -
DB locks threshold is reached (nsslapd-db-locks -monitoring-threshold under cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks accord ing to your needs. [06/Oct/2026:00:02:21.093369230 -0600] - CRIT -
ldbm_back_next_search_entry -
DB locks threshold is reached (nsslapd-db-locks-monitoring-threshold
under
cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config). Please, increase nsslapd-db-locks according to your needs. [06/Oct/2026:00:02:21.213832955 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact ipaca - 0 pages freed [06/Oct/2026:00:02:21.215728292 -0600] - NOTICE - bdb_do_compact -
Compacting
Replication Changelog: ipaca [06/Oct/2026:00:02:21.232152622 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact ipaca - 0 pages freed [06/Oct/2026:00:02:21.234640647 -0600] - NOTICE - bdb_do_compact -
Compacting
DB: changelog [06/Oct/2026:00:02:21.236521659 -0600] - NOTICE - bdb_db_compact_one_db - compactdb: compact changelog - 0 pages freed [06/Oct/2026:00:02:21.237943094 -0600] - NOTICE - bdb_do_compact -
Compacting
Replication Changelog: changelog [06/Oct/2026:00:02:21.239425345 -0600] - NOTICE - bdb_do_compact -
Compacting
databases finished. [06/Oct/2026:00:02:21.320132067 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:02:24.400447933 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:02:27.477384978 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:02:29.551874750 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:02:32.638543912 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:02:35.718848659 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:02:38.799295444 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:02:41.885263951 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:02:44.969278524 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:02:45.899692476 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-bld02.cora.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:02:48.047058127 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:02:51.120265022 -0600] - ERR - NSMMReplicationPlugin - check_replica_auth - Invalid binddn krbprincipalname=ldap/ipa-mry01.mry.nwra.com@nwra.com
,cn=services,cn=accounts,dc=nwra,dc=com
to perform replication extended operation [06/Oct/2026:00:59:37.359032617 -0600] - ERR - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=
ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com"
(ipa-sea01:389) - Replication bind with GSSAPI auth failed: LDAP error 49 (Invalid credentials) () [06/Oct/2026:01:00:00.894556979 -0600] - ERR - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=
ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com"
(ipa-sea01:389) - Replication bind with GSSAPI auth failed: LDAP error 49 (Invalid credentials) () [06/Oct/2026:01:01:10.504556658 -0600] - INFO - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=
ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com"
(ipa-sea01:389): Replication bind with GSSAPI auth resumed [06/Oct/2026:01:01:10.648779773 -0600] - ERR - NSMMReplicationPlugin - acquire_replica - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com
"
(ipa-sea01:389): Unable to acquire replica: permission denied. The bind
dn ""
does not have permission to supply replication updates to the replica.
Will
retry later. [06/Oct/2026:01:02:46.634739364 -0600] - ERR - NSMMReplicationPlugin - acquire_replica - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com
"
(ipa-sea01:389): Unable to acquire replica: permission denied. The bind
dn ""
does not have permission to supply replication updates to the replica.
Will
retry later. [06/Oct/2026:01:03:10.354185538 -0600] - INFO - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=
ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com"
(ipa-sea01:389): Replication bind with GSSAPI auth resumed [06/Oct/2026:01:03:10.493468730 -0600] - ERR - NSMMReplicationPlugin - acquire_replica - agmt="cn=ipa-bld01.cora.nwra.com-to-ipa-sea01.nwra.com
"
(ipa-sea01:389): Unable to acquire replica: permission denied. The bind
dn ""
does not have permission to supply replication updates to the replica.
Will
retry later.
Lock table maximum is 150000.
389-ds-base-2.8.0-10.el9_8.x86_64
Any idea what is causing this or how to prevent it?
nsslapd-db-locks: 150000 nsslapd-serial-lock: on nsslapd-db-deadlock-policy: 9 nsslapd-db-locks-monitoring-enabled: on nsslapd-db-locks-monitoring-threshold: 90 nsslapd-db-locks-monitoring-pause: 500 nsslapd-db-deadlock-rate: 0 nsslapd-db-lock-conflicts: 4801 nsslapd-db-lock-region-wait-rate: 14669 nsslapd-db-lock-request-rate: 55859228944 nsslapd-db-lockers: 178 nsslapd-db-configured-locks: 150000 nsslapd-db-current-locks: 133 nsslapd-db-max-locks: 150008 nsslapd-db-current-lock-objects: 133 nsslapd-db-max-lock-objects: 147432
According to https://access.redhat.com/solutions/3217591 the theoretical max is 52485792 but the article generally seems to think that 100000 is plenty.
Why isn't 150000 enough?
Theoretical max is 4294967295. 52485792 is the value you calculated by using nsslapd-db-max-lock-objects * nsslapd-db-lockers * 2. The article was written for older versions of 389-ds-base, so 100000 might have been sufficient previously. But recent versions of 389-ds-base contain fixes for cursor corruption and crash race that can contribute to the increased lock use.
Please try with 52485792 and see if it helps.
Thanks,
On 10/7/26 03:17, Viktor Ashirov wrote:
Hi,
On Wed, Oct 7, 2026 at 1:13 AM Orion Poplawski via FreeIPA-users <freeipa- users@lists.fedorahosted.org mailto:freeipa-users@lists.fedorahosted.org> wrote:
On 10/6/26 17:05, Orion Poplawski via FreeIPA-users wrote: > Lock table maximum is 150000. > > 389-ds-base-2.8.0-10.el9_8.x86_64 > > > Any idea what is causing this or how to prevent it? > nsslapd-db-locks: 150000 nsslapd-serial-lock: on nsslapd-db-deadlock-policy: 9 nsslapd-db-locks-monitoring-enabled: on nsslapd-db-locks-monitoring-threshold: 90 nsslapd-db-locks-monitoring-pause: 500 nsslapd-db-deadlock-rate: 0 nsslapd-db-lock-conflicts: 4801 nsslapd-db-lock-region-wait-rate: 14669 nsslapd-db-lock-request-rate: 55859228944 nsslapd-db-lockers: 178 nsslapd-db-configured-locks: 150000 nsslapd-db-current-locks: 133 nsslapd-db-max-locks: 150008 nsslapd-db-current-lock-objects: 133 nsslapd-db-max-lock-objects: 147432 According to https://access.redhat.com/solutions/3217591 <https:// access.redhat.com/solutions/3217591> the theoretical max is 52485792 but the article generally seems to think that 100000 is plenty. Why isn't 150000 enough?Theoretical max is 4294967295. 52485792 is the value you calculated by using nsslapd-db-max-lock-objects * nsslapd-db-lockers * 2. The article was written for older versions of 389-ds-base, so 100000 might have been sufficient previously. But recent versions of 389-ds-base contain fixes for cursor corruption and crash race that can contribute to the increased lock use.
Please try with 52485792 and see if it helps.
Will do. But is there any point in having a max-locks parameter if one simply is expected to keep increasing it as necessary?
On 10/7/26 09:32, Orion Poplawski via FreeIPA-users wrote:
On 10/7/26 03:17, Viktor Ashirov wrote:
Hi,
On Wed, Oct 7, 2026 at 1:13 AM Orion Poplawski via FreeIPA-users <freeipa- users@lists.fedorahosted.org mailto:freeipa-users@lists.fedorahosted.org> wrote:
On 10/6/26 17:05, Orion Poplawski via FreeIPA-users wrote: > Lock table maximum is 150000. > > 389-ds-base-2.8.0-10.el9_8.x86_64 > > > Any idea what is causing this or how to prevent it? > nsslapd-db-locks: 150000 nsslapd-serial-lock: on nsslapd-db-deadlock-policy: 9 nsslapd-db-locks-monitoring-enabled: on nsslapd-db-locks-monitoring-threshold: 90 nsslapd-db-locks-monitoring-pause: 500 nsslapd-db-deadlock-rate: 0 nsslapd-db-lock-conflicts: 4801 nsslapd-db-lock-region-wait-rate: 14669 nsslapd-db-lock-request-rate: 55859228944 nsslapd-db-lockers: 178 nsslapd-db-configured-locks: 150000 nsslapd-db-current-locks: 133 nsslapd-db-max-locks: 150008 nsslapd-db-current-lock-objects: 133 nsslapd-db-max-lock-objects: 147432 According to https://access.redhat.com/solutions/3217591 <https:// access.redhat.com/solutions/3217591> the theoretical max is 52485792 but the article generally seems to think that 100000 is plenty. Why isn't 150000 enough?Theoretical max is 4294967295. 52485792 is the value you calculated by using nsslapd-db-max-lock-objects * nsslapd-db-lockers * 2. The article was written for older versions of 389-ds-base, so 100000 might have been sufficient previously. But recent versions of 389-ds-base contain fixes for cursor corruption and crash race that can contribute to the increased lock use.
Please try with 52485792 and see if it helps.
Will do. But is there any point in having a max-locks parameter if one simply is expected to keep increasing it as necessary?
I think I have found my answer. Looks like each lock requires space in /dev/shm. With 52485792 it filled that filesystem. I backed off to 500000 and it's using:
Filesystem Size Used Avail Use% Mounted on tmpfs 1.8G 662M 1.1G 38% /dev/shm
So I guess I could still go a bit above 1 million, but I think I will try this for a while. But I guess the message is still just keep throwing resources at it until it stops breaking?
freeipa-users@lists.fedorahosted.org