<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">You need to ask FreeIPA people and your vendor (but my guess is that the dyndb plugin provided by RH doesn’t provide this method).<br id="lineBreakAtBeginningOfSignature"><div dir="ltr"><div>--</div>Ondřej Surý — ISC (He/Him)<div><br></div><div>My working hours and your working hours may be different. Please do not feel obligated to reply outside your normal working hours.</div></div><div dir="ltr"><br><blockquote type="cite">On 8. 7. 2024, at 16:48, Kees Bakker via bind-users <bind-users@lists.isc.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Running gdb showed that the "not found" comes from this piece of
code<br>
<br>
<div style="color: #000000;background-color: #ffffff;font-family: 'Droid Sans Mono', 'monospace', monospace;font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #267f99;">isc_result_t</span></div><div><span style="color: #795e26;">dns_db_getsize</span><span style="color: #000000;">(</span><span style="color: #267f99;">dns_db_t</span><span style="color: #000000;"> *</span><span style="color: #001080;">db</span><span style="color: #000000;">, </span><span style="color: #267f99;">dns_dbversion_t</span><span style="color: #000000;"> *</span><span style="color: #001080;">version</span><span style="color: #000000;">, </span><span style="color: #267f99;">uint64_t</span><span style="color: #000000;"> *</span><span style="color: #001080;">records</span><span style="color: #000000;">,</span></div><div><span style="color: #000000;"> </span><span style="color: #267f99;">uint64_t</span><span style="color: #000000;"> *</span><span styl="" e="color: #001080;">bytes</span><span style="color: #000000;">) {</span></div><div><span style="color: #000000;"> </span><span style="color: #0000ff;">REQUIRE</span><span style="color: #000000;">(</span><span style="color: #0000ff;">DNS_DB_VALID</span><span style="color: #000000;">(</span><span style="color: #001080;">db</span><span style="color: #000000;">));</span></div><div><span style="color: #000000;"> </span><span style="color: #0000ff;">REQUIRE</span><span style="color: #000000;">(</span><span style="color: #795e26;">dns_db_iszone</span><span style="color: #000000;">(</span><span style="color: #001080;">db</span><span style="color: #000000;">));</span></div>
<div><span style="color: #000000;"> </span><span style="color: #af00db;">if</span><span style="color: #000000;"> (</span><span style="color: #001080;">db</span><span style="color: #000000;">-></span><span style="color: #001080;">methods</span><span style="color: #000000;">-></span><span style="color: #001080;">getsize</span><span style="color: #000000;"> != </span><span style="color: #0000ff;">NULL</span><span style="color: #000000;">) {</span></div><div><span style="color: #000000;"> </span><span style="color: #af00db;">return</span><span style="color: #000000;"> ((</span><span style="color: #001080;">db</span><span style="color: #000000;">-></span><span style="color: #001080;">methods</span><span style="color: #000000;">-></span><span style="color: #001080;">getsize</span><span style="color: #000000;">)(</span><span style="color: #001080;">db</span><span style="color: #000000;">, </span><span style="color: #001080;">version</span><span style="color
: #000000;">, </span><span style="color: #001080;">records</span><span style="color: #000000;">, </span><span style="color: #001080;">bytes</span><span style="color: #000000;">));</span></div><div><span style="color: #000000;"> }</span></div>
<div><span style="color: #000000;"> </span><span style="color: #af00db;">return</span><span style="color: #000000;"> (</span><span style="color: #0000ff;">ISC_R_NOTFOUND</span><span style="color: #000000;">);</span></div><div><span style="color: #000000;">}
That db->methods-getsize is NULL.
Here is a piece of the gdb session
08-Jul-2024 16:39:29.587 dump_done: zone 29.16.172.in-addr.arpa/IN: enter
Thread 2 "isc-net-0000" hit Breakpoint 2, zone_journal_compact (zone=0x7ffff062ffd0, db=0x7ffff6151268, serial=1720448567) at ../../../lib/dns/zone.c:11654
11654 dns_db_currentversion(db, &ver);
(gdb) n
11655 result = dns_db_getsize(db, ver, NULL, &dbsize);
(gdb) s
dns_db_getsize (db=0x7ffff6151268, version=0x7fffdba86640, records=0x0, bytes=0x7ffff5fcc4b8) at ../../../lib/dns/db.c:955
955 uint64_t *bytes) {
(gdb) n
956 REQUIRE(DNS_DB_VALID(db));
(gdb)
957 REQUIRE(dns_db_iszone(db));
(gdb)
959 if (db->methods->getsize != NULL) {
(gdb) p db->methods->getsize
$3 = (isc_result_t (*)(dns_db_t *, dns_dbversion_t *, uint64_t *, uint64_t *)) 0x0
The question now is: why is that getsize method NULL? Or, should it never have gotten here?
</span></div></div>
-- Kees<br>
<br>
<div class="moz-cite-prefix">On 08-07-2024 13:42, Greg Choules
wrote:<br>
</div>
<blockquote type="cite" cite="mid:CANsEUy3ru7+X+hkZzvxs4xRbuE5LMNTkpOUN-omweKxqwjL4Pw@mail.gmail.com">
<div style="width:100%; font-size:12pt; line-height:14pt; font-family:'Calibri'; color:Black; text-align: left;">
<span style="color:red" ;="" font-weight:bold;=""><b>***
EXTERNAL E-MAIL ***</b></span></div>
<br>
<div>
<div dir="ltr">Hi Kees.
<div>A few questions:</div>
<div>- What version of BIND are you running?</div>
<div>- How large (number of RRs) are your zones?</div>
<div>- What is the peak rate of dynamic updates?</div>
<div>- Do you have "max-journal-size" configured to anything?</div>
<div>- Are you perhaps getting short on disc storage in the
place where BIND keeps its files?</div>
<div>- How much RAM does the server have and how much of that
is BIND using?</div>
<div><br>
</div>
<div>I would recommend reading the ARM section on the journal.
The log message itself comes from "zone.c"</div>
<div><br>
</div>
<div>Cheers, Greg</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, 8 Jul 2024 at 12:18,
Kees Bakker via bind-users <<a href="mailto:bind-users@lists.isc.org" moz-do-not-send="true" class="moz-txt-link-freetext">bind-users@lists.isc.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<br>
<br>
At the moment I have three FreeIPA systems (replicas),
recently <br>
installed with CentOS 9-Stream.<br>
All three of these show this message at irregular intervals.<br>
<br>
Jul 03 07:50:44 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <a href="http://example.com/IN" rel="noreferrer" target="_blank" moz-do-not-send="true">
example.com/IN</a>: <br>
zone_journal_compact: could not get zone size: not found<br>
Jul 03 07:50:51 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <br>
16.16.172.in-addr.arpa/IN: zone_journal_compact: could not
get zone <br>
size: not found<br>
Jul 03 07:51:03 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <br>
17.16.172.in-addr.arpa/IN: zone_journal_compact: could not
get zone <br>
size: not found<br>
Jul 03 07:51:34 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <br>
29.16.172.in-addr.arpa/IN: zone_journal_compact: could not
get zone <br>
size: not found<br>
Jul 03 07:52:12 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <br>
30.16.172.in-addr.arpa/IN: zone_journal_compact: could not
get zone <br>
size: not found<br>
Jul 03 08:03:51 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <a href="http://example.com/IN" rel="noreferrer" target="_blank" moz-do-not-send="true">
example.com/IN</a>: <br>
zone_journal_compact: could not get zone size: not found<br>
Jul 03 08:04:52 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <br>
29.16.172.in-addr.arpa/IN: zone_journal_compact: could not
get zone <br>
size: not found<br>
Jul 03 08:06:30 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <br>
30.16.172.in-addr.arpa/IN: zone_journal_compact: could not
get zone <br>
size: not found<br>
Jul 03 08:18:42 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <a href="http://example.com/IN" rel="noreferrer" target="_blank" moz-do-not-send="true">
example.com/IN</a>: <br>
zone_journal_compact: could not get zone size: not found<br>
Jul 03 08:20:19 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <br>
29.16.172.in-addr.arpa/IN: zone_journal_compact: could not
get zone <br>
size: not found<br>
Jul 03 08:26:23 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <br>
30.16.172.in-addr.arpa/IN: zone_journal_compact: could not
get zone <br>
size: not found<br>
Jul 03 08:34:12 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <a href="http://example.com/IN" rel="noreferrer" target="_blank" moz-do-not-send="true">
example.com/IN</a>: <br>
zone_journal_compact: could not get zone size: not found<br>
Jul 03 08:34:50 <a href="http://iparep5.example.com" rel="noreferrer" target="_blank" moz-do-not-send="true">
iparep5.example.com</a> named[541]: zone <br>
29.16.172.in-addr.arpa/IN: zone_journal_compact: could not
get zone <br>
size: not found<br>
<br>
I have been running FreeIPA (including the bind nameserver)
for several <br>
years now and I have never seen this message before.<br>
I still have one FreeIPA system running CentOS 8-Stream.<br>
<br>
Does anyone have a clue what it can be? Or how to find out?
There are <br>
close to zero hits when I searched for this on the internet.<br>
How to debug this? (How to debug this in a production
environment, ha ha)<br>
-- <br>
Kees<br>
-- <br>
Visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">
https://lists.isc.org/mailman/listinfo/bind-users</a> to
unsubscribe from this list<br>
<br>
ISC funds the development of this software with paid support
subscriptions. Contact us at
<a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://www.isc.org/contact/</a>
for more information.<br>
<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote>
</div>
</div>
</blockquote>
<br>
<span>-- </span><br><span>Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list</span><br><span></span><br><span>ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.</span><br><span></span><br><span></span><br><span>bind-users mailing list</span><br><span>bind-users@lists.isc.org</span><br><span>https://lists.isc.org/mailman/listinfo/bind-users</span><br></div></blockquote></body></html>