[Pkg-samba-maint] Bug#576415: [Bug 462169] Re: nmbd dies on startup when network interfaces are not up yet

Steve Langasek vorlon at debian.org
Tue Apr 6 02:54:35 UTC 2010


On Mon, Apr 05, 2010 at 08:58:19AM +0200, Christian PERRIER wrote:
> > This has just cropped up on my PC too (Xubuntu 9.10), after installing
> > lirc, hangs on bootup just before the login screen (slim). (smb.conf is
> > vanilla). Wouldn't work in recovery mode, told me about the nmbd pid but
> > wouldn't let me do anything about it so CTRL-ALT-DEL was necessary.

> > Samba version 2:3.4.0-3ubuntu5.6

> > Found that by removing quiet and splash from the grub boot entry I could
> > boot up OK again, and nmbd and smbd showing in htop.

> The same was reported to Debian as well and looks like it is the same
> timing problem: http://bugs.debian.org/576415

> I'm just discovering the long story of that LP#462169. It apparently
> got fixed in some Ubuntu packages and just forgot flowing "upstream".

Hardly a case of forgetting; the reports of nmbd failures only started
coming in after a change in behavior in upstart, which Debian doesn't use,
so the fix wasn't believed to be relevant to Debian.  In hindsight, it
makes sense that it would also affect NM-using Debian systems.

The exact problem appears to also result in part from a behavior change in
nmbd, and I've never been able to reliably reproduce this; I suspect an
eglibc regression, but since I can't reproduce it to begin with, it's been
hard to pin down.

> If only I could find the patch in LP, it could be added to the Debian
> package but that bug is...ahem....quite hairy. I get gazillion
> informations about the people who are subscribed to the bug but no
> obvious point that says *this is the fix*.

https://launchpad.net/ubuntu/+source/samba/2%3a3.4.0-3ubuntu5.2 and
https://launchpad.net/ubuntu/+source/samba/2%3a3.4.0-3ubuntu5.3 are the
precise versions you want; this has been implemented differently for Lucid
by condensing the if-up.d script and the init script to a single upstart job
that handles this.  The diffs are available at
<http://launchpadlibrarian.net/35571808/samba_2%3A3.4.0-3ubuntu5.1_2%3A3.4.0-3ubuntu5.2.diff.gz>
and
<http://launchpadlibrarian.net/36662827/samba_2%3A3.4.0-3ubuntu5.2_2%3A3.4.0-3ubuntu5.3.diff.gz>.

On Sun, Apr 04, 2010 at 05:19:04PM +0200, Julien Cristau wrote:
> On Sun, Apr  4, 2010 at 16:31:16 +0200, Christian PERRIER wrote:

> > Could you do "ls /etc/rc2.d/*network-manager* /etc/rc2.s§*samba*"?

> The connection can get established long after network-manager is
> started, so even if network-manager is started before samba, that
> doesn't mean the networking will be up.
> I think nmbd should either stay around in case the network comes up
> later, or have something in /etc/network/if-up.d/ restart it if
> necessary.

An if-up.d script seems to be exactly what's necessary here, unless someone
can figure out *why* nmbd is failing...

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20100405/011089db/attachment.pgp>


More information about the Pkg-samba-maint mailing list