[Samba] Computer disappearing from browse list after a few minutes

Gurmai Zsolt gurmai.zsolt at generalmedia.hu
Tue Mar 23 06:25:11 MDT 2010


Hi all!

I am using samba server at the company i work. Samba version is: 2:3.2.5-4lenny9
Some settings:

os level = 255
domain logons = no
wins support = yes
domain master = yes
local master = yes
preferred master = yes

i have dhcp configured witch sends wins server address (this samba
servers address) to all clients.

After I (re)start samba within a minute or so all computer of our
network appear on the browse list. Everything works as it should. The
problem start after about 15 minutes, when machines start to disappear
from the browse list. After setting loglevel to 10 to investingate
things i found some interesting things:

Anubis is the server with samba, Wladek is one of the many
disappearing machines.

[2010/03/23 11:34:04,  4] nmbd/nmbd_workgroupdb.c:dump_workgroups(281)
  dump_workgroups()
   dump workgroup on subnet   192.168.1.254: netmask=  255.255.255.0:
        WORKGROUP(1) current master browser = ANUBIS
                ANUBIS 408c9a03 (anubis server)
                WLADEK 40011003 ()

At this point Wladek is on the list (most other entries removed by me of
course).

[2010/03/23 11:34:13,  3] nmbd/nmbd_serverlistdb.c:expire_servers(195)
  expire_old_servers: Removing timed out server WLADEK

A few seconds later wladek gets removed.

[2010/03/23 11:34:13,  4] nmbd/nmbd_workgroupdb.c:dump_workgroups(281)
  dump_workgroups()
   dump workgroup on subnet   192.168.1.254: netmask=  255.255.255.0:
        WORKGROUP(1) current master browser = ANUBIS
                ANUBIS 408c9a03 (anubis server)

After a few more seconds we got a dump in the log; Wladek is missing
at this point from the browse list.

[2010/03/23 11:34:17,  4] libsmb/nmblib.c:debug_nmb_packet(109)
  nmb packet from 192.168.1.67(137) header: id=33308 opcode=Refresh(8) response=No
      header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=No
      header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
      question: q_name=WLADEK<20> q_type=32 q_class=1
      additional: nmb_name=WLADEK<20> rr_type=32 rr_class=1 ttl=300000
      additional   0 char  ....C   hex 2000C0A80143
[2010/03/23 11:34:17,  3] nmbd/nmbd_winsserver.c:wins_process_name_refresh_request(859)
  wins_process_name_refresh_request: Name refresh for name WLADEK<20> IP 192.168.1.67
[2010/03/23 11:34:17,  4] nmbd/nmbd_packets.c:reply_netbios_packet(947)
  reply_netbios_packet: sending a reply of packet type: wins_reg WLADEK<20> to ip 192.168.1.67 for id 33308

And then there is a name refresh request.

[2010/03/23 11:34:17,  3] nmbd/nmbd_serverlistdb.c:expire_servers(195)
  expire_old_servers: Removing timed out server KACSA-PC

Some more expires witch triggers the dump:

[2010/03/23 11:34:17,  4] nmbd/nmbd_workgroupdb.c:dump_workgroups(281)
  dump_workgroups()
   dump workgroup on subnet   192.168.1.254: netmask=  255.255.255.0:
        WORKGROUP(1) current master browser = ANUBIS
                ANUBIS 408c9a03 (anubis server)

But Wladek is still missing from list! Altough machine Wladek was
online the whole time, and it is sending refresh requests, it gets
removed from the list. After getting a refresh samba does not put back
the machine onto the list!

Some older refreshes:

[2010/03/23 11:31:47,  3] nmbd/nmbd_winsserver.c:wins_process_name_refresh_request(859)
  wins_process_name_refresh_request: Name refresh for name WLADEK<20> IP 192.168.1.67
[2010/03/23 11:31:47,  3] nmbd/nmbd_winsserver.c:wins_process_name_refresh_request(859)
  wins_process_name_refresh_request: Name refresh for name WLADEK<03> IP 192.168.1.67
[2010/03/23 11:31:47,  3] nmbd/nmbd_winsserver.c:wins_process_name_refresh_request(859)
  wins_process_name_refresh_request: Name refresh for name WLADEK<00> IP 192.168.1.67


[2010/03/23 11:29:17,  3] nmbd/nmbd_winsserver.c:wins_process_name_refresh_request(859)
  wins_process_name_refresh_request: Name refresh for name WLADEK<20> IP 192.168.1.67
[2010/03/23 11:29:17,  3] nmbd/nmbd_winsserver.c:wins_process_name_refresh_request(859)
  wins_process_name_refresh_request: Name refresh for name WLADEK<03> IP 192.168.1.67
[2010/03/23 11:29:17,  3] nmbd/nmbd_winsserver.c:wins_process_name_refresh_request(859)
  wins_process_name_refresh_request: Name refresh for name WLADEK<00> IP 192.168.1.67

You can see, that the machine regurarly makes refresh requests, so no
timed out removal should occur.

I don't understand what causes the problem, i sadly can not pinpoint
the time it started exactly enough (3 or 4 weeks ago there was no such
problem; when it first appeared i did not had the time to investigate,
and reports were also sporadical). In the past weeks there was samba
upgrade (and other packages were also upgraded; i usually do updates
frequently, so no big version jumps occur).

The problem is similar to this, but i found no solution there:
http://lists.samba.org/archive/samba/2006-July/122747.html


/var/cache/samba/browse.dat shows the same (incomplete) list as the
winxp machines do. /var/lib/samba/wins.dat has all the computers names
in it. Ethereal (and tshark) shows that the winxp's are in fact
getting the browse list from the samba server, and that this samba
server is the LMB and DMB.

I welcome every help and opinion you can give me, and please don't
hesitate for asking for more info.

Thank you in advance!

-- 
Best regards:
 Zsolt Gurmai                          mailto:gurmai.zsolt at generalmedia.hu



***************************************


-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6

mQEPA0sGfpgNAgEIAMYCc09RxHxHcJlywNq4yN06227jbdTVP72F36v/9qSv3P/q
vYNxDDD3Shb0ov/av5kq0QFybO2wYJSDKD1UT4mRoYNMwHBLrIkp8jQaGCKouKjw
TquEviyqad5Trr8tYKyHDCJRCwJKcNLmoaa6yygSSTu5WCILKeZDZGDhEoFg3Va7
g6jt+0F+PkMnsltWj8LCHuxQ6MKROLvWJHmwN7cRk4eS/+A+ALLhVTAOWRCzuLR0
LsjE67hDwuEqUP4CoN7463wIC0VhCG1usPxU3if95y0hDgaLT5xBnPcsXhBWSczc
YcYDntNBtF6d7aWegyKpKHhdO67/xUiSOyYYO8UAEQEAAbQrR3VybWFpIFpzb2x0
IDxndXJtYWkuenNvbHRAZ2VuZXJhbG1lZGlhLmh1PokBFQMFEEsGfpjFSJI7Jhg7
xQEB+ccH/R0phfYAeYKBeZo9/nvl4WZEkmw6ijnuN+Pm/bkdjVTCqpGy3pdDY6FB
MByC9B5QhfVLLcQnO2R0UMPnXO4XQuZeNRW6Lyh7UzDbc+Nf0rMHNnQgI3Qw3GA0
TfBsoutUZTHEnVBtzykeabR7vsoijw32227SMt0/MCmrYc33igTpJTOadv5XPBp4
rzh9AzOy/H5eJmhikm3m1oJComIBMSLn+85hcOB3q4OM8Ols/HaNKQ7BKFtYXIB4
UB12rFi0xyHKKen9aVG8zF5FNMAjGDzn5aonnYsVyMMyK/yU2HVlKGjJkMcEqpKO
71zX8hlYDR7B9EXiIDaBHQ60Wdy+auU=
=ooOi
-----END PGP PUBLIC KEY BLOCK-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 282 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba/attachments/20100323/3cc688be/attachment.pgp>


More information about the samba mailing list