I have been having an intermittent problem with net/samba43 crashing and then restarting. By rebooting the system or entering
First the environment
I believe that the code below was produced when the RELEASE was p9? I have updated the system since this error.
Here is the PANIC;
I have tried about every combination of the configuration of the printer section. I don't have any printers attached to the box so I don't need any set up, I let it go to the default.
Here is the net/samba43 current configuration;
If I don't catch the panic it will spit out 4 or 5 and then settle down for a few hours or days at the most.
If anybody has any ideas, I am open to suggestions.
Thanks!
Keith
# smbd restart
it will run fine for several weeks before crashing again. I have not been able to find the source of the problem. I first discovered the problem when a backup from a Windows machine was writing to the FreeBSD system. All of the ports are up to date at this time. I have no printers set up and I have tried several setting in /usr/local/etc/smb4.conf with no relieve.First the environment
Code:
Copyright (c) 1992-2015 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.2-RELEASE-p14 #0: Wed Mar 16 20:46:12 UTC 2016
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
CPU: AMD Athlon(tm) 64 Processor 3500+ (2210.23-MHz K8-class CPU)
Origin="AuthenticAMD" Id=0xf7a Family=0xf Model=0x7 Stepping=10 Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow!+,3DNow!>
real memory = 4294967296 (4096 MB)
avail memory = 4074975232 (3886 MB)
I believe that the code below was produced when the RELEASE was p9? I have updated the system since this error.
Here is the PANIC;
Code:
Mar 15 09:22:21 Prometheus smbd[27114]: [2016/03/15 09:22:21.201384, 0] ../source3/lib/util.c:481(reinit_after_fork)
Mar 15 09:22:21 Prometheus smbd[27114]: messaging_reinit() failed: NT_STATUS_ACCESS_DENIED
Mar 15 09:22:21 Prometheus smbd[27114]: [2016/03/15 09:22:21.215043, 0] ../source3/printing/print_cups.c:480(cups_pcap_load_async)
Mar 15 09:22:21 Prometheus smbd[27114]: cups_pcap_load_async: reinit_after_fork() failed
Mar 15 09:22:21 Prometheus smbd[27114]: [2016/03/15 09:22:21.215237, 0] ../source3/lib/util.c:789(smb_panic_s3)
Mar 15 09:22:21 Prometheus smbd[27114]: PANIC (pid 27114): cups_pcap_load_async: reinit_after_fork() failed
Mar 15 09:22:21 Prometheus smbd[27114]: [2016/03/15 09:22:21.225775, 0] ../source3/lib/util.c:900(log_stack_trace)
Mar 15 09:22:21 Prometheus smbd[27114]: BACKTRACE: 16 stack frames:
Mar 15 09:22:21 Prometheus smbd[27114]: #0 0x803ac8b21 <log_stack_trace+0x21> at /usr/local/lib/libsmbconf.so.0
Mar 15 09:22:21 Prometheus smbd[27114]: #1 0x803ac8908 <smb_panic_s3+0x98> at /usr/local/lib/libsmbconf.so.0
Mar 15 09:22:21 Prometheus smbd[27114]: #2 0x80168f4b5 <smb_panic+0x35> at /usr/local/lib/libsamba-util.so.0
Mar 15 09:22:21 Prometheus smbd[27114]: #3 0x801acd602 <cups_cache_reload+0x5a2> at /usr/local/lib/samba/libsmbd-base-samba4.so
Mar 15 09:22:21 Prometheus smbd[27114]: #4 0x801acd100 <cups_cache_reload+0xa0> at /usr/local/lib/samba/libsmbd-base-samba4.so
Mar 15 09:22:21 Prometheus smbd[27114]: #5 0x801acccac <pcap_cache_reload+0x17c> at /usr/local/lib/samba/libsmbd-base-samba4.so
Mar 15 09:22:21 Prometheus smbd[27114]: #6 0x801aaf79d <printing_subsystem_update+0x22d> at /usr/local/lib/samba/libsmbd-base-samba4.so
Mar 15 09:22:21 Prometheus smbd[27114]: #7 0x803aed35c <event_add_idle+0x54c> at /usr/local/lib/libsmbconf.so.0
Mar 15 09:22:21 Prometheus smbd[27114]: #8 0x80545d145 <tevent_common_loop_timer_delay+0x165> at /usr/local/lib/libtevent.so.0
Mar 15 09:22:21 Prometheus smbd[27114]: #9 0x803aec32f <run_events_poll+0x8f> at /usr/local/lib/libsmbconf.so.0
Mar 15 09:22:21 Prometheus smbd[27114]: #10 0x803aed7a4 <event_add_idle+0x994> at /usr/local/lib/libsmbconf.so.0
Mar 15 09:22:21 Prometheus smbd[27114]: #11 0x805458842 <_tevent_loop_once+0x72> at /usr/local/lib/libtevent.so.0
Mar 15 09:22:21 Prometheus smbd[27114]: #12 0x805458a7b <tevent_common_loop_wait+0x3b> at /usr/local/lib/libtevent.so.0
Mar 15 09:22:21 Prometheus smbd[27114]: #13 0x801bb770f <smbd_process+0xe2f> at /usr/local/lib/samba/libsmbd-base-samba4.so
Mar 15 09:22:21 Prometheus smbd[27114]: #14 0x102ae30 <main+0x1e80> at /usr/local/sbin/smbd
Mar 15 09:22:21 Prometheus smbd[27114]: #15 0x1027801 <_start+0x1a1> at /usr/local/sbin/smbd
Mar 15 09:22:21 Prometheus smbd[27114]: [2016/03/15 09:22:21.227736, 0] ../source3/lib/dumpcore.c:313(dump_core)
Mar 15 09:22:21 Prometheus smbd[27114]: unable to change to %N.core
Mar 15 09:22:21 Prometheus smbd[27114]: refusing to dump core
Mar 15 09:23:32 Prometheus login: ROOT LOGIN (root) ON ttyv0
Mar 15 09:23:41 Prometheus smbd[27122]: [2016/03/15 09:23:41.019466, 0] ../source3/lib/util.c:481(reinit_after_fork)
Mar 15 09:23:41 Prometheus smbd[27122]: messaging_reinit() failed: NT_STATUS_ACCESS_DENIED
Mar 15 09:23:41 Prometheus smbd[27122]: [2016/03/15 09:23:41.020026, 0] ../source3/printing/print_cups.c:480(cups_pcap_load_async)
Mar 15 09:23:41 Prometheus smbd[27122]: cups_pcap_load_async: reinit_after_fork() failed
Mar 15 09:23:41 Prometheus smbd[27122]: [2016/03/15 09:23:41.020059, 0] ../source3/lib/util.c:789(smb_panic_s3)
Mar 15 09:23:41 Prometheus smbd[27122]: PANIC (pid 27122): cups_pcap_load_async: reinit_after_fork() failed
Mar 15 09:23:41 Prometheus smbd[27122]: [2016/03/15 09:23:41.022075, 0] ../source3/lib/util.c:900(log_stack_trace)
Mar 15 09:23:41 Prometheus smbd[27122]: BACKTRACE: 16 stack frames:
Mar 15 09:23:41 Prometheus smbd[27122]: #0 0x803ac8b21 <log_stack_trace+0x21> at /usr/local/lib/libsmbconf.so.0
Mar 15 09:23:41 Prometheus smbd[27122]: #1 0x803ac8908 <smb_panic_s3+0x98> at /usr/local/lib/libsmbconf.so.0
Mar 15 09:23:41 Prometheus smbd[27122]: #2 0x80168f4b5 <smb_panic+0x35> at /usr/local/lib/libsamba-util.so.0
Mar 15 09:23:41 Prometheus smbd[27122]: #3 0x801acd602 <cups_cache_reload+0x5a2> at /usr/local/lib/samba/libsmbd-base-samba4.so
Mar 15 09:23:41 Prometheus smbd[27122]: #4 0x801acd100 <cups_cache_reload+0xa0> at /usr/local/lib/samba/libsmbd-base-samba4.so
Mar 15 09:23:41 Prometheus smbd[27122]: #5 0x801acccac <pcap_cache_reload+0x17c> at /usr/local/lib/samba/libsmbd-base-samba4.so
Mar 15 09:23:41 Prometheus smbd[27122]: #6 0x801aaf79d <printing_subsystem_update+0x22d> at /usr/local/lib/samba/libsmbd-base-samba4.so
Mar 15 09:23:41 Prometheus smbd[27122]: #7 0x803aed35c <event_add_idle+0x54c> at /usr/local/lib/libsmbconf.so.0
Mar 15 09:23:41 Prometheus smbd[27122]: #8 0x80545d145 <tevent_common_loop_timer_delay+0x165> at /usr/local/lib/libtevent.so.0
Mar 15 09:23:41 Prometheus smbd[27122]: #9 0x803aec32f <run_events_poll+0x8f> at /usr/local/lib/libsmbconf.so.0
Mar 15 09:23:41 Prometheus smbd[27122]: #10 0x803aed7a4 <event_add_idle+0x994> at /usr/local/lib/libsmbconf.so.0
Mar 15 09:23:41 Prometheus smbd[27122]: #11 0x805458842 <_tevent_loop_once+0x72> at /usr/local/lib/libtevent.so.0
Mar 15 09:23:41 Prometheus smbd[27122]: #12 0x805458a7b <tevent_common_loop_wait+0x3b> at /usr/local/lib/libtevent.so.0
Mar 15 09:23:41 Prometheus smbd[27122]: #13 0x801bb770f <smbd_process+0xe2f> at /usr/local/lib/samba/libsmbd-base-samba4.so
Mar 15 09:23:41 Prometheus smbd[27122]: #14 0x102ae30 <main+0x1e80> at /usr/local/sbin/smbd
Mar 15 09:23:41 Prometheus smbd[27122]: #15 0x1027801 <_start+0x1a1> at /usr/local/sbin/smbd
Mar 15 09:23:41 Prometheus smbd[27122]: [2016/03/15 09:23:41.022508, 0] ../source3/lib/dumpcore.c:313(dump_core)
Mar 15 09:23:41 Prometheus smbd[27122]: unable to change to %N.core
Mar 15 09:23:41 Prometheus smbd[27122]: refusing to dump core
Mar 15 09:23:41 Prometheus smbd[27115]: [2016/03/15 09:23:41.027357, 0] ../lib/util/pidfile.c:146(pidfile_unlink)
Mar 15 09:23:41 Prometheus smbd[27115]: Failed to delete pidfile /var/run/samba4/smbd.pid. Error was No such file or directory
Mar 15 09:30:00 Prometheus ntpdate[27144]: ntpdate 4.2.8p6-a (1)
Mar 15 09:30:07 Prometheus ntpdate[27144]: step time server 45.79.10.228 offset -1.411578 sec
Mar 15 09:30:08 Prometheus ntpdate[27145]: ntpdate 4.2.8p6-a (1)
Mar 15 09:30:14 Prometheus ntpdate[27145]: adjust time server 128.138.141.172 offset -0.000663 sec
Mar 15 09:39:05 Prometheus su: Keith to root on /dev/pts/1
Mar 15 09:40:35 Prometheus smbd[27178]: [2016/03/15 09:40:35.690422, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Mar 15 09:40:35 Prometheus smbd[27178]: STATUS=daemon 'smbd' finished starting up and ready to serve connections
Here is the net/samba43 current configuration;
Code:
root@Prometheus:/usr/libexec # testparm
Load smb config files from /usr/local/etc/smb4.conf
Processing section "[homes]"
Processing section "[printers]"
NOTE: Service printers is flagged unavailable.
Processing section "[public]"
Processing section "[Movies]"
Processing section "[Photos]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = GROUP1
realm = GROUP1
interfaces = 192.168.20.7
bind interfaces only = Yes
server role = standalone server
map to guest = Bad User
client max protocol = SMB2
client min protocol = SMB2
idmap config * : range =
idmap config * : backend = tdb
printing = bsd
map readonly = no
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba4
guest ok = Yes
printable = Yes
browseable = No
available = No
[public]
comment = %h Shared Public Directory
path = /storage2/public
username = nobody
force user = nobody
force group = nobody
group = nobody
read only = No
force create mode = 0666
force directory mode = 0777
guest ok = Yes
[Movies]
comment = %h Shared Public Directory
path = /storage3/Movies
username = nobody
force user = nobody
force group = nobody
group = nobody
read only = No
force create mode = 0666
force directory mode = 0777
guest ok = Yes
[Photos]
comment = %h Shared Public Directory
path = /storage4/Photos
username = nobody
force user = nobody
force group = nobody
group = nobody
read only = No
force create mode = 0666
force directory mode = 0777
guest ok = Yes
root@Prometheus:/usr/libexec #
If I don't catch the panic it will spit out 4 or 5 and then settle down for a few hours or days at the most.
If anybody has any ideas, I am open to suggestions.
Thanks!
Keith