Bug 1209488

Summary: winbind fails to start up
Product: [Fedora] Fedora Reporter: David Woodhouse <dwmw2>
Component: sambaAssignee: Guenther Deschner <gdeschner>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: abokovoy, asn, gdeschner, jlayton, madam, sbose, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-07 13:53:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Woodhouse 2015-04-07 13:24:36 UTC
Presumably since the latest samba upgrade, the winbind service no longer starts up.

If I run 'systemctl start winbind' it does actually start running, and it works fine for a while but the systemctl command doesn't return; it's waiting for something.

The /run/winbindd.pid file exists and correctly contains the pid of the running winbind dæmon.

After a while, the systemctl command reports failure.

# systemctl --no-ask-password start winbind
Job for winbind.service failed. See "systemctl status winbind.service" and "journalctl -xe" for details.


However, the logs give me no indication about *why* systemd chose to kill the running winbindd:


[root@i7 samba]# systemctl status winbind.service
● winbind.service - Samba Winbind Daemon
   Loaded: loaded (/usr/lib/systemd/system/winbind.service; enabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Tue 2015-04-07 14:20:11 BST; 13s ago
  Process: 14042 ExecStart=/usr/sbin/winbindd $WINBINDOPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 14042 (code=exited, status=0/SUCCESS)

Apr 07 14:20:11 i7.infradead.org systemd[1]: winbind.service start operation timed out. Terminating.
Apr 07 14:20:11 i7.infradead.org winbindd[14042]: [2015/04/07 14:20:11.580331,  0, pid=14042, effective(0, 0), real(0, 0), class=winbind] ../source3/winbindd/winbindd.c:266(winbindd_sig_term_handler)
Apr 07 14:20:11 i7.infradead.org winbindd[14044]: [2015/04/07 14:20:11.580338,  0, pid=14044, effective(0, 0), real(0, 0), class=winbind] ../source3/winbindd/winbindd.c:266(winbindd_sig_term_handler)
Apr 07 14:20:11 i7.infradead.org winbindd[14074]: [2015/04/07 14:20:11.580346,  0, pid=14074, effective(0, 0), real(0, 0), class=winbind] ../source3/winbindd/winbindd.c:266(winbindd_sig_term_handler)
Apr 07 14:20:11 i7.infradead.org winbindd[14044]: Got sig[15] terminate (is_parent=0)
Apr 07 14:20:11 i7.infradead.org winbindd[14042]: Got sig[15] terminate (is_parent=1)
Apr 07 14:20:11 i7.infradead.org winbindd[14074]: Got sig[15] terminate (is_parent=0)
Apr 07 14:20:11 i7.infradead.org systemd[1]: Failed to start Samba Winbind Daemon.
Apr 07 14:20:11 i7.infradead.org systemd[1]: Unit winbind.service entered failed state.
Apr 07 14:20:11 i7.infradead.org systemd[1]: winbind.service failed.

I have SELinux in Permissive mode, which means this shouldn't be relevant:

type=AVC msg=audit(1428412722.492:760): avc:  denied  { sendto } for  pid=14044 comm="winbindd" path="/var/lib/samba/msg/14042" scontext=system_u:system_r:winbind_t:s0 tcontext=system_u:system_r:winbind_t:s0 tclass=unix_dgram_socket permissive=1
type=SYSCALL msg=audit(1428412722.492:760): arch=c000003e syscall=46 success=yes exit=68 a0=8 a1=7fff8569a550 a2=0 a3=13f items=0 ppid=14042 pid=14044 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="winbindd" exe="/usr/sbin/winbindd" subj=system_u:system_r:winbind_t:s0 key=(null)
type=PROCTITLE msg=audit(1428412722.492:760): proctitle="/usr/sbin/winbindd"

Comment 1 David Woodhouse 2015-04-07 13:53:49 UTC
[dwoodhou@i7 ~]$ ldd /usr/sbin/winbindd | grep systemd
[dwoodhou@i7 ~]$

*** This bug has been marked as a duplicate of bug 1207381 ***