[Samba] Replication between Samba DCs (on different sites)?

Michael Tokarev mjt at tls.msk.ru
Mon Nov 14 21:07:25 UTC 2022


14.11.2022 23:21, Michael Tokarev via samba wrote:
...
> I tried 'samba-tool drs replicate' manually on AI, but it also shows this
> error:
> 
> AI# samba-tool drs replicate ai svdcp 'CN=Configuration,DC=tls,DC=msk,DC=ru'
> ERROR(<class 'samba.drs_utils.drsException'>): DsReplicaSync failed - drsException: DsReplicaSync failed (2, 'WERR_FILE_NOT_FOUND')
>    File "/usr/lib/python3/dist-packages/samba/netcmd/drs.py", line 570, in run
>      drs_utils.sendDsReplicaSync(server_bind, server_bind_handle, source_dsa_guid, NC, req_options)
>    File "/usr/lib/python3/dist-packages/samba/drs_utils.py", line 92, in sendDsReplicaSync
>      raise drsException("DsReplicaSync failed %s" % estr)


AI# samba-tool drs replicate ai svdcp 'CN=Configuration,DC=tls,DC=msk,DC=ru' -d 10

gives some wire traces (or looks like), it ends up like the remote is returning
WERR_FILE_NOT_FOUND. And I don't see this error on the remote, all what I see
remote reporting on the logs is WERR_OK.

However, the other way it works fine:

AI# samba-tool drs replicate svdcp ai 'CN=Configuration,DC=tls,DC=msk,DC=ru'
Replicate from ai to svdcp was successful.


It is even the same when run on SVDCP:

SVDCP# samba-tool drs replicate ai svdcp 'CN=Configuration,DC=tls,DC=msk,DC=ru'
ERROR(<class 'samba.drs_utils.drsException'>): DsReplicaSync failed - drsException: DsReplicaSync failed (2, 'WERR_FILE_NOT_FOUND')
   File "/usr/lib/python3/dist-packages/samba/netcmd/drs.py", line 570, in run
     drs_utils.sendDsReplicaSync(server_bind, server_bind_handle, source_dsa_guid, NC, req_options)
   File "/usr/lib/python3/dist-packages/samba/drs_utils.py", line 92, in sendDsReplicaSync
     raise drsException("DsReplicaSync failed %s" % estr)

SVDCP# samba-tool drs replicate svdcp ai 'CN=Configuration,DC=tls,DC=msk,DC=ru'
Replicate from ai to svdcp was successful.


Who is returning FILE_NOT_FOUND and for what file?

Thank you!

/mjt



More information about the samba mailing list