[Samba] kcc_periodic output

Elias Pereira empbilly at gmail.com
Wed Feb 7 22:17:49 UTC 2024


Hi Douglas, thanks for the answer!!!

samba kcc command = /path/to/samba_kcc --debug


I ran the command and the result is in the pastebin below, if you can take
a look.
https://pastebin.com/x6W2yWm7

But anyway, I don't think this is a samba_kcc specific problem, and
> https://bugzilla.samba.org/show_bug.cgi?id=15568
> is due to the same underlying issue. I don't know what that is.


I opened this bug, but no one has replied yet.

>> UpdateRefs failed with NT_STATUS_IO_TIMEOUT
> This is a different replication failure, independent of the KCC.
> samba_kcc works out where the DC should replicate from, and the drepl
> code does the actual replication.
> Both could fail with network weirdness, or if either the local or remote
> database is locked up for some reason.


And how can I debug this problem? I've searched everywhere and found
nothing about it.

On Wed, Feb 7, 2024 at 6:40 PM Douglas Bagnall <
douglas.bagnall at catalyst.net.nz> wrote:

> On 8/02/24 02:11, Elias Pereira via samba wrote:
> > Any idea how I can debug this?
>
>
> >>> I don't know the answer to that, but I think setting
> >>>
> >>>       samba kcc command = /usr/sbin/samba_kcc -d5
> >>>
>
> I looked it up. Actually
>
>         samba kcc command = /path/to/samba_kcc --debug
>
> *might* produce more interesting results (you'll probably want to use
> `less -R` to view the logs).
>
> You can run samba_kcc independently -- it should not do any harm, but
> you can use the --readonly flag if you want to be careful.
>
> But anyway, I don't think this is a samba_kcc specific problem, and
> https://bugzilla.samba.org/show_bug.cgi?id=15568
> is due to the same underlying issue. I don't know what that is.
>
> >> [2024/02/02 20:05:17.752322,  0]
> >>
> ../../source4/dsdb/repl/drepl_out_helpers.c:1300(dreplsrv_update_refs_done)
> >>    UpdateRefs failed with NT_STATUS_IO_TIMEOUT
>
> This is a different replication failure, independent of the KCC.
>
> samba_kcc works out where the DC should replicate from, and the drepl
> code does the actual replication.
>
> Both could fail with network weirdness, or if either the local or remote
> database is locked up for some reason.
>
> >> What does this part of the code do?
> >> source4/dsdb/kcc/kcc_periodic.c:790
>
> That just reports that samba_kcc failed.
>
> cheers,
> Douglas
>
>

-- 
Elias Pereira


More information about the samba mailing list