Adam Xu
2021-Nov-10 06:42 UTC
[Samba] Failed to commit objects: WERR_GEN_FAILURE/NT_STATUS_INVALID_NETWORK_RESPONSE
Hi All, Directory Replication failed between my 2 DCs. OS?CentOS 7.9 Samba version: 4.14.9-SerNet-RedHat-10.el7 when I run: [root at dc1 ~]# samba-tool drs showrepl --summary There are failing connections Failing inbound connection: DC=mydomain,DC=com ?? ?Default-First-Site-Name\DC2 via RPC ?? ???? DSA object GUID: ed8970e5-84cc-43dd-89f1-4af8d6ab675a ?? ???? Last attempt @ Wed Nov 10 14:26:48 2021 CST failed, result 58 (WERR_BAD_NET_RESP) ?? ???? 678 consecutive failure(s). ?? ???? Last success @ Mon Nov? 8 15:26:06 2021 CST [root at dc2 ~]# samba-tool drs showrepl --summary [ALL GOOD] [root at dc1 ~]# samba-tool drs replicate dc2 dc1 dc=mydomain,dc=com --sync-all -d 9 ........................ Replicate from dc1 to dc2 was successful. [root at dc1 ~]# samba-tool drs replicate dc1 dc2 dc=mydomain,dc=com --sync-all -d 9 .................................. ?????????????????????????? 0: DRSUAPI_DRS_DISABLE_AUTO_SYNC ?????????????????????????? 0: DRSUAPI_DRS_DISABLE_PERIODIC_SYNC ?????????????????????????? 0: DRSUAPI_DRS_USE_COMPRESSION ?????????????????????????? 0: DRSUAPI_DRS_NEVER_NOTIFY ?????????????????????????? 0: DRSUAPI_DRS_SYNC_PAS ?????????????????????????? 0: DRSUAPI_DRS_GET_ALL_GROUP_MEMBERSHIP ???? drsuapi_DsReplicaSync: struct drsuapi_DsReplicaSync ??????? out: struct drsuapi_DsReplicaSync ??????????? result?????????????????? : WERR_BAD_NET_RESP ERROR(<class 'samba.drs_utils.drsException'>): DsReplicaSync failed - drsException: DsReplicaSync failed (58, 'WERR_BAD_NET_RESP') ? File "/usr/lib64/python3.6/site-packages/samba/netcmd/drs.py", line 571, in run ??? drs_utils.sendDsReplicaSync(server_bind, server_bind_handle, source_dsa_guid, NC, req_options) ? File "/usr/lib64/python3.6/site-packages/samba/drs_utils.py", line 92, in sendDsReplicaSync ??? raise drsException("DsReplicaSync failed %s" % estr) And log in log.samba [2021/11/10 14:16:48.824264,? 1] ../../source4/dsdb/repl/replicated_objects.c:904(dsdb_replicated_objects_commit) ? Failed to apply records: ../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:4672: Failed to remove backlink of msDS-RevealedDSAs when deleting CN=dana_hu\0ADEL:8ab29f83-a30b-409f-b091-50d00debde72,CN=Deleted Objects,DC=mydomain,DC=com: Unable to find GUID for DN CN=dana_hu,OU=Users,OU=Suzhou,DC=mydomain,DC=com ? : Operations error [2021/11/10 14:16:48.825325,? 0] ../../source4/dsdb/repl/drepl_out_helpers.c:1184(dreplsrv_op_pull_source_apply_changes_trigger) ? Failed to commit objects: WERR_GEN_FAILURE/NT_STATUS_INVALID_NETWORK_RESPONSE [2021/11/10 14:21:48.834042,? 1] ../../source4/dsdb/repl/replicated_objects.c:904(dsdb_replicated_objects_commit) ? Failed to apply records: ../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:4672: Failed to remove backlink of msDS-RevealedDSAs when deleting CN=dana_hu\0ADEL:8ab29f83-a30b-409f-b091-50d00debde72,CN=Deleted Objects,DC=mydomain,DC=com: Unable to find GUID for DN CN=dana_hu,OU=Users,OU=Suzhou,DC=mydomain,DC=com ? : Operations error [2021/11/10 14:21:48.835059,? 0] ../../source4/dsdb/repl/drepl_out_helpers.c:1184(dreplsrv_op_pull_source_apply_changes_trigger) ? Failed to commit objects: WERR_GEN_FAILURE/NT_STATUS_INVALID_NETWORK_RESPONSE [2021/11/10 14:24:54.943959,? 1] ../../source4/dns_server/dns_query.c:1141(dns_server_process_query_got_auth) ? dns_server_process_query_got_auth: Failed to add SOA record: WERR_DNS_ERROR_RCODE_FORMAT_ERROR [2021/11/10 14:26:48.847378,? 1] ../../source4/dsdb/repl/replicated_objects.c:904(dsdb_replicated_objects_commit) ? Failed to apply records: ../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:4672: Failed to remove backlink of msDS-RevealedDSAs when deleting CN=dana_hu\0ADEL:8ab29f83-a30b-409f-b091-50d00debde72,CN=Deleted Objects,DC=mydomain,DC=com: Unable to find GUID for DN CN=dana_hu,OU=Users,OU=Suzhou,DC=mydomain,DC=com ? : Operations error [2021/11/10 14:26:48.848535,? 0] ../../source4/dsdb/repl/drepl_out_helpers.c:1184(dreplsrv_op_pull_source_apply_changes_trigger) ? Failed to commit objects: WERR_GEN_FAILURE/NT_STATUS_INVALID_NETWORK_RESPONSE How can I fix it? Thanks.
Andrew Bartlett
2021-Nov-10 08:09 UTC
[Samba] Failed to commit objects: WERR_GEN_FAILURE/NT_STATUS_INVALID_NETWORK_RESPONSE
On Wed, 2021-11-10 at 14:42 +0800, Adam Xu via samba wrote:> [2021/11/10 14:26:48.847378, 1] > > ../../source4/dsdb/repl/replicated_objects.c:904(dsdb_replicated_obje > cts_commit) > > Failed to apply records: > > ../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:4672: Failed > to > > remove backlink of msDS-RevealedDSAs when deleting > > CN=dana_hu\0ADEL:8ab29f83-a30b-409f-b091-50d00debde72,CN=Deleted > > Objects,DC=mydomain,DC=com: Unable to find GUID for DN > > CN=dana_hu,OU=Users,OU=Suzhou,DC=mydomain,DC=com > > : Operations error > > [2021/11/10 14:26:48.848535, 0] > > ../../source4/dsdb/repl/drepl_out_helpers.c:1184(dreplsrv_op_pull_sou > rce_apply_changes_trigger) > > Failed to commit objects: > > WERR_GEN_FAILURE/NT_STATUS_INVALID_NETWORK_RESPONSE > > > > How can I fix it? Thanks.Perhaps try a samba-tool dbcheck at both ends? Is this on an RODC? Andrew Bartlett -- Andrew Bartlett (he/him) https://samba.org/~abartlet/ Samba Team Member (since 2001) https://samba.org Samba Team Lead, Catalyst IT https://catalyst.net.nz/services/samba Samba Development and Support, Catalyst IT - Expert Open Source Solutions