[Bug 180493] Re: nmbd shuts down when network disconnected
Yes; in my case, nmbd no longer shuts down when the network is disconnected. The only way I could get it to shut down was to specify "bind interfaces only = true" and "interfaces = lo". Using "bind interfaces only = true" and "interfaces = ath0", where ath0 is connected to the network but disabled through NetworkManager, nmbd waits until ath0 comes up and starts functioning normally. Thanks for all your efforts. :) -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
So that is fixed for you? -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
Using the PPA version above, starting samba without an explicit 'interfaces' line Instead, [2008/06/16 21:30:04, 0] nmbd/nmbd.c:main(721) Netbios nameserver version 3.0.28a started. Copyright Andrew Tridgell and the Samba Team 1992-2008 [2008/06/16 21:30:04, 0] nmbd/nmbd_subnetdb.c:create_subnets(190) create_subnets: No local interfaces ! [2008/06/16 21:30:04, 0] nmbd/nmbd_subnetdb.c:create_subnets(191) create_subnets: Waiting for an interface to appear ... ---brought interface up here--- [2008/06/16 21:36:35, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396) * Samba name server RAVANA is now a local master browser for workgroup MICRIPOFFT on subnet 10.1.0.12 * Specifying an unconfigured interface on the 'interfaces = ' line, nmbd just polls every 5 seconds. Changing 'interfaces = ' to a configured (but downed) interface, then bringing it up yields nice output, though a little delayed :) [2008/06/16 21:40:54, 0] nmbd/nmbd.c:main(721) Netbios nameserver version 3.0.28a started. Copyright Andrew Tridgell and the Samba Team 1992-2008 [2008/06/16 21:40:54, 0] lib/interface.c:load_interfaces(229) WARNING: no network interfaces found [2008/06/16 21:40:54, 0] nmbd/nmbd_subnetdb.c:create_subnets(190) create_subnets: No local interfaces ! [2008/06/16 21:40:54, 0] nmbd/nmbd_subnetdb.c:create_subnets(191) create_subnets: Waiting for an interface to appear ... [2008/06/16 21:40:59, 0] lib/interface.c:load_interfaces(229) WARNING: no network interfaces found ...snip [2008/06/16 21:41:24, 0] lib/interface.c:load_interfaces(229) WARNING: no network interfaces found ---brought up interface here--- [2008/06/16 21:47:14, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396) * Samba name server RAVANA is now a local master browser for workgroup MICRIPOFFT on subnet 10.1.0.12 * In all cases, nmbd never shut down! -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
Hi, Can you try the version in my ppa: http://launchpad.net/~zulcss/+archive ? Thanks chuck -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
** Changed in: samba Status: Fix Released => Confirmed -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
How long does it take to get this message? -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
Testing with samba 3.0.28a, here is the output in /var/log/samba/log.nmbd if I start samba before the network is up: [2008/03/16 04:35:51, 0] nmbd/nmbd.c:main(711) Netbios nameserver version 3.0.28a started. Copyright Andrew Tridgell and the Samba Team 1992-2008 [2008/03/16 04:35:51, 0] nmbd/nmbd_subnetdb.c:create_subnets(190) create_subnets: No local interfaces ! [2008/03/16 04:35:51, 0] nmbd/nmbd_subnetdb.c:create_subnets(191) create_subnets: Waiting for an interface to appear ... [2008/03/16 04:42:11, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396) * Samba name server DARIO is now a local master browser for workgroup WORKGROUP on subnet 192.168.13.50 * However, if I specify an 'interfaces' line in /etc/samba/smb.conf, the behavior is this: [2008/03/16 14:23:41, 0] nmbd/nmbd.c:main(711) Netbios nameserver version 3.0.28a started. Copyright Andrew Tridgell and the Samba Team 1992-2008 [2008/03/16 14:23:41, 0] nmbd/nmbd_subnetdb.c:create_subnets(245) create_subnets: unable to create any subnet from given interfaces. nmbd is terminating [2008/03/16 14:23:41, 0] nmbd/nmbd.c:main(785) ERROR: Failed when creating subnet lists. Exiting. So the upstream changes do not resolve this issue for all use cases, and it looks like a if-up.d script is still needed. Furthermore, if I bring nmbd up with an 'interfaces' line, then drop the network interface and kill nmbd with -HUP (emulating the circumstances when logrotate runs while the network is down), nmbd goes into an infinite loop thousands of times a second, reporting: [2008/03/16 14:29:08, 0] nmbd/nmbd.c:reload_interfaces(239) reload_interfaces: No subnets to listen to. Waiting.. and the process doesn't notice when the network comes back, and isn't killable with /etc/init.d/samba stop. This same procedure without an explicit 'interfaces' line in smb.conf appears to give the desired results, aside from the lack of indication in the logfile that it's finished waiting. So the if-up.d script is probably expendible if the 'interfaces' case is fixed upstream, which is somewhat necessary anyway. ** Changed in: samba (Ubuntu) Status: Confirmed => Fix Released ** Changed in: samba (Ubuntu) Status: Fix Released => Confirmed -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
** Changed in: samba (Debian) Status: Confirmed => Fix Released -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
This patch does not achieve its stated purpose, for two reasons: - the file is missing from debian/samba.files, so never gets installed to the package. - the /etc/init.d/samba reload target only reloads smbd, it does nothing to nmbd - certainly nothing that would start nmbd in the case that it was not running! Reopening the bug. -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
** Changed in: samba (Ubuntu) Status: Fix Released => Confirmed -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
This bug was fixed in the package samba - 3.0.28a-0ubuntu1 --- samba (3.0.28a-0ubuntu1) hardy; urgency=low [Chuck Short] * New upstream release. This fixes the following Ubuntu bugs. - Prevent nmbd from shutting down when no network interfaces can be located. (LP: #180493) - Fixes I/O errors on access to SMB shares of OS/2. (LP: #112839) * Dropped patches: - make-distclean.patch - linux-cifs-user-perms.patch - cifs-umount-same-user.patch - get_global_sam_sid-non-root.patch - chgpasswd.patch - cups.patch - samba-syslog.patch * debian/mksambapasswd.awk - Don't add user with UID less than 1000 to smbpasswd. (LP: #199412) * debian/samba.if-up - ifup hook to reload samba once the interfaces comes up. (LP: #180493) * Updated control version. [Nicolas Valcárcel] * debian/patches/fix-documentation.patch - Fixed some escape typos in smb.conf(5) manpage. (LP: #182571) [Shawn Smith] * debian/samba.init - Samba init script does not conform to the LSP specification; it needs a status section (LP: #39157) -- Chuck Short <[EMAIL PROTECTED]> Tue, 11 Mar 2008 14:21:29 -0400 ** Changed in: samba (Ubuntu) Status: Triaged => Fix Released -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
** Changed in: samba (Debian) Status: Unknown => Confirmed -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
** Bug watch added: Debian Bug tracker #433449 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=433449 ** Also affects: samba (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=433449 Importance: Unknown Status: Unknown -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
** Changed in: samba Status: Confirmed => Fix Released -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
an effective workaround is to have a small script at /etc/network/if- up.d/start-samba.sh that simply contains the lines: #!/bin/bash /etc/init.d/samba restart -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 180493] Re: nmbd shuts down when network disconnected
I think that would be better for resources as well good idea :) On Mon, 2008-03-03 at 23:13 +, Mathias Gug wrote: > Using an ifup.d hook to start nmbd if it's not already running (and does > nothing if nmbd is already running) would be a better solution. An > ifdown.d hook is not necessary as nmbd exits by itself when an interface > disappears. > > ** Changed in: samba (Ubuntu) >Importance: Undecided => Medium >Status: New => Triaged > -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
Using an ifup.d hook to start nmbd if it's not already running (and does nothing if nmbd is already running) would be a better solution. An ifdown.d hook is not necessary as nmbd exits by itself when an interface disappears. ** Changed in: samba (Ubuntu) Importance: Undecided => Medium Status: New => Triaged -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
** Changed in: samba Status: Unknown => Confirmed -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
** Bug watch added: Samba Bugzilla #5267 https://bugzilla.samba.org/show_bug.cgi?id=5267 ** Also affects: samba via https://bugzilla.samba.org/show_bug.cgi?id=5267 Importance: Unknown Status: Unknown -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
Sorry for the delay, real life got in the way ;) ** Attachment added: "implementing the busywait with sleep(5) for Soren" http://launchpadlibrarian.net/11629145/busywait-for-network_dapper.patch -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
this patch is for gutsy (samba-3.0.26a), the previous for dapper (3.0.22) ** Attachment added: "busywait-for-network_gutsy.patch" http://launchpadlibrarian.net/11629153/busywait-for-network_gutsy.patch -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 180493] Re: nmbd shuts down when network disconnected
The idea is good, the patch not so much :) Busy-waiting for a network to show up is less than optimal. Adding a sleep(5) or something to the loop would make me happy. Could you (or someone else) whip up a new patch with that change in it? -- nmbd shuts down when network disconnected https://bugs.launchpad.net/bugs/180493 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs