1
sagaxu 2017-04-03 20:09:46 +08:00
See 'systemctl status smbd.service' and 'journalctl -xn' for details.
|
4
wex OP @him007
smbd.service - LSB: start Samba SMB/CIFS daemon (smbd) Loaded: loaded (/etc/init.d/smbd) Active: failed (Result: exit-code) since Mon 2017-04-03 14:06:30 UTC; 9s ago Process: 3320 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE) |
7
MFC 2017-04-03 22:53:19 +08:00
我感觉自从用上 systemd 后,出错信息要么不得要领,要么含混晦涩,远不如以前那么直达要害。
建议直接运行 smbd 的 debug 模式,看看到底是哪儿的问题。 |
10
him007 2017-04-03 23:00:05 +08:00 via Android
对了,运行 /etc/init.d/smbd start 出现什么内容呢?
|
12
wex OP @him007
[....] Starting smbd (via systemctl): smbd.serviceJob for smbd.service failed. See 'systemctl status smbd.service' and 'journalctl -xn' for details. failed! |
13
billlee 2017-04-03 23:49:49 +08:00
r#4 @wex 这个是 systemd 兼容旧的 sys v init script 启动的,日志应该还是在 /var/log 下,你找找有没有
|
14
Osk 2017-04-03 23:59:13 +08:00
看看 journalctl -b | grep smbd 会不会有更多消息,
试试 testparm 看下配置文件是否正确, 需要的共享文件夹是否存在 还不行可能要调整 samba 的日志级别看看了 |
15
him007 2017-04-03 23:59:31 +08:00 via Android
运行`smbd -F -S` ,,会输出日志,下面是我在 archlinux 上运行的
shell>smbd -F -S 23:48:51 smbd version 4.5.8 started. Copyright Andrew Tridgell and the Samba Team 1992-2016 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Processing section "[home]" Processing section "[FILE]" Processing section "[SSD]" Processing section "[music]" added interface wlan0 ip=192.168.111.10 bcast=192.168.111.255 netmask=255.255.255.0 INFO: Profiling support unavailable in this build. ERROR: smbd is already running. File /var/run/smbd.pid exists and process id 742 is running. |
16
wex OP @billlee 不知道是不是这个
[2017/04/03 08:34:33.385682, 0] ../source3/nmbd/nmbd.c:58(terminate) Got SIGTERM: going down... [2017/04/03 08:35:21, 0] ../source3/nmbd/nmbd.c:908(main) [2017/04/03 08:35:21.670403, 0] ../lib/util/become_daemon.c:124(daemon_ready) STATUS=daemon 'nmbd' finished starting up and ready to serve connections [2017/04/03 08:54:30.536025, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) ***** ***** [2017/04/03 08:35:11, 0] ../source3/nmbd/nmbd.c:908(main) nmbd version 4.2.14-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2014 [2017/04/03 08:35:11.610192, 0] ../lib/util/become_daemon.c:124(daemon_ready) STATUS=daemon 'nmbd' finished starting up and ready to serve connections [2017/04/03 10:28:31.900755, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) ***** [2017/04/03 11:48:58.889021, 0] ../source3/nmbd/nmbd.c:58(terminate) Got SIGTERM: going down... [2017/04/03 11:49:01, 0] ../source3/nmbd/nmbd.c:908(main) nmbd version 4.2.14-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2014 [2017/04/03 11:49:01.479190, 0] ../lib/util/become_daemon.c:124(daemon_ready) STATUS=daemon 'nmbd' finished starting up and ready to serve connections [2017/04/03 11:49:17.088986, 0] ../source3/nmbd/nmbd.c:58(terminate) Got SIGTERM: going down... [2017/04/03 11:49:23, 0] ../source3/nmbd/nmbd.c:908(main) nmbd version 4.2.14-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2014 [2017/04/03 11:49:46.269279, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) ***** ***** [2017/04/03 11:51:39.389475, 0] ../source3/nmbd/nmbd.c:58(terminate) Got SIGTERM: going down... [2017/04/03 11:51:41, 0] ../source3/nmbd/nmbd.c:908(main) nmbd version 4.2.14-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2014 [2017/04/03 11:52:05.009546, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) ***** Samba name server RASPBERRYPI is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.111 ***** [2017/04/03 11:59:40.236669, 0] ../source3/nmbd/nmbd.c:58(terminate) Got SIGTERM: going down... [2017/04/03 12:05:37, 0] ../source3/nmbd/nmbd.c:908(main) nmbd version 4.2.14-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2014 [2017/04/03 12:05:37.234519, 0] ../lib/util/become_daemon.c:124(daemon_ready) STATUS=daemon 'nmbd' finished starting up and ready to serve connections [2017/04/03 12:06:00.269409, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) ***** Samba name server RASPBERRYPI is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.111 |
17
wex OP @him007 输出如下
Failed to create /var/log/samba/cores for user 1000 with mode 0700 Unable to setup corepath for smbd: Operation not permitted smbd version 4.2.14-Debian started. |
19
him007 2017-04-04 00:16:11 +08:00 via Android
|
21
wex OP @him007
smbd version 4.2.14-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2014 WARNING: No path in service #homes - making it unavailable! set_variable_helper(yes#任何人都具有了访问修改的权限): value is not boolean! |
22
winsert 2017-05-18 17:03:18 +08:00
是配置文件有问题
|