[Samba] Replication failures

L.P.H. van Belle belle at bazuin.nl
Wed Apr 24 13:05:06 UTC 2019


Hai, 

Can you run this script on a good DC and the problem DC. 
https://raw.githubusercontent.com/thctlo/samba4/master/samba-collect-debug-info.sh 

Mail me both files. 
I'll have a quick check. 


Greetz, 

Louis

> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens M B via samba
> Verzonden: woensdag 24 april 2019 14:48
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Replication failures
> 
> >> 
> >> I was able to get replication working again by deleting 
> DNS records that were conflicting in LDAP.
> >> 
> >> Used ldapcmp tool to find conflicts
> >> https://wiki.samba.org/index.php/Samba-tool_ldapcmp
> >> 
> > 
> > Ok, the problem seems to be back again. 
> > 
> > Ubuntu 16.04, samba 4.9.3
> > 
> > I’ve checked with: samba-tool ldapcmp 
> > between dc1 and every other dc[2-6]
> > 
> > ldapcmp shows no errors in any combination mentioned above
> > 
> > Running this command:
> > 
> > # sudo samba-tool drs showrepl -d9
> > 
> > ends with this output
> > .
> > .
> > .
> > rpc fault: DCERPC_FAULT_CANT_PERFORM
> > ERROR(runtime): DsReplicaGetInfo of type 0 failed - 
> (3221356597, 'The operation cannot be performed.')
> > File 
> "/usr/lib/python2.7/dist-packages/samba/netcmd/drs.py", line 
> 175, in get_neighbours
> >   self.drsuapi_handle, 1, req1)
> > 
> > Running this command
> > 
> > # sudo samba-tool visualize reps
> > OR
> > # sudo samba-tool visualize ntdsconn
> > 
> > indicates that replication is occurring, and when I make 
> changes to any part of the directory, those changes replicate 
> to the other DCs
> > 
> > Any ideas about what is going on?
> > 
> > 
> > smb.conf
> > ====
> > 
> > # Global parameters
> > [global]
> >       netbios name = DC5
> >       realm = MY.COMPANY.COM
> >       server role = active directory domain controller
> >       server services = s3fs, rpc, nbt, wrepl, ldap, cldap, 
> kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate
> >       workgroup = COMPANY
> >       dns zone scavenging = yes
> >       idmap_ldb:use rfc2307 = yes
> >       tls enabled  = yes
> >       tls keyfile  = tls/cert.key
> >       tls certfile = tls/cert.pem
> >       tls cafile   = tls/int_ca.pem
> >       logging = file:2
> >       log level = dsdb_audit:4 dsdb_password_audit:4 
> auth_audit:4 auth:1 passdb:3 winbind:2
> > 
> > [netlogon]
> >       path = /var/lib/samba/sysvol/my.company.com/scripts
> >       read only = No
> > 
> > [sysvol]
> >       path = /var/lib/samba/sysvol
> >       read only = No
> > 
> 
> Still having problems here. Does anyone have any ideas about 
> how to address this?
> 
> If I restart samba, I see in the logs after 10-20 seconds, 
> samba is hitting a PANIC state. Before the panic, I can 
> successfully run 
> 
> sudo samba-tool drs showrepl
> 
> I will get the proper replication status output. 
> 
> After the PANIC occurs, then I get the error mentioned above 
> beginning with …
> "rpc fault: DCERPC_FAULT_CANT_PERFORM”
> 
> 
> The panic looks like this:
> 
> [2019/03/31 22:15:29.452501,  0] 
> ../source4/lib/cmdline/popt_common.c:74(popt_s4_talloc_log_fn)
>  Bad talloc magic value - unknown value
> [2019/03/31 22:15:29.453091,  0] 
> ../lib/util/fault.c:128(smb_panic_default)
>  smb_panic_default: PANIC (pid 28449): Bad talloc magic value 
> - unknown value
> [2019/03/31 22:15:29.455084,  0] 
> ../lib/util/fault.c:261(log_stack_trace)
>  BACKTRACE: 64 stack frames:
>   #0 
> /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(log_stack_trace+0
x2e) [0x7f35b40189df]
>   #1 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(+0x1f751) 
> [0x7f35b4018751]
>   #2 
> /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(log_stack_trace+0
> ) [0x7f35b40189b1]
>   #3 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(+0x2825) 
> [0x7f35b3148825]
>   #4 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(+0x284b) 
> [0x7f35b314884b]
>   #5 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(+0x28c9) 
> [0x7f35b31488c9]
>   #6 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(+0x2c6a) 
> [0x7f35b3148c6a]
>   #7 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(+0x2e7e) 
> [0x7f35b3148e7e]
>   #8 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(+0x5f36) 
> [0x7f35b314bf36]
>   #9 
> /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(talloc_strdup+0
x49) [0x7f35b314bfec]
>   #10 /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(+0x1cd3d) 
> [0x7f35b3dd9d3d]
>   #11 
> /usr/lib/x86_64-linux-gnu/samba/ldb/objectclass_attrs.so(+0x1b
c9) [0x7f359d3dcbc9]
>   #12 
> /usr/lib/x86_64-linux-gnu/samba/ldb/objectclass_attrs.so(+0x22
ea) [0x7f359d3dd2ea]
>   #13 
> /usr/lib/x86_64-linux-gnu/samba/ldb/objectclass_attrs.so(+0x33
bc) [0x7f359d3de3bc]
>   #14 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_next_request+0
x2fb) [0x7f35b3dc6820]
>   #15 
> /usr/lib/x86_64-linux-gnu/samba/ldb/instancetype.so(+0x10cf) 
> [0x7f359ee3d0cf]
>   #16 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_next_request+0
x2fb) [0x7f35b3dc6820]
>   #17 
> /usr/lib/x86_64-linux-gnu/samba/ldb/password_hash.so(+0xda85) 
> [0x7f359c7ada85]
>   #18 
> /usr/lib/x86_64-linux-gnu/samba/ldb/password_hash.so(+0xe0b1) 
> [0x7f359c7ae0b1]
>   #19 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_next_request+0
x2fb) [0x7f35b3dc6820]
>   #20 /usr/lib/x86_64-linux-gnu/samba/ldb/samldb.so(+0xcbbc) 
> [0x7f359aab0bbc]
>   #21 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_next_request+0
x2fb) [0x7f35b3dc6820]
>   #22 /usr/lib/x86_64-linux-gnu/samba/ldb/acl.so(+0x5d04) 
> [0x7f35a0ca6d04]
>   #23 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_next_request+0
x2fb) [0x7f35b3dc6820]
>   #24 
> /usr/lib/x86_64-linux-gnu/samba/ldb/descriptor.so(+0x3ddb) 
> [0x7f35a0284ddb]
>   #25 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_next_request+0
x2fb) [0x7f35b3dc6820]
>   #26 
> /usr/lib/x86_64-linux-gnu/samba/ldb/tombstone_reanimate.so(+0x
1dcf) [0x7f35961f1dcf]
>   #27 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_next_request+0
x2fb) [0x7f35b3dc6820]
>   #28 
> /usr/lib/x86_64-linux-gnu/samba/ldb/objectclass.so(+0x3a6b) 
> [0x7f359d5e4a6b]
>   #29 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_next_request+0
x2fb) [0x7f35b3dc6820]
>   #30 
> /usr/lib/x86_64-linux-gnu/samba/ldb/audit_log.so(+0x4ca4) 
> [0x7f35a048eca4]
>   #31 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_next_request+0
x2fb) [0x7f35b3dc6820]
>   #32 
> /usr/lib/x86_64-linux-gnu/samba/ldb/extended_dn_in.so(+0x22bb)
>  [0x7f359f85c2bb]
>   #33 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_module_done+0x
1fc) [0x7f35b3dc7b6c]
>   #34 
> /usr/lib/x86_64-linux-gnu/samba/ldb/encrypted_secrets.so(+0x3b
38) [0x7f359fa63b38]
>   #35 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_module_done+0x
1fc) [0x7f35b3dc7b6c]
>   #36 
> /usr/lib/x86_64-linux-gnu/samba/ldb/operational.so(+0x5fea) 
> [0x7f359cfd2fea]
>   #37 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_module_done+0x
1fc) [0x7f35b3dc7b6c]
>   #38 
> /usr/lib/x86_64-linux-gnu/samba/ldb/extended_dn_out.so(+0x2b1d
> ) [0x7f359f655b1d]
>   #39 
> /usr/lib/x86_64-linux-gnu/samba/ldb/extended_dn_out.so(+0x3848
> ) [0x7f359f656848]
>   #40 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_module_done+0x
1fc) [0x7f35b3dc7b6c]
>   #41 
> /usr/lib/x86_64-linux-gnu/samba/libdsdb-module-samba4.so(dsdb_
next_callback+0x8a) [0x7f35a44aa68c]
>   #42 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_module_done+0x
1fc) [0x7f35b3dc7b6c]
>   #43 
> /usr/lib/x86_64-linux-gnu/samba/ldb/partition.so(+0x3b07) 
> [0x7f359c9b8b07]
>   #44 
> /usr/lib/x86_64-linux-gnu/samba/libldb-key-value-samba4.so(+0x
73f8) [0x7f359e61f3f8]
>   #45 
> /usr/lib/x86_64-linux-gnu/samba/libldb-key-value-samba4.so(+0x
7c4b) [0x7f359e61fc4b]
>   #46 
> /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_i
nvoke_timer_handler+0x2ae) [0x7f35b377f3a6]
>   #47 
> /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_l
oop_timer_delay+0xc8) [0x7f35b377f5a9]
>   #48 
> /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0x11a76) 
> [0x7f35b3781a76]
>   #49 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xe30b) 
> [0x7f35b377e30b]
>   #50 
> /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(_tevent_loop_on
ce+0x11e) [0x7f35b3775d95]
>   #51 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_wait+0x1c4) 
> [0x7f35b3de6beb]
>   #52 /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(+0x299ff) 
> [0x7f35b3de69ff]
>   #53 
> /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(ldb_modify+0xa6) 
> [0x7f35b3de97b0]
>   #54 
> /usr/lib/x86_64-linux-gnu/samba/libscavenge-dns-records-samba4
.so(dns_tombstone_records_zone+0x5ea) [0x7f35a3c6089b]
>   #55 
> /usr/lib/x86_64-linux-gnu/samba/libscavenge-dns-records-samba4
.so(dns_tombstone_records+0x1c6) [0x7f35a3c60b06]
>   #56 /usr/lib/x86_64-linux-gnu/samba/service/kcc.so(+0x6672) 
> [0x7f35a4090672]
>   #57 /usr/lib/x86_64-linux-gnu/samba/service/kcc.so(+0x6c42) 
> [0x7f35a4090c42]
>   #58 /usr/lib/x86_64-linux-gnu/samba/service/kcc.so(+0x6340) 
> [0x7f35a4090340]
>   #59 
> /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_i
nvoke_timer_handler+0x2ae) [0x7f35b377f3a6]
>   #60 
> /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_l
oop_timer_delay+0xc8) [0x7f35b377f5a9]
>   #61 
> /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0x111ef) 
> [0x7f35b37811ef]
>   #62 
> /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0x11af6) 
> [0x7f35b3781af6]
>   #63 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xe30b) 
> [0x7f35b377e30b]
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 
> 




More information about the samba mailing list