[Samba] nmbd strange port error please help
David Gardi
debian at gardisoft.org
Sun May 5 08:34:02 GMT 2002
Hi people,
I'm using samba 2.2.3a-7 on kernel 2.4.18. I have a small LAN of simply
two humble computers.
I can log on to the other machine using smbclient view shares using the
-L option and so on. But when I do a -M it tells me:
added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0
Got a positive name query response from 192.168.1.2 ( 192.168.1.2 )
session request failed
I suspect the problem derives from the fact that nmbd is not running
simply because it won't start. This is syslogs output when I run nmbd:
May 5 17:17:41 vxi nmbd[27785]: [2002/05/05 17:17:41, 0]
lib/util_sock.c:open_socket_in(789)
May 5 17:17:41 vxi nmbd[27785]: bind failed on port 137 socket_addr =
192.168.1.2.
May 5 17:17:41 vxi nmbd[27785]: Error = Cannot assign requested address
May 5 17:17:41 vxi nmbd[27785]: [2002/05/05 17:17:41, 0]
nmbd/nmbd_subnetdb.c:make_subnet(140)
May 5 17:17:41 vxi nmbd[27785]: nmbd_subnetdb:make_subnet()
May 5 17:17:41 vxi nmbd[27785]: Failed to open nmb socket on
interface 192.168.1.2
May 5 17:17:41 vxi nmbd[27785]: for port 137.
May 5 17:17:41 vxi nmbd[27785]: Error was Cannot assign requested address
May 5 17:17:41 vxi nmbd[27785]: [2002/05/05 17:17:41, 0]
nmbd/nmbd.c:main(861)
May 5 17:17:41 vxi nmbd[27785]: ERROR: Failed when creating subnet
lists. Exiting.
However sometimes it doesn't give this problem and it does start
beutifully, smbclient -M works and all is well. There's nothing unusual
about by smb.conf so I don't think the problem lies there. I've googled
around and viewed some of this lists' archives and have noticed that
others have had similar problems, but no one has come up with a sensible
solution other than modify samba's source code and make it use a port
other that 137.
Any ideas would be absolutely great.
TIA
David.
More information about the samba
mailing list