Gurmai Zsolt
2010-Mar-23 12:25 UTC
[Samba] Computer disappearing from browse list after a few minutes
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>
Gurmai Zsolt
2010-Mar-29 08:11 UTC
[Samba] Computer disappearing from browse list after a few minutes
-----BEGIN PGP SIGNED MESSAGE----- Hash: MD5 Hi all! Has nobody read my post? I must have choosen a real bad subject then... I would realy appreciate any help you can give me. This issue drives me crazy, i got a lot of complaints about the computer missing from the network neighbourhood. Please take a look at the log parts i posted, and share your opinion! Thank you! -----BEGIN PGP SIGNATURE----- Version: 2.6 iQCVAwUAS7Bgwlz+vE9GS9lhAQEOBgP/RBLkPaKWgRCxeXWTxc93qxaw/Er9Uq2r I8O0hDo/aoqK7KTFVuYxrK4g6H8fCnkMh6NmTx3HExCZ8GKaNlZG8yin6pKUAluJ NG+MfXb9TaNe3ZfDWBRAg0LBjHptCq/SdDpeGp+VPUI2Cy8G4HUQxxoTs2KFi3uY GV2NPms/IG0=U8kK -----END PGP SIGNATURE-----
Gurmai Zsolt
2010-Apr-12 15:52 UTC
[Samba] Wins name refresh requests getting ignored by samba, still running, accessible machines getting removed from browse with Timed out message
Hello all! I am using samba server at the company i work. Samba version is: 2:3.2.5-4lenny9 Some settings from my smb.conf: os level = 255 domain logons = no wins support = yes domain master = yes local master = yes preferred master = yes i have dhcp configured to send wins server address (this samba server's 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 10-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 entries were removed by me to cut the list short). [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 a 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