On Mon, Jul 13, 2026 at 11:29 AM Ben Poliakoff <benp@reed.edu> wrote:On Mon, Jul 13, 2026 at 2:34 AM Ondřej Kuzník <ondra@mistotebe.net> wrote:
>> Could you provide a little more context from the log? In particular, is
>> the entry being modified locally at the same time? When syncrepl tries
>> to update an entry, it now attaches an assert control ensuring the entry
>> still carries the entryCSN it did as it was trying to figure out what
>> changes were needed. If that failed, it's because **something** updated
>> the entry before syncrepl's change managed to land there and the assert
>> control didn't match anymore.
>
> We do, as a practice, force almost all write operations through a single
> "primary" slapd instance (slapd-a). So, in general, only syncrepl should be
> making any changes/updates to entries on the two non-primary slapd
> instances (slapd-b and slapd-c).
Sure, but a longer excerpt of the log for rid=011 might show what else
happened during the session as far as the consumer was concerned.Here's an excerpt from this morning, from one of the consumers, when this issue came up. As near as I can tell, the changes for "user-a" and "user-b" were replicated properly, but in "user-c's" case replication stopped working, and the consumer fell into a loop, which continued until I intervened (by deleting the entry for user-c on the provider, recreating it via ldapadd, and then restarting slapd on both of the consumers):Jul 13 04:25:35 slapd-c slapd[363788]: 6a54cb2f.11cb285b 0x7fe93dbfe6c0 do_syncrep2: rid=011 cookie=rid=011,sid=001,csn=20260713112535.267821Z#000000#001#000000
Jul 13 04:25:35 slapd-c slapd[363788]: 6a54cb2f.11cc71cf 0x7fe93dbfe6c0 syncrepl_message_to_entry: rid=011 DN: uid=user-a,ou=People,dc=foo,dc=bar, UUID: 1c96ac22-62f9-1027-8440-e9a9b4c99043
Jul 13 04:25:35 slapd-c slapd[363788]: 6a54cb2f.11cff8c3 0x7fe93dbfe6c0 syncrepl_entry: rid=011 LDAP_RES_SEARCH_ENTRY(LDAP_SYNC_MODIFY) csn=20260713112535.267821Z#000000#001#000000 tid 0x7fe93dbfe6c0
Jul 13 04:25:35 slapd-c slapd[363788]: 6a54cb2f.11d1566a 0x7fe93dbfe6c0 syncrepl_entry: rid=011 be_search (0)
Jul 13 04:25:35 slapd-c slapd[363788]: 6a54cb2f.11d1d463 0x7fe93dbfe6c0 syncrepl_entry: rid=011 uid=user-a,ou=People,dc=foo,dc=bar
Jul 13 04:25:35 slapd-c slapd[363788]: 6a54cb2f.150bdf03 0x7fe93dbfe6c0 syncrepl_entry: rid=011 be_modify uid=user-a,ou=People,dc=foo,dc=bar (0)
Jul 13 07:17:06 slapd-c slapd[363788]: 6a54f362.17e1472f 0x7fe8f13fc6c0 do_syncrep2: rid=011 cookie=rid=011,sid=001,csn=20260713141706.387664Z#000000#001#000000
Jul 13 07:17:06 slapd-c slapd[363788]: 6a54f362.17e1e882 0x7fe8f13fc6c0 syncrepl_message_to_entry: rid=011 DN: uid=user-b,ou=People,dc=foo,dc=bar, UUID: 3a002ff4-912d-103d-9e5f-4fce8756df8d
Jul 13 07:17:06 slapd-c slapd[363788]: 6a54f362.17e3f06b 0x7fe8f13fc6c0 syncrepl_entry: rid=011 LDAP_RES_SEARCH_ENTRY(LDAP_SYNC_MODIFY) csn=20260713141706.387664Z#000000#001#000000 tid 0x7fe8f13fc6c0
Jul 13 07:17:06 slapd-c slapd[363788]: 6a54f362.17e49d6c 0x7fe8f13fc6c0 syncrepl_entry: rid=011 be_search (0)
Jul 13 07:17:06 slapd-c slapd[363788]: 6a54f362.17e4b9c6 0x7fe8f13fc6c0 syncrepl_entry: rid=011 uid=user-b,ou=People,dc=foo,dc=bar
Jul 13 07:17:06 slapd-c slapd[363788]: 6a54f362.1b702746 0x7fe8f13fc6c0 syncrepl_entry: rid=011 be_modify uid=user-b,ou=People,dc=foo,dc=bar (0)
Jul 13 07:17:41 slapd-c slapd[363788]: 6a54f385.3670134f 0x7fe92ddfd6c0 do_syncrep2: rid=011 cookie=rid=011,sid=001,csn=20260713141741.874176Z#000000#001#000000
Jul 13 07:17:41 slapd-c slapd[363788]: 6a54f385.3670baf2 0x7fe92ddfd6c0 syncrepl_message_to_entry: rid=011 DN: uid=user-a,ou=People,dc=foo,dc=bar, UUID: 1c96ac22-62f9-1027-8440-e9a9b4c99043
Jul 13 07:17:41 slapd-c slapd[363788]: 6a54f385.36727fb0 0x7fe92ddfd6c0 syncrepl_entry: rid=011 LDAP_RES_SEARCH_ENTRY(LDAP_SYNC_MODIFY) csn=20260713141741.874176Z#000000#001#000000 tid 0x7fe92ddfd6c0
Jul 13 07:17:41 slapd-c slapd[363788]: 6a54f385.36732e80 0x7fe92ddfd6c0 syncrepl_entry: rid=011 be_search (0)
Jul 13 07:17:41 slapd-c slapd[363788]: 6a54f385.36734c82 0x7fe92ddfd6c0 syncrepl_entry: rid=011 uid=user-a,ou=People,dc=foo,dc=bar
Jul 13 07:17:41 slapd-c slapd[363788]: 6a54f385.38289301 0x7fe92ddfd6c0 syncrepl_entry: rid=011 be_modify uid=user-a,ou=People,dc=foo,dc=bar (0)
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.19271e69 0x7fe93cbfc6c0 do_syncrep2: rid=011 cookie=rid=011,sid=001,csn=20260713162914.373110Z#000000#001#000000
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.192880c7 0x7fe93cbfc6c0 syncrepl_message_to_entry: rid=011 DN: uid=user-c,ou=People,dc=foo,dc=bar, UUID: 1b6a45a2-f7c6-1033-8b7c-2b6875adc332
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.192d38b8 0x7fe93cbfc6c0 syncrepl_entry: rid=011 LDAP_RES_SEARCH_ENTRY(LDAP_SYNC_MODIFY) csn=20260713162914.373110Z#000000#001#000000 tid 0x7fe93cbfc6c0
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.192ea929 0x7fe93cbfc6c0 syncrepl_entry: rid=011 be_search (0)
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.192ef1a2 0x7fe93cbfc6c0 syncrepl_entry: rid=011 uid=user-c,ou=People,dc=foo,dc=bar
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.1936d2f0 0x7fe93cbfc6c0 syncrepl_entry: rid=011 be_modify uid=user-c,ou=People,dc=foo,dc=bar (122)
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.1937a1db 0x7fe93cbfc6c0 syncrepl_entry: rid=011 be_search (0)
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.1937e217 0x7fe93cbfc6c0 syncrepl_entry: rid=011 uid=user-c,ou=People,dc=foo,dc=bar
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.193df998 0x7fe93cbfc6c0 syncrepl_entry: rid=011 be_modify uid=user-c,ou=People,dc=foo,dc=bar (122)
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.193ea7e9 0x7fe93cbfc6c0 syncrepl_entry: rid=011 be_search (0)
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.193ee30b 0x7fe93cbfc6c0 syncrepl_entry: rid=011 uid=user-c,ou=People,dc=foo,dc=bar
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.1944b039 0x7fe93cbfc6c0 syncrepl_entry: rid=011 be_modify uid=user-c,ou=People,dc=foo,dc=bar (122)
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.19456ca6 0x7fe93cbfc6c0 syncrepl_entry: rid=011 be_search (0)
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.1945b723 0x7fe93cbfc6c0 syncrepl_entry: rid=011 uid=user-c,ou=People,dc=foo,dc=bar
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.194c31ad 0x7fe93cbfc6c0 syncrepl_entry: rid=011 be_modify uid=user-c,ou=People,dc=foo,dc=bar (122)
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.194cdb08 0x7fe93cbfc6c0 syncrepl_entry: rid=011 be_search (0)
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.194d15b1 0x7fe93cbfc6c0 syncrepl_entry: rid=011 uid=user-c,ou=People,dc=foo,dc=bar
Jul 13 09:29:14 slapd-c slapd[363788]: 6a55125a.1952a424 0x7fe93cbfc6c0 syncrepl_entry: rid=011 be_modify uid=user-c,ou=People,dc=foo,dc=bar (122)...etcOh and here's a corresponding excerpt from the primary provider slapd (following "conn=181661"):Jul 13 04:25:35 slapd-a daemon.info slapd[573262]: 6a54cb2f.11af231d 0x7fd0db7fe6c0 conn=181661 op=4 syncprov_qresp: set up a new syncres mode=2 csn=20260713112535.267821Z#000000#001#000000
Jul 13 04:25:35 slapd-a daemon.info slapd[573262]: 6a54cb2f.11b11f8e 0x7fd0d9ffb6c0 conn=181661 op=4 syncprov_sendresp: to=002, cookie=rid=011,sid=001,csn=20260713112535.267821Z#000000#001#000000
Jul 13 04:25:35 slapd-a daemon.info slapd[573262]: 6a54cb2f.11b159ae 0x7fd0d9ffb6c0 conn=181661 op=4 syncprov_sendresp: sending LDAP_SYNC_MODIFY, dn=uid=user-a,ou=people,dc=foo,dc=bar
Jul 13 04:25:35 slapd-a daemon.info slapd[573262]: 6a54cb2f.11ce2997 0x7fd0d9ffb6c0 conn=181661 op=4 ENTRY dn="uid=user-a,ou=people,dc=foo,dc=bar"
Jul 13 07:17:06 slapd-a daemon.info slapd[573262]: 6a54f362.175ba39d 0x7fd0d9ffb6c0 conn=181661 op=4 syncprov_qresp: set up a new syncres mode=2 csn=20260713141706.387664Z#000000#001#000000
Jul 13 07:17:06 slapd-a daemon.info slapd[573262]: 6a54f362.175e6cc6 0x7fd11b1fe6c0 conn=181661 op=4 syncprov_sendresp: to=002, cookie=rid=011,sid=001,csn=20260713141706.387664Z#000000#001#000000
Jul 13 07:17:06 slapd-a daemon.info slapd[573262]: 6a54f362.175fcc2d 0x7fd11b1fe6c0 conn=181661 op=4 syncprov_sendresp: sending LDAP_SYNC_MODIFY, dn=uid=user-b,ou=people,dc=foo,dc=bar
Jul 13 07:17:06 slapd-a daemon.info slapd[573262]: 6a54f362.17de88ac 0x7fd11b1fe6c0 conn=181661 op=4 ENTRY dn="uid=user-b,ou=people,dc=foo,dc=bar"
Jul 13 07:17:41 slapd-a daemon.info slapd[573262]: 6a54f385.363ca03d 0x7fd11a1fc6c0 conn=181661 op=4 syncprov_qresp: set up a new syncres mode=2 csn=20260713141741.874176Z#000000#001#000000
Jul 13 07:17:41 slapd-a daemon.info slapd[573262]: 6a54f385.363e3ee1 0x7fd0db7fe6c0 conn=181661 op=4 syncprov_sendresp: to=002, cookie=rid=011,sid=001,csn=20260713141741.874176Z#000000#001#000000
Jul 13 07:17:41 slapd-a daemon.info slapd[573262]: 6a54f385.363e7d81 0x7fd0db7fe6c0 conn=181661 op=4 syncprov_sendresp: sending LDAP_SYNC_MODIFY, dn=uid=user-a,ou=people,dc=foo,dc=bar
Jul 13 07:17:41 slapd-a daemon.info slapd[573262]: 6a54f385.365e0720 0x7fd0db7fe6c0 conn=181661 op=4 ENTRY dn="uid=user-a,ou=people,dc=foo,dc=bar"
Jul 13 09:29:14 slapd-a daemon.info slapd[573262]: 6a55125a.18c8e928 0x7fd0dbfff6c0 conn=181661 op=4 syncprov_qresp: set up a new syncres mode=2 csn=20260713162914.373110Z#000000#001#000000
Jul 13 09:29:14 slapd-a daemon.info slapd[573262]: 6a55125a.18ca72db 0x7fd0daffd6c0 conn=181661 op=4 syncprov_sendresp: to=002, cookie=rid=011,sid=001,csn=20260713162914.373110Z#000000#001#000000
Jul 13 09:29:14 slapd-a daemon.info slapd[573262]: 6a55125a.18cabbd0 0x7fd0daffd6c0 conn=181661 op=4 syncprov_sendresp: sending LDAP_SYNC_MODIFY, dn=uid=user-c,ou=people,dc=foo,dc=bar
Jul 13 09:29:14 slapd-a daemon.info slapd[573262]: 6a55125a.1954f880 0x7fd0daffd6c0 conn=181661 op=4 ENTRY dn="uid=user-c,ou=people,dc=foo,dc=bar"
Jul 13 09:30:36 slapd-a daemon.info slapd[573262]: 6a5512ac.32067cfe 0x7fd110ffc6c0 conn=181661 op=4 syncprov_qresp: set up a new syncres mode=2 csn=20260713163036.837036Z#000000#001#000000
Jul 13 09:30:36 slapd-a daemon.info slapd[573262]: 6a5512ac.3207a99f 0x7fd11a9fd6c0 conn=181661 op=4 syncprov_sendresp: to=002, cookie=rid=011,sid=001,csn=20260713163036.837036Z#000000#001#000000
Jul 13 09:30:36 slapd-a daemon.info slapd[573262]: 6a5512ac.32081ec9 0x7fd11a9fd6c0 conn=181661 op=4 syncprov_sendresp: sending LDAP_SYNC_MODIFY, dn=uid=user-c,ou=people,dc=foo,dc=bar
Jul 13 09:30:36 slapd-a daemon.info slapd[573262]: 6a5512ac.32449ca4 0x7fd11a9fd6c0 conn=181661 op=4 ENTRY dn="uid=user-c,ou=people,dc=foo,dc=bar"
Jul 13 09:43:32 slapd-a daemon.info slapd[573262]: 6a5515b4.31258dd1 0x7fd110ffc6c0 conn=181661 op=5 UNBIND
Jul 13 09:43:32 slapd-a daemon.info slapd[573262]: 6a5515b4.31288701 0x7fd110ffc6c0 conn=181661 fd=45 closed
Primary/provider:
entryCSN: 20260715174316.844052Z#000000#001#000000
Non-primary/consumer:
entryCSN: 20210115230536Z#000001#00#000000
entryCSN: 20210115230536Z#000001#00#000000