[Bug 1078699] Re: winbind won't start at boot

Clint Byrum clint at fewbar.com
Fri Nov 30 18:17:39 UTC 2012


Ok, first off, winbind.conf has this old relic start on

start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]

This will start winbind as soon as *any* network interface is up, which
is not what we want. The appropriate conditions are:

start on runlevel [2345]
stop on runlevel [^2345]

This will make sure that winbind waits for all of the interfaces in
/etc/network/interfaces to be up.

Now, in the lsb-init script from Debian:

# Should-Start:      samba

This means that winbind needs to ensure samba is started before it
starts. Now, samba is broken up into smbd and nmbd in the Ubuntu
packages. So the pre-start should really have this:

if [ -f /etc/init/smbd.conf ] ; then
    start wait-for-state WAITER=winbind WAIT_FOR=smbd
fi
# repeat for nmbd

However, its not entirely clear if any of this will actually solve the
issue reported here. Nevertheless, its stuff that needs to happen.

Diego, is there any way you can look through the logs on an affected
system and find the error messages from winbind? I thin it logs
somewhere in /var/log/samba.

** Changed in: samba (Ubuntu)
       Status: New => Incomplete

** Changed in: samba (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1078699

Title:
  winbind won't start at boot

Status in “samba” package in Ubuntu:
  Incomplete

Bug description:
  Winbind, by default, gets started too early (S20), resulting in daemon termination and impossible login w/ users from AD.
  If I connect as a local admin and restart winbind service, all goes well.

  In /var/log/apport.log :
  ERROR: apport (pid 1566) Tue Nov 13 11:07:39 2012: called for pid 872, signal 6
  ERROR: apport (pid 1566) Tue Nov 13 11:07:39 2012: executable: /usr/sbin/winbindd (command line "/usr/sbin/winbindd")
  ERROR: apport (pid 1566) Tue Nov 13 11:07:39 2012: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
  ERROR: apport (pid 1566) Tue Nov 13 11:07:39 2012: apport: report /var/crash/_usr_sbin_winbindd.0.crash already exists and unseen, doing nothing to avoid disk usage DoS
  ERROR: apport (pid 1976) Tue Nov 13 19:56:56 2012: called for pid 1599, signal 6
  ERROR: apport (pid 1976) Tue Nov 13 19:56:56 2012: executable: /usr/bin/nautilus (command line "nautilus -n")
  ERROR: apport (pid 1976) Tue Nov 13 19:56:56 2012: Unhandled exception:
  Traceback (most recent call last):
    File "/usr/share/apport/apport", line 322, in <module>
      if info.check_ignored():
    File "/usr/lib/python2.7/dist-packages/apport/report.py", line 895, in check_ignored
      dom = self._get_ignore_dom()
    File "/usr/lib/python2.7/dist-packages/apport/report.py", line 834, in _get_ignore_dom
      ifpath = os.path.expanduser(_ignore_file)
    File "/usr/lib/python2.7/posixpath.py", line 260, in expanduser
      userhome = pwd.getpwuid(os.getuid()).pw_dir
  KeyError: 'getpwuid(): uid not found: 238500'
  ERROR: apport (pid 1976) Tue Nov 13 19:56:56 2012: pid: 1976, uid: 238500, gid: 100013, euid: 0, egid: 0
  ERROR: apport (pid 1976) Tue Nov 13 19:56:56 2012: environment: {}

  1) Using 12.04_LTS.
  2) # apt-cache policy winbind
  winbind:
    Installato: 2:3.6.3-2ubuntu2.3
    Candidato:  2:3.6.3-2ubuntu2.3
    Tabella versione:
   *** 2:3.6.3-2ubuntu2.3 0
          500 http://it.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
          100 /var/lib/dpkg/status
       2:3.6.3-2ubuntu2.1 0
          500 http://security.ubuntu.com/ubuntu/ precise-security/main i386 Packages
       2:3.6.3-2ubuntu2 0
          500 http://it.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
  3) expected # service winbind status
   * winbind is running
  4) getting # service winbind status
   * winbind is not running

  I tried to change S20winbind to S80winbind in /etc/rc*.d but seems it still gets started too early.
  An ugly workaround is starting it from rc.local, delaying for a minute or so... but it's really too ugly!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1078699/+subscriptions




More information about the foundations-bugs mailing list