[Samba] replPropertyMetaData & KCC issues after updating to Samba 4.5.0

Garming Sam garming at catalyst.net.nz
Thu Sep 22 03:32:57 UTC 2016


I would have assumed that deleting all the NTDS connections for all the
DCs would have remedied this issue. I'll write a patch to try to avoid
this error in any case.

Ignoring this error and answering your earlier question, it's often hard
to tell if the KCC is doing what is expected or not. To figure that out,
you need a lot more information about the network topology
configuration, which site links are defined, who belongs to which site
in the database and probably some of the debug logs (running samba_kcc
--debug manually). It also takes a little while for everything to settle
down, until everyone is completely aware of who is online.



Cheers,

Garming

On 22/09/16 00:32, lingpanda101 at gmail.com wrote:
>
> I'm getting several KCC errors in each of my DC's. They are as follows.
>
> [2016/09/21 08:06:12.364447,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc: AttributeError: 'NoneType' object
> has no attribute 'size'
> [2016/09/21 08:06:12.381710,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../source4/dsdb/kcc/kcc_periodic.c:646(samba_kcc_done)
>   ../source4/dsdb/kcc/kcc_periodic.c:646: Failed samba_kcc -
> NT_STATUS_ACCESS_DENIED
> [2016/09/21 08:11:12.870383,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc: Traceback (most recent call last):
> [2016/09/21 08:11:12.870528,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:   File
> "/usr/local/samba/sbin/samba_kcc", line 337, in <module>
> [2016/09/21 08:11:12.870588,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:
> attempt_live_connections=opts.attempt_live_connections)
> [2016/09/21 08:11:12.870639,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:   File
> "/usr/local/samba/lib/python2.7/site-packages/samba/kcc/__init__.py",
> line 2644, in run
> [2016/09/21 08:11:12.870994,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:     all_connected =
> self.intersite(ping)
> [2016/09/21 08:11:12.871046,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:   File
> "/usr/local/samba/lib/python2.7/site-packages/samba/kcc/__init__.py",
> line 1883, in intersite
> [2016/09/21 08:11:12.871338,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:     all_connected =
> self.create_intersite_connections()
> [2016/09/21 08:11:12.871398,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:   File
> "/usr/local/samba/lib/python2.7/site-packages/samba/kcc/__init__.py",
> line 1817, in create_intersite_connections
> [2016/09/21 08:11:12.871676,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:     part, True)
> [2016/09/21 08:11:12.871724,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:   File
> "/usr/local/samba/lib/python2.7/site-packages/samba/kcc/__init__.py",
> line 1769, in create_connections
> [2016/09/21 08:11:12.871999,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:     partial_ok, detect_failed)
> [2016/09/21 08:11:12.872048,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:   File
> "/usr/local/samba/lib/python2.7/site-packages/samba/kcc/__init__.py",
> line 1419, in create_connection
> [2016/09/21 08:11:12.872272,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:     not
> cn.is_equivalent_schedule(link_sched))):
> [2016/09/21 08:11:12.872321,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:   File
> "/usr/local/samba/lib/python2.7/site-packages/samba/kcc/kcc_utils.py",
> line 1223, in is_equivalent_schedule
> [2016/09/21 08:11:12.872513,  0, pid=1087, effective(0, 0), real(0,
> 0)] ../lib/util/util_runcmd.c:316(samba_runcmd_io_handler)
>   /usr/local/samba/sbin/samba_kcc:     if ((self.schedule.size !=
> sched.size or
>
> Replication appears to report no errors. Running a KCC check I get the
> following.
>
> samba-tool drs kcc
> ERROR(runtime): DsExecuteKCC failed - (-1073610699, 'The operation
> cannot be performed.')
>
> Switching back to the old KCC clears the errors up.
>




More information about the samba mailing list