Ubuntu 17.04 上的 Winbind 无法启动

Ubuntu 17.04 上的 Winbind 无法启动

由于我对 Linux 的了解非常有限,我提前表示歉意。我在测试环境中安装了 Ubuntu 17.04 Server,并尝试安装 Samba。在安装过程中,winbind 守护程序无法启动。我apt update && upgrade在安装 Samba 之前已经运行过,但似乎没有帮助。我测试了 Ubuntu 版本 16.04 LTS,它运行正常,没有任何错误。我有点不明白为什么 Winbind 无法在 17.04 上运行,谷歌搜索结果没有帮助。如果有人需要更多信息,我很乐意提供,但你可能需要向我展示执行此操作的命令。

谢谢

Jun 14 10:53:18 UbtNicholas systemd[1]: Failed to start Samba Winbind Daemon.
-- Subject: Unit winbind.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit winbind.service has failed.
--
-- The result is failed.
Jun 14 10:53:18 UbtNicholas systemd[1]: winbind.service: Unit entered failed state.
Jun 14 10:53:18 UbtNicholas systemd[1]: winbind.service: Failed with result 'exit-code'.
Jun 14 10:53:30 UbtNicholas sudo[23772]: nilaberge : TTY=pts/0 ; PWD=/home/nilaberge ; USER=root ; COMMAND=/bin/su
Jun 14 10:53:30 UbtNicholas sudo[23772]: pam_unix(sudo:session): session opened for user root by nilaberge(uid=0)
Jun 14 10:53:30 UbtNicholas su[23773]: Successful su for root by root
Jun 14 10:53:30 UbtNicholas su[23773]: + /dev/pts/0 root:root
Jun 14 10:53:30 UbtNicholas su[23773]: pam_unix(su:session): session opened for user root by nilaberge(uid=0)
Jun 14 10:53:30 UbtNicholas su[23773]: pam_systemd(su:session): Cannot create session: Already running in a session
Jun 14 10:53:55 UbtNicholas systemd[1]: Starting Samba Winbind Daemon...
-- Subject: Unit winbind.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit winbind.service has begun starting up.
Jun 14 10:53:55 UbtNicholas systemd[1]: winbind.service: Supervising process 23803 which is not our child. We'll most likely not notice
Jun 14 10:53:55 UbtNicholas systemd[1]: winbind.service: Main process exited, code=exited, status=1/FAILURE
Jun 14 10:53:55 UbtNicholas systemd[1]: Failed to start Samba Winbind Daemon.
-- Subject: Unit winbind.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit winbind.service has failed.
--
-- The result is failed.
Jun 14 10:53:55 UbtNicholas systemd[1]: winbind.service: Unit entered failed state.
Jun 14 10:53:55 UbtNicholas systemd[1]: winbind.service: Failed with result 'exit-code'.

有一个几乎类似的问题,但该问题假设它在 17.04 上运行

类似问题的链接:Ubuntu 17.04 重启后 Winbind 崩溃

更新 1:按照 andreas 的建议运行 testparm 后,它发现一些旧的行,所以我删除了它们并重新启动了 winbind 服务。仍然出现错误,但 systemCTL 发现了一些可能更准确地指出问题所在的东西。

Jun 26 10:14:29 UbtNicholas winbindd[1493]: [2017/06/26 10:14:29.432130,  0] ../source3/winbindd/winbindd_cache.c:3244(initialize_winbindd_cache)
Jun 26 10:14:29 UbtNicholas winbindd[1493]:   initialize_winbindd_cache: clearing cache and re-creating with version number 2
Jun 26 10:14:29 UbtNicholas winbindd[1493]: [2017/06/26 10:14:29.435598,  0] ../source3/winbindd/winbindd_util.c:892(init_domain_list)
Jun 26 10:14:29 UbtNicholas winbindd[1493]:   Could not fetch our SID - did we join?
Jun 26 10:14:29 UbtNicholas winbindd[1493]: [2017/06/26 10:14:29.436118,  0] ../source3/winbindd/winbindd.c:1401(winbindd_register_handlers)
Jun 26 10:14:29 UbtNicholas winbindd[1493]:   unable to initialize domain list
Jun 26 10:14:29 UbtNicholas systemd[1]: winbind.service: Main process exited, code=exited, status=1/FAILURE
Jun 26 10:14:29 UbtNicholas systemd[1]: Failed to start Samba Winbind Daemon.
Jun 26 10:14:29 UbtNicholas systemd[1]: winbind.service: Unit entered failed state.
Jun 26 10:14:29 UbtNicholas systemd[1]: winbind.service: Failed with result 'exit-code'.

答案1

我只是把这个扔在这里给任何和我遇到同样问题的人。当你启动 winbind 时,它只是显示“无法启动 Samba Winbind Deamon。”你遇到了一个问题,日志被弃用了,因此看不到真正出了什么问题。

运行 testparm(正如 andreas 所说)。它会向您显示有关已弃用内容的警告。您正在寻找的是 syslog 已弃用。它可能不会首先显示,直到您解决其他警告。

'Syslog = 0' 应为 'logging = syslog@1 /var/log/samba/log.%m' 现在,启动 winbind 时,您将收到一条有关 journalctl -xe 中出现问题的讯息。请参阅:警告“syslog”选项已被弃用了解更多信息。

相关内容