Re: [Samba] Browsing Problem

2010-04-15 Thread Gurmai Zsolt

Hi!

You could raise the oslevel to 255 for a try. If I am right, in the
nmbd log you should see some lines regarding the loss of the local
master role. Something like other machine believes it is master
browser, but i am that, i can't recall it exactly.

Wednesday, April 14, 2010, 6:16:09 PM, you wrote:

 Hi,

 I'm using samba 3.4.7 as a domain controller.

 Browsing network works fine, but sometimes ( about one week ), my PC 
 can't browse more my Domain (no workstation saw).
 If I restart  samba,  all works again.
 I have read the samba doc on browsing
 
 http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetworkBrowsing.html

 My configuration seems ok, local master yes, preferred master yes, 
 domain master yes, and an os level to 99.

 My samba has Wins support and my dhcp give him to workstations.

 Here is some command line that i have done to debug :
 nmblookup MYDOMAIN
 net lookup HOST
 net lookup master MYDOMAIN  (answer is the samba server), but if I look
 /var/cache/samba/browse.dat or make smbclient -L, it's an other computer
 unreacheable which is master(after restart samba smbclient say me that
 it's samba my domain master).






 Why net lookup master and the other cmd don't tell me the same thing? is
 it the same thing? ( or lookup show me DMB and smbclient show LMB ?)



 Thanks for your help, i'm sorry for my english :-)


Best regards!


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Wins name refresh requests getting ignored by samba, still running, accessible machines getting removed from browse with Timed out message

2010-04-12 Thread Gurmai Zsolt

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=WLADEK20 q_type=32 q_class=1
  additional: nmb_name=WLADEK20 rr_type=32 rr_class=1 ttl=30
  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 WLADEK20 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 WLADEK20 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 WLADEK20 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 WLADEK03 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 WLADEK00 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 WLADEK20 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 WLADEK03 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 WLADEK00 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 

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

2010-03-29 Thread Gurmai Zsolt
-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-


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2010-03-23 Thread Gurmai Zsolt

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=WLADEK20 q_type=32 q_class=1
  additional: nmb_name=WLADEK20 rr_type=32 rr_class=1 ttl=30
  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 WLADEK20 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 WLADEK20 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 WLADEK20 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 WLADEK03 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 WLADEK00 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 WLADEK20 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 WLADEK03 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 WLADEK00 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.