Samba-tool drs replicate error - {Device Timeout}

hi,

When trying to replicate between two DCs, the “Device timeout” problem always occurs.

root@dc002:~# samba-tool drs replicate DC002 DC1 DC=campus,DC=sertao,DC=ifrs,DC=edu,DC=br --full-sync -d10
ERROR(<class 'samba.drs_utils.drsException'>): DsReplicaSync failed - drsException: DsReplicaSync failed (3221225653, '{Device Timeout} The specified I/O operation on %hs was not completed before the time-out period expired.')
  File "/usr/lib/python3/dist-packages/samba/netcmd/drs.py", line 567, 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 100, in sendDsReplicaSync
    raise drsException("DsReplicaSync failed %s" % estr)

Execution with -d10
https://pastebin.com/raw/cRPhLJe9

Could you help me?

Any idea what might be going on?

EDIT:

When I replicate with the sub-options below, the replication is successful.

DC=ForestDnsZones
CN=Configuration
DC=DomainDnsZones
CN=Schema,CN=Configuration

When I leave only the domain “DC=campus,DC=sertao,DC=ifrs,DC=edu,DC=br” the error occurs.

Hi empbilly,

In the pastebin i read this:

3221225653, '{Device Timeout} The specified I/O operation on %hs was not completed before the time-out period expired

I sounds like that you have replications issues, you check that with the following knowledge base article:

And googled a bit for that issue:

https://www.spinics.net/lists/samba/msg181619.html

https://lists.samba.org/archive/samba/2022-July/241359.html

Will that help you?

Kind regards,
Mirac

I had already tried several of the options in the link you shared.

This is my link to the samba list, but I’ve had no success with it either.

I’ve checked the MTU of all the DCs and they’re all 1500.

Unfortunately, not yet!

Could I use the command below to replicate?
samba-tool drs replicate --local dc1 200.132.xxx.xxx 'DC=campus,DC=sertao,DC=ifrs,DC=edu,DC=br' -P -U Administrator -k no

Is there any other way to debug replication besides setting -d10?

The whole problem was in the replication time. If the --async-op option is not used, samba sets a 5 minute timeout and then ends the replication process.

Below is Rowland’s explanation on the samba list.
https://lists.samba.org/archive/samba/2024-January/247813.html

Thanks!!!

Mastodon