![FreeBSD 8 和 Samba 3.3 smb_panic](https://linux22.com/image/516242/FreeBSD%208%20%E5%92%8C%20Samba%203.3%20smb_panic.png)
是什么原因导致 Samba 崩溃?需要帮助诊断...
[2010/06/14 16:11:42, 0] lib/fault.c:fault_report(40)
===============================================================
[2010/06/14 16:11:42, 0] lib/fault.c:fault_report(41)
INTERNAL ERROR: Signal 11 in pid 951 (3.3.8)
Please read the Trouble-Shooting section of the Samba3-HOWTO
[2010/06/14 16:11:42, 0] lib/fault.c:fault_report(43)
From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2010/06/14 16:11:42, 0] lib/fault.c:fault_report(44)
===============================================================
[2010/06/14 16:11:42, 0] lib/util.c:smb_panic(1673)
PANIC (pid 951): internal error
[2010/06/14 16:53:40, 0] smbd/server.c:main(1274)
编辑:
更多信息——
日志.smbd:
[2010/06/14 15:59:02, 0] smbd/server.c:main(1274)
smbd version 3.3.8 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/06/14 15:59:02, 0] printing/print_cups.c:cups_connect(103)
Unable to connect to CUPS server localhost:631 - Connection refused
[2010/06/14 15:59:02, 0] printing/print_cups.c:cups_connect(103)
Unable to connect to CUPS server localhost:631 - Connection refused
smb配置文件
[global]
workgroup = WASH
netbios name = PROD1
[media]
path = /jon/media
read only = no
guest ok = yes
答案1
你的 rc.conf 文件看起来不错,但你可能只想简化为samba_enable="YES"
有一个 pid 文件/var/run
并不一定意味着什么。它可能是一个旧文件,或者其他数百个文件中的任何一个;它不是 procfs。
检查 /var/log/samba 目录中的日志文件;其中应该有几个,具有最新时间戳的日志文件应该包含有用的信息(例如崩溃原因)。
编辑:
这可能是 FreeBSD 7/8/9 上 3.3.x 的一个已知问题,在启用服务发现的情况下。出于某种原因,默认情况下会启用该功能。要修复:
cd /usr/ports/net/samba33
make config
uncheck "With DNS service discovery support" (if it wasn't checked, this isn't the problem)
make clean; make && make deinstall && make reinstall
/usr/local/etc/rc.d/samba restart