[Samba] Samba is still crashing
I have had a problem for a couple of weeks now. I get very regular crashes on two of my three Domain Controllers. I just updated to 4.1.0 and I am still getting the same problem. I have added panic action = /bin/sleep 9 to my config. Here is a back trace for the crash. (gdb) bt #0 0x003c3424 in __kernel_vsyscall () #1 0xb76fa363 in __waitpid_nocancel () at ../sysdeps/unix/syscall-template.S:82 #2 0xb7693eb3 in do_system (line=0x15b3d90 /bin/sleep 9) at ../sysdeps/posix/system.c:149 #3 0x006a67ed in system (line=0x15b3d90 /bin/sleep 9) at pt-system.c:29 #4 0x0081fc28 in smb_panic_s3 (why=0x964ea1 internal error) at ../source3/lib/util.c:798 #5 0x0095356d in smb_panic (why=0x964ea1 internal error) at ../lib/util/fault.c:159 #6 0x00953237 in fault_report (sig=11) at ../lib/util/fault.c:77 #7 0x00953248 in sig_fault (sig=11) at ../lib/util/fault.c:88 #8 signal handler called #9 0x003db680 in get_dcs_insite (ctx=0xad33f398, ldb=0xad59be60, sitedn=0xad50e948, list=0xad33f458, dofqdn=false) at ../dfs_server/dfs_server_ad.c:236 #10 0x003dbcf0 in get_dcs (ctx=0xad33d668, ldb=0xad59be60, searched_site=0xad2e7f18 Default-First-Site-Name, need_fqdn=false, pset_list=0xbfba3034, flags=0) at ../dfs_server/dfs_server_ad.c:345 #11 0x003dc760 in dodc_referral (lp_ctx=0xad6e8860, sam_ctx=0xad59be60, client=0xacffa098, r=0xad33d668, domain_name=0xad33d6e9 CORP) at ../dfs_server/dfs_server_ad.c:559 #12 0x003dd3e9 in dfs_server_ad_get_referrals (lp_ctx=0xad6e8860, sam_ctx=0xad59be60, client=0xacffa098, r=0xad33d668) at ../dfs_server/dfs_server_ad.c:880 #13 0x00dd1ecd in dfs_samba4_get_referrals (handle=0xad4270f8, r=0xad33d668) at ../source3/modules/vfs_dfs_samba4.c:118 #14 0x00d3f075 in smb_vfs_call_get_dfs_referrals (handle=0xad4270f8, r=0xad33d668) at ../source3/smbd/vfs.c:1442 #15 0x00d67a1f in setup_dfs_referral (orig_conn=0xad274248, dfs_path=0xad33d608 \\CORP, max_referral_level=3, ppdata=0xad1ee3fc, pstatus=0xbfba31dc) at ../source3/smbd/msdfs.c:1102 #16 0x00d20d73 in call_trans2getdfsreferral (conn=0xad274248, req=0xad33d528, pparams=0xad1ee3f4, total_params=14, ppdata=0xad1ee3fc, total_data=0, max_data_bytes=4096) at ../source3/smbd/trans2.c:8570 #17 0x00d217ff in handle_trans2 (conn=0xad274248, req=0xad33d528, state=0xad1ee3b0) at ../source3/smbd/trans2.c:8837 #18 0x00d221cb in reply_trans2 (req=0xad33d528) at ../source3/smbd/trans2.c:9022 #19 0x00d5303c in switch_message (type=50 '2', req=0xad33d528) at ../source3/smbd/process.c:1557 #20 0x00d531cc in construct_reply (sconn=0xace3a9c0, inbuf=0x0, size=86, unread_bytes=0, seqnum=0, encrypted=false, deferred_pcd=0x0) at ../source3/smbd/process.c:1593 #21 0x00d53cba in process_smb (sconn=0xace3a9c0, inbuf=0xad33d498 , nread=86, unread_bytes=0, seqnum=0, encrypted=false, deferred_pcd=0x0) at ../source3/smbd/process.c:1844 #22 0x00d54bca in smbd_server_connection_read_handler (sconn=0xace3a9c0, fd=44) at ../source3/smbd/process.c:2433 #23 0x00d54c40 in smbd_server_connection_handler (ev=0x14138e0, fde=0x156bab0, flags=1, private_data=0xace3a9c0) at ../source3/smbd/process.c:2450 #24 0x0083b82c in run_events_poll (ev=0x14138e0, pollrtn=1, pfds=0xad198ce0, num_pfds=3) at ../source3/lib/events.c:257 #25 0x0083baf7 in s3_event_loop_once (ev=0x14138e0, location=0xec5c18 ../source3/smbd/process.c:3627) at ../source3/lib/events.c:326 #26 0x008a8133 in _tevent_loop_once (ev=0x14138e0, location=0xec5c18 ../source3/smbd/process.c:3627) at ../lib/tevent/tevent.c:530 #27 0x00d581ab in smbd_process (ev_ctx=0x14138e0, msg_ctx=0x1413960, sock_fd=44, interactive=false) at ../source3/smbd/process.c:3627 #28 0x004376d1 in smbd_accept_connection (ev=0x14138e0, fde=0xad132a98, flags=1, private_data=0xad1a1cb8) at ../source3/smbd/server.c:621 #29 0x0083b82c in run_events_poll (ev=0x14138e0, pollrtn=1, pfds=0xad198ce0, num_pfds=6) at ../source3/lib/events.c:257 #30 0x0083baf7 in s3_event_loop_once (ev=0x14138e0, location=0x43bf6e ../source3/smbd/server.c:943) at ../source3/lib/events.c:326 #31 0x008a8133 in _tevent_loop_once (ev=0x14138e0, location=0x43bf6e ../source3/smbd/server.c:943) at ../lib/tevent/tevent.c:530 #32 0x004383de in smbd_parent_loop (ev_ctx=0x14138e0, parent=0x1416630) at ../source3/smbd/server.c:943 #33 0x00439c70 in main (argc=4, argv=0xbfba3c34) at ../source3/smbd/server.c:1577 Please let me know what other info I should provide. Does this warrant a bug report? -- Wayne Andersen -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba Crashing
I have Samba 4.0.9 installed on three Centos servers. On my primary DC I am getting faults and core dumps. Oct 2 06:10:37 dc1 smbd[1195]: [2013/10/02 06:10:37.083800, 0] ../lib/util/fault.c:72(fault_report) Oct 2 06:10:37 dc1 smbd[1195]: === Oct 2 06:10:37 dc1 smbd[1195]: [2013/10/02 06:10:37.084493, 0] ../lib/util/fault.c:73(fault_report) Oct 2 06:10:37 dc1 smbd[1195]: INTERNAL ERROR: Signal 11 in pid 1195 (4.0.9) Oct 2 06:10:37 dc1 smbd[1195]: Please read the Trouble-Shooting section of the Samba HOWTO Oct 2 06:10:37 dc1 smbd[1195]: [2013/10/02 06:10:37.084928, 0] ../lib/util/fault.c:75(fault_report) Oct 2 06:10:37 dc1 smbd[1195]: === Oct 2 06:10:37 dc1 smbd[1195]: [2013/10/02 06:10:37.085268, 0] ../source3/lib/util.c:810(smb_panic_s3) Oct 2 06:10:37 dc1 smbd[1195]: PANIC (pid 1195): internal error Oct 2 06:10:37 dc1 smbd[1195]: [2013/10/02 06:10:37.087348, 0] ../source3/lib/util.c:921(log_stack_trace) Oct 2 06:10:37 dc1 smbd[1195]: BACKTRACE: 32 stack frames: Oct 2 06:10:37 dc1 smbd[1195]:#0 /usr/local/samba/lib/libsmbconf.so.0(log_stack_trace+0x2b) [0xdd2bc5] Oct 2 06:10:37 dc1 smbd[1195]:#1 /usr/local/samba/lib/libsmbconf.so.0(smb_panic_s3+0x7f) [0xdd2a23] Oct 2 06:10:37 dc1 smbd[1195]:#2 /usr/local/samba/lib/libsamba-util.so.0(smb_panic+0x2a) [0xb2c76c] Oct 2 06:10:37 dc1 smbd[1195]:#3 /usr/local/samba/lib/libsamba-util.so.0(+0x1745f) [0xb2c45f] Oct 2 06:10:37 dc1 smbd[1195]:#4 /usr/local/samba/lib/libsamba-util.so.0(+0x17470) [0xb2c470] Oct 2 06:10:37 dc1 smbd[1195]:#5 [0x521400] Oct 2 06:10:37 dc1 smbd[1195]:#6 /usr/local/samba/lib/private/libdfs_server_ad.so(+0x1d10) [0x3efd10] Oct 2 06:10:37 dc1 smbd[1195]:#7 /usr/local/samba/lib/private/libdfs_server_ad.so(+0x2780) [0x3f0780] Oct 2 06:10:37 dc1 smbd[1195]:#8 /usr/local/samba/lib/private/libdfs_server_ad.so(dfs_server_ad_get_referrals+0x38d) [0x3f1409] Oct 2 06:10:37 dc1 smbd[1195]:#9 /usr/local/samba/lib/private/libsmbd_base.so(+0x1a1e75) [0x8cfe75] Oct 2 06:10:37 dc1 smbd[1195]:#10 /usr/local/samba/lib/private/libsmbd_base.so(smb_vfs_call_get_dfs_referrals+0x3d) [0x83a1f9] Oct 2 06:10:37 dc1 smbd[1195]:#11 /usr/local/samba/lib/private/libsmbd_base.so(setup_dfs_referral+0xea) [0x8625ca] Oct 2 06:10:37 dc1 smbd[1195]:#12 /usr/local/samba/lib/private/libsmbd_base.so(+0xed942) [0x81b942] Oct 2 06:10:37 dc1 smbd[1195]:#13 /usr/local/samba/lib/private/libsmbd_base.so(+0xee3d1) [0x81c3d1] Oct 2 06:10:37 dc1 smbd[1195]:#14 /usr/local/samba/lib/private/libsmbd_base.so(reply_trans2+0x8eb) [0x81cda0] Oct 2 06:10:37 dc1 smbd[1195]:#15 /usr/local/samba/lib/private/libsmbd_base.so(+0x120055) [0x84e055] Oct 2 06:10:37 dc1 smbd[1195]:#16 /usr/local/samba/lib/private/libsmbd_base.so(+0x1201e5) [0x84e1e5] Oct 2 06:10:37 dc1 smbd[1195]:#17 /usr/local/samba/lib/private/libsmbd_base.so(+0x120c89) [0x84ec89] Oct 2 06:10:37 dc1 smbd[1195]:#18 /usr/local/samba/lib/private/libsmbd_base.so(+0x121b99) [0x84fb99] Oct 2 06:10:37 dc1 smbd[1195]:#19 /usr/local/samba/lib/private/libsmbd_base.so(+0x121c0f) [0x84fc0f] Oct 2 06:10:37 dc1 smbd[1195]:#20 /usr/local/samba/lib/libsmbconf.so.0(run_events_poll+0x481) [0xdedef0] Oct 2 06:10:37 dc1 smbd[1195]:#21 /usr/local/samba/lib/libsmbconf.so.0(+0x371bb) [0xdee1bb] Oct 2 06:10:37 dc1 smbd[1195]:#22 /usr/local/samba/lib/private/libtevent.so.0(_tevent_loop_once+0xf3) [0x3530c3] Oct 2 06:10:37 dc1 smbd[1195]:#23 /usr/local/samba/lib/private/libsmbd_base.so(smbd_process+0x120c) [0x852f84] Oct 2 06:10:37 dc1 smbd[1195]:#24 /usr/local/samba/sbin/smbd(+0x8515) [0x496515] Oct 2 06:10:37 dc1 smbd[1195]:#25 /usr/local/samba/lib/libsmbconf.so.0(run_events_poll+0x481) [0xdedef0] Oct 2 06:10:37 dc1 smbd[1195]:#26 /usr/local/samba/lib/libsmbconf.so.0(+0x371bb) [0xdee1bb] Oct 2 06:10:37 dc1 smbd[1195]:#27 /usr/local/samba/lib/private/libtevent.so.0(_tevent_loop_once+0xf3) [0x3530c3] Oct 2 06:10:37 dc1 smbd[1195]:#28 /usr/local/samba/sbin/smbd(+0x90dc) [0x4970dc] Oct 2 06:10:37 dc1 smbd[1195]:#29 /usr/local/samba/sbin/smbd(main+0x1723) [0x498964] Oct 2 06:10:37 dc1 smbd[1195]:#30 /lib/libc.so.6(__libc_start_main+0xe6) [0xb7130ce6] Oct 2 06:10:37 dc1 smbd[1195]:#31 /usr/local/samba/sbin/smbd(+0x3eb1) [0x491eb1] Oct 2 06:10:37 dc1 smbd[1195]: [2013/10/02 06:10:37.092166, 0] ../source3/lib/dumpcore.c:317(dump_core) Oct 2 06:10:37 dc1 smbd[1195]: dumping core in /usr/local/samba/var/cores/smbd These just started today. For the most part things seem to be working except for the fact that I tried adding a new user yesterday which is unable to log in. -- Wayne Andersen System Administrator Clima-Tech Corporation direct 208-947-1849 cell 208-440-2912 -- To unsubscribe from this list go
Re: [Samba] Internal DNS CNAME not working
I upgraded to 4.0.4 and still did not have any success with CNAME records. As it turns out the problem was the syntax I was using to create the records. You need to include the full domain name and the period at the end. I think the samba-tool should validate these CNAME records when adding. Does anyone think that this raises to the level of a bug? bad bin/samba-tool dns add 127.0.0.1 mydomain.com my-server CNAME samba-001 -Uadministrator good bin/samba-tool dns add 127.0.0.1 mydomain.com my-server CNAME samba-001.mydomain.com. -Uadministrator Wayne Andersen System Administrator Clima-Tech Corporation 208-947-1849 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Internal DNS CNAME not working
Centos 6.4 64bit I have just sent the details of strace and dig, in a separate mail Frankly I do not know how to read the results. dnstracer -v my-server.mydomain.com fails with, return code 3 (Name error) dnstracer -v -q cname my-server.mydomain.com succeeds, returns Resource data (9)samba-001 It looks like my resolver only checks the local dns for A records. Wayne Andersen System Administrator Clima-Tech Corporation 208-947-1849 On 03/28/2013 09:50 PM, Günter Kukkukk wrote: Am Donnerstag, 28. März 2013, 23:42:50 schrieb Wayne Andersen: Samba 4.0.0 I am running all of these commands from the PDC DC1. /etc/resolv.conf domain mydomain.com nameserver 127.0.0.1 smb.conf does have a dns forwarder = 192.168.1.2 samba-001 the actual host name, and also a PDC, in the same domain. I would like to have the alias my-server point to samba-001. I added a CNAME record: bin/samba-tool dns add 127.0.0.1 mydomain.com my-server CNAME samba-001 -Uadministrator I can query it. bin/samba-tool dns query 127.0.0.1 mydomain.com my-server CNAME Password for [administra...@mydomain.com]: Name=, Records=1, Children=0 CNAME: samba-001. (flags=f0, serial=6, ttl=900) Host finds it. host -t CNAME my-server.mydomain.com my-server.mydomain.com is an alias for samba-001. I cannot ping it, it is not resolving properly. ping samba-001, resolves to the proper IP ping samba-001.mydomain.com, resolves to the proper IP ping my-server, ping: unknown host , ping: unknown host which unix/linux distro and version are you running? Try strace ping -c1 my-server.mydomain.com and look for errors. I did the same tests here on opensuse (samba git master) and don't see that failure. What do you get with: dig @localhost my-server.mydomain.com ? Cheers, Günter -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Internal DNS CNAME not working
Samba 4.0.0 I am running all of these commands from the PDC DC1. /etc/resolv.conf domain mydomain.com nameserver 127.0.0.1 smb.conf does have a dns forwarder = 192.168.1.2 samba-001 the actual host name, and also a PDC, in the same domain. I would like to have the alias my-server point to samba-001. I added a CNAME record: bin/samba-tool dns add 127.0.0.1 mydomain.com my-server CNAME samba-001 -Uadministrator I can query it. bin/samba-tool dns query 127.0.0.1 mydomain.com my-server CNAME Password for [administra...@mydomain.com]: Name=, Records=1, Children=0 CNAME: samba-001. (flags=f0, serial=6, ttl=900) Host finds it. host -t CNAME my-server.mydomain.com my-server.mydomain.com is an alias for samba-001. I cannot ping it, it is not resolving properly. ping samba-001, resolves to the proper IP ping samba-001.mydomain.com, resolves to the proper IP ping my-server, ping: unknown host ping my-server.mydomain.com, ping: unknown host -- Wayne Andersen System Administrator Clima-Tech Corporation 208-947-1849 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba