[Bug 1088574] New: Just updated TW now SMB daemon fails to start
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574 Bug ID: 1088574 Summary: Just updated TW now SMB daemon fails to start Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Samba Assignee: samba-maintainers@SuSE.de Reporter: petr.m@seznam.cz QA Contact: samba-maintainers@SuSE.de Found By: --- Blocker: --- SAMBA fails to start after last zypper dup: server1:/var/log/samba # systemctl start smb nmb Job for nmb.service failed because the control process exited with error code. See "systemctl status nmb.service" and "journalctl -xe" for details. Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details. server1:/var/log/samba # journalctl -xe -- Subject: Unit smb.service has begun start-up -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit smb.service has begun starting up. dub 08 12:27:06 server1 nmbd[2996]: [2018/04/08 12:27:06.622500, 0] ../lib/util/become_daemon.c:124(exit_daemon) dub 08 12:27:06 server1 systemd[1]: Starting Samba NMB Daemon... -- Subject: Unit nmb.service has begun start-up -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit nmb.service has begun starting up. dub 08 12:27:06 server1 nmbd[2996]: exit_daemon: STATUS=daemon failed to start: Failed to create session, error code 1 dub 08 12:27:06 server1 systemd[1]: nmb.service: Main process exited, code=exited, status=1/FAILURE dub 08 12:27:06 server1 smbd[2998]: [2018/04/08 12:27:06.856898, 0] ../lib/util/become_daemon.c:124(exit_daemon) dub 08 12:27:06 server1 systemd[1]: nmb.service: Failed with result 'exit-code'. dub 08 12:27:06 server1 smbd[2998]: exit_daemon: STATUS=daemon failed to start: Failed to create session, error code 1 dub 08 12:27:06 server1 systemd[1]: Failed to start Samba NMB Daemon. -- Subject: Unit nmb.service has failed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit nmb.service has failed. -- -- The result is RESULT. dub 08 12:27:06 server1 systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE dub 08 12:27:06 server1 systemd[1]: smb.service: Failed with result 'exit-code'. dub 08 12:27:06 server1 systemd[1]: Failed to start Samba SMB Daemon. -- Subject: Unit smb.service has failed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit smb.service has failed. -- -- The result is RESULT. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
Petr Matula
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
Arjen de Korte
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574#c1
--- Comment #1 from Petr Matula
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574#c2
--- Comment #2 from Arjen de Korte
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574#c3
Aurelien Aptel
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574#c4
--- Comment #4 from Arjen de Korte
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574#c5
Noel Power
I don't think flags from /etc/sysconfig/samba and/or systemd startup files are the problem here. I updated /etc/sysconfig/samba and confirmed that the systemd files are updated.
I get exactly the same error if I run these from the commandline:
/usr/sbin/nmbd -D -F /usr/sbin/smbd -D -F
This problem was first introduced when samba went from 4.7.6 to 4.8.0, so I think we should be looking in what changed there.
as Aurelien says the problem is to do with new values (currently missing) that need to be in the systemd files (and/or) in the /etc/sysconfig/samba file As a workaround a minimal change that should get you going would be in /usr/lib/systemd/system/smb.service (nmb.service & winbind.service) do similar to -ExecStart=/usr/sbin/smbd $SMBDOPTIONS +ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS systemctl daemon-reload then try and restart the services -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574#c6
--- Comment #6 from Noel Power
-ExecStart=/usr/sbin/smbd $SMBDOPTIONS +ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS
and of course replacing smbd above with (nmb, winbindd) as appropriate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574#c7
--- Comment #7 from Arjen de Korte
(In reply to Noel Power from comment #5)
-ExecStart=/usr/sbin/smbd $SMBDOPTIONS +ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS
and of course replacing smbd above with (nmb, winbindd) as appropriate
I just found out myself :-) This is indeed the fix. Remove the "-D -F" from the NMBDOPTIONS and SMBDOPTIONS from /etc/sysconfig/samba and adjust /usr/lib/systemd/system/nmb.service: -ExecStart=/usr/sbin/nmbd $NMBDOPTIONS +ExecStart=/usr/sbin/nmbd --foreground --no-process-group $NMBDOPTIONS /usr/lib/systemd/system/smb.service: -ExecStart=/usr/sbin/smbd $SMBDOPTIONS +ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS and voila, everything is back in order. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
Björn Voigt
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574#c8
--- Comment #8 from Aurelien Aptel
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574#c9
--- Comment #9 from Arjen de Korte
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574
http://bugzilla.opensuse.org/show_bug.cgi?id=1088574#c10
Aurelien Aptel
participants (1)
-
bugzilla_noreply@novell.com