nmbd stops randomly -> cannot access using hostname from Windows XP

Bug #498734 reported by Csimbi
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba (Debian)
New
Undecided
Unassigned
samba (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: samba

I found a number of reports about nmbd not starting.
For me nmbd does start, but stops randomly, so while this is a different bug, it must be somehow related.

But, first things first.
I am new to Linux. I followed various tutorial on the net to install a NAS using Ubuntu Server. I installed it, was working for a while, then it stopped working, I reinstalled it, and this cycle was going on and on and on like 10 times.
Then, I decided to call in a favour from a friend who has experience.
I installed Ubuntu Server 9.10 again (amd64), updated the system using apt-get (that was yesterday, 19-Dec-2009), configured Samba again the way I used to, and I called my friend to take a look. He used ssh to access the machine, and do his magic. He fine-tuned Samba with the users and permissions I wanted, then he said we should also reboot the system to make sure that everything mounts and loads as it should - so, we rebooted the the system. After reboot, I could access my Samba share just fine. So, we opened a drink to celebrate. About five minutes later, I went back to the machine to map the drives, but I could not access the Samba share using the netbios name from Windows XP - I could access it using the IP address though.
We had no idea what was going on and we've been Google-ing around for hours, trying various configuration changes in network setting as recommended by various messages claiming that it solved their problem. Well, none of those network tweaks have helped us, so I gave up. My friend was upset because it was supposed to work so he kept checking things I know nothing about. Then he said: f**k, nmbd is not running! He restarted Samba (and with it nmbd) and everything was working again. After a while, it stopped again. He tried restarting Samba again, but this time it did not work. He said we should start from boot and he will watch it and see when it stops and why. So, we reboot and he keeps his eyes open. He said there are some read errors in /var/log/samba/log.nmbd for the socket. The is what he sent me:
read_socket_with_timeout: read error = Socket operation on non-socket.
read from child failed: NT_STATUS_ACCESS_DENIED
I Googled about this and I ended up here, sounds like it to me (who don't know much about Linux):
http://lists.samba.org/archive/samba/1998-March/006767.html
My friend ended up on this forum, here:
https://bugs.launchpad.net/bugs/462169
Though that error talks about nmbd not starting. For us, nmbd does start (he found traces and I can also access the Samna share using the netbios host name), but it stops at some point which we could not track down.
Thank you for fixing.

Revision history for this message
Chuck Short (zulcss) wrote :

Hi,

Which version of samba are you using?

Thanks
chuck

Changed in samba (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Csimbi (turbotalicska) wrote :

The one that ships with Ubuntu Server 9.10.

$ smbd -V
Version 3.4.0

Revision history for this message
Thierry Carrez (ttx) wrote :

Could you attach a complete log.nmbd for the machine that has the problem ?
Anything about nmbd on /var/log/syslog ?

Revision history for this message
Csimbi (turbotalicska) wrote :

Hi Thierry,
I could, but it did not happen lately.
There were a few updates release in the last couple of weeks, and it just stopped happening.
I guess it must have been this fix:
https://bugs.launchpad.net/bugs/462169

Let me know if you want the logs anyway.

Revision history for this message
Thierry Carrez (ttx) wrote :

No thanks. Closing as fixreleased, please reopen if it happens again, and save the logs in that case :)

Changed in samba (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Tedo (tedo-arhiva) wrote :

It's happening on my debian squeeze server. Is this fix only for Ubuntu?

George Gill (ggilliii10)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.