[Samba] intermittent failure of ability to connect to samba share from win (NT/2k) client

Paul Trepanier pgt at jax.org
Tue May 20 14:28:42 GMT 2003


First, my installation is samba 2.2.8 running as a daemon (not inetd) on 
Solaris 8 configured to use a WINS server and provide authentication via 
a PDC (same host as WINS server).  I do have an lmhosts file in the 
samba /lib directory with the PDC/WINS server address in it.

My globals section;

[global]
         workgroup = WORKGROUP
         netbios name = SAMBASERVER
         security = SERVER
         encrypt passwords = Yes
         password server = pdc
         lanman auth = No
         log level = 2
         log file = /usr/local/depot/samba-2.2.8/var/%m.log
         deadtime = 5
         keepalive = 600
         max smbd processes = 5
         socket options = IPTOS_LOWDELAY TCP_NODELAY
         load printers = No
         show add printer wizard = No
         preferred master = No
         local master = No
         domain master = No
         wins server = [IP address of WINS/PDC server]
         follow symlinks = No

Samba works like a charm except that after awhile, samba goes "deaf" (or 
thats what I perceive to be happening).  The user attempting to connect 
to a share is prompted to authenticate.  Repeatedly providing the 
correct authinfo proves to be futile.  When connections to samba fail, 
nothing is written in samba's logs (currently set to level 3) and no 
communication between the samba server and the PDC/WINS server is 
observed.  Sometimes bouncing smbd or nmbd works, sometimes it takes 
many restarts.  I've pretty much ruled out DNS/NIS at this point as 
other services which rely on name resolution would have been complaining 
by now ;-)

I've taken packet traces between winclient and sambaserver (fictitious 
names ;-) of the failing and succeeding connections and they are 
surprisingly quite disparate in content.  I've included them here for 
your inspection (my apologies for the length).  (Unrelated packets have 
been filtered out).  Your comments/opinions are very welcome.

***** SUCCESS *****

81   0.82899 winclient -> sambaserver SMB C Code=0xa2 Name=SMB 
NT_CreateX 
FileName=?????i????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????? Error=0
  82   0.00880 sambaserver -> winclient SMB R Code=0xa2 Name=SMB 
NT_CreateX FileID=0xd Error=0
  83   0.00069 winclient -> sambaserver SMB C Code=0xa2 Name=SMB 
NT_CreateX 
FileName=?????i????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????? Error=0
  84   0.00371 sambaserver -> winclient SMB R Code=0xa2 Name=SMB 
NT_CreateX FileID=0xd Error=0
  86   0.00138 winclient -> sambaserver SMB C Code=0xa2 Name=SMB 
NT_CreateX FileName=?????i??????????????????????????????????????? 
????????????????????????
??????????????? Error=0
  87   0.00379 sambaserver -> winclient SMB R Code=0xa2 Name=SMB 
NT_CreateX FileID=0xd Error=0
  91   0.13786 winclient -> sambaserver NBT C port=4711
101   0.02097 winclient -> sambaserver SMB C Code=0x32 Name=SMBtrans2 
QueryPathInfo File=?????????? ??????????????????????????????????????? 
Error=0
102   0.00037 sambaserver -> winclient SMB R Code=0x32 Name=SMBtrans2 
Error=0
106   0.02156 winclient -> sambaserver SMB C Code=0x32 Name=SMBtrans2 
QueryPathInfo 
File=?????????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
???????????????????????????????????? Error=0
107   0.00328 sambaserver -> winclient SMB R Code=0x32 Name=SMBtrans2 
Error=0
108   0.00483 winclient -> sambaserver SMB C Code=0x32 Name=SMBtrans2 
Findfirst 
File=?????????????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
???????????????????????????????? Error=0
109   0.03498 sambaserver -> winclient SMB R Code=0x32 Name=SMBtrans2 
Error=0
110   0.00002 sambaserver -> winclient NBT Type=Unknown Length=1456
111   0.00001 sambaserver -> winclient NBT Type=SESSION MESSAGE Length=1456
112   0.00001 sambaserver -> winclient NBT Type=Unknown Length=1456
113   0.00001 sambaserver -> winclient NBT Type=SESSION MESSAGE Length=1456
114   0.00001 sambaserver -> winclient NBT Type=SESSION MESSAGE Length=1456
115   0.00001 sambaserver -> winclient NBT Type=SESSION MESSAGE Length=1456
116   0.00001 sambaserver -> winclient NBT Type=Unknown Length=1068
117   0.00068 winclient -> sambaserver NBT C port=4711
118   0.00024 winclient -> sambaserver NBT C port=4711
119   0.00032 winclient -> sambaserver NBT C port=4711
120   0.00022 winclient -> sambaserver NBT C port=4711
121   0.01107 winclient -> sambaserver SMB C Code=0xa2 Name=SMB 
NT_CreateX FileName= Error=0
122   0.00129 sambaserver -> winclient SMB R Code=0xa2 Name=SMB 
NT_CreateX FileID=0x3013 Error=0
123   0.00036 winclient -> sambaserver SMB C Code=0xa0 Name=SMB NT_Trans 
Error=0
126   0.05447 sambaserver -> winclient NBT R port=4711
127   0.00031 winclient -> sambaserver SMB C Code=0xa0 Name=SMB NT_Trans 
Error=0
128   0.09969 sambaserver -> winclient NBT R port=4711

***** FAILURE (Samba appears deaf) *****

86   0.13346 winclient -> sambaserver ICMP Echo request (ID: 512 
Sequence number: 20225)
  87   0.00004 sambaserver -> winclient ICMP Echo reply (ID: 512 
Sequence number: 20225)
  88   0.00035 winclient -> sambaserver TCP D=445 S=4549 Syn 
Seq=416819196 Len=0 Win=64240 Options=<mss 1460,nop,nop,sackOK>
  89   0.00004 sambaserver -> winclient TCP D=4549 S=445 Rst 
Ack=416819197 Win=0
  91   0.01047 winclient -> sambaserver ICMP Echo request (ID: 512 
Sequence number: 20481)
  92   0.00004 sambaserver -> winclient ICMP Echo reply (ID: 512 
Sequence number: 20481)
  93   0.00039 winclient -> sambaserver NBT NS Query Request for 
*..............[0], Success
  94   0.00005 sambaserver -> winclient ICMP Destination unreachable 
(UDP port 137 unreachable)
  98   0.05475 winclient -> sambaserver TCP D=445 S=4549 Syn 
Seq=416819196 Len=0 Win=64240 Options=<mss 1460,nop,nop,sackOK>
  99   0.00004 sambaserver -> winclient TCP D=4549 S=445 Rst 
Ack=416819197 Win=0
102   0.04528 winclient -> sambaserver TCP D=445 S=4549 Syn 
Seq=416819196 Len=0 Win=64240 Options=<mss 1460,nop,nop,sackOK>
103   0.00003 sambaserver -> winclient TCP D=4549 S=445 Rst 
Ack=416819197 Win=0
112   0.05569 winclient -> sambaserver NBT NS Query Request for 
*..............[0], Success
113   0.00004 sambaserver -> winclient ICMP Destination unreachable (UDP 
port 137 unreachable)
122   0.00202 winclient -> sambaserver NBT NS Query Request for 
*..............[0], Success
123   0.00004 sambaserver -> winclient ICMP Destination unreachable (UDP 
port 137 unreachable)
134   0.00703 winclient -> sambaserver TCP D=111 S=4551 Syn 
Seq=418004170 Len=0 Win=64240 Options=<mss 1460,nop,nop,sackOK>
135   0.00003 sambaserver -> winclient TCP D=4551 S=111 Syn 
Ack=418004171 Seq=2995536248 Len=0 Win=24820 Options=<nop,nop,sackOK,mss 
1460>
136   0.00032 winclient -> sambaserver TCP D=111 S=4551 
Ack=2995536249 Seq=418004171 Len=0 Win=64240
137   0.00055 winclient -> sambaserver PORTMAP C DUMP
138   0.00006 sambaserver -> winclient TCP D=4551 S=111 
Ack=418004251 Seq=2995536249 Len=0 Win=24740
139   0.00096 sambaserver -> winclient PORTMAP R DUMP 60 map(s) found
140   0.00075 winclient -> sambaserver TCP D=111 S=4551 Fin 
Ack=2995537481 Seq=418004251 Len=0 Win=63008
141   0.00003 sambaserver -> winclient TCP D=4551 S=111 
Ack=418004252 Seq=2995537481 Len=0 Win=24820
142   0.00015 sambaserver -> winclient TCP D=4551 S=111 Fin 
Ack=418004252 Seq=2995537481 Len=0 Win=24820
143   0.00022 winclient -> sambaserver TCP D=111 S=4551 
Ack=2995537482 Seq=418004252 Len=0 Win=63008
144   0.15239 winclient -> sambaserver TCP D=111 S=4556 Syn 
Seq=418281476 Len=0 Win=64240 Options=<mss 1460,nop,nop,sackOK>
145   0.00003 sambaserver -> winclient TCP D=4556 S=111 Syn 
Ack=418281477 Seq=2995717417 Len=0 Win=24820 Options=<nop,nop,sackOK,mss 
1460>
146   0.00021 winclient -> sambaserver TCP D=111 S=4556 
Ack=2995717418 Seq=418281477 Len=0 Win=64240
147   0.00053 winclient -> sambaserver PORTMAP C GETPORT prog=150001 
(PCNFSD) vers=2 proto=TCP
148   0.00003 sambaserver -> winclient TCP D=4556 S=111 
Ack=418281537 Seq=2995717418 Len=0 Win=24760
149   0.00062 sambaserver -> winclient PORTMAP R GETPORT port=0
150   0.00026 winclient -> sambaserver TCP D=111 S=4556 Fin 
Ack=2995717450 Seq=418281537 Len=0 Win=64208
151   0.00003 sambaserver -> winclient TCP D=4556 S=111 
Ack=418281538 Seq=2995717450 Len=0 Win=24820
152   0.00014 sambaserver -> winclient TCP D=4556 S=111 Fin 
Ack=418281538 Seq=2995717450 Len=0 Win=24820
153   0.00021 winclient -> sambaserver TCP D=111 S=4556 
Ack=2995717451 Seq=418281538 Len=0 Win=64208
154   0.00114 winclient -> sambaserver TCP D=111 S=4557 Syn 
Seq=418340321 Len=0 Win=64240 Options=<mss 1460,nop,nop,sackOK>
155   0.00003 sambaserver -> winclient TCP D=4557 S=111 Syn 
Ack=418340322 Seq=2995782859 Len=0 Win=24820 Options=<nop,nop,sackOK,mss 
1460>
156   0.00019 winclient -> sambaserver TCP D=111 S=4557 
Ack=2995782860 Seq=418340322 Len=0 Win=64240
157   0.00041 winclient -> sambaserver PORTMAP C GETPORT prog=150001 
(PCNFSD) vers=2 proto=UDP (retransmit)
158   0.00004 sambaserver -> winclient TCP D=4557 S=111 
Ack=418340382 Seq=2995782860 Len=0 Win=24760
159   0.00073 sambaserver -> winclient PORTMAP R GETPORT port=0
160   0.00025 winclient -> sambaserver TCP D=111 S=4557 Fin 
Ack=2995782892 Seq=418340382 Len=0 Win=64208
161   0.00003 sambaserver -> winclient TCP D=4557 S=111 
Ack=418340383 Seq=2995782892 Len=0 Win=24820
162   0.00014 sambaserver -> winclient TCP D=4557 S=111 Fin 
Ack=418340383 Seq=2995782892 Len=0 Win=24820
163   0.00021 winclient -> sambaserver TCP D=111 S=4557 
Ack=2995782893 Seq=418340383 Len=0 Win=64208
164   0.00109 winclient -> sambaserver TCP D=111 S=4558 Syn 
Seq=418379511 Len=0 Win=64240 Options=<mss 1460,nop,nop,sackOK>
165   0.00003 sambaserver -> winclient TCP D=4558 S=111 Syn 
Ack=418379512 Seq=2995938284 Len=0 Win=24820 Options=<nop,nop,sackOK,mss 
1460>
166   0.00020 winclient -> sambaserver TCP D=111 S=4558 
Ack=2995938285 Seq=418379512 Len=0 Win=64240
167   0.00072 winclient -> sambaserver PORTMAP C GETPORT prog=788585389 
(?) vers=1 proto=TCP
168   0.00007 sambaserver -> winclient TCP D=4558 S=111 
Ack=418379572 Seq=2995938285 Len=0 Win=24820
169   0.00034 sambaserver -> winclient PORTMAP R GETPORT port=0
170   0.00035 winclient -> sambaserver TCP D=111 S=4558 Fin 
Ack=2995938317 Seq=418379572 Len=0 Win=64208
171   0.00004 sambaserver -> winclient TCP D=4558 S=111 
Ack=418379573 Seq=2995938317 Len=0 Win=24820
172   0.00017 sambaserver -> winclient TCP D=4558 S=111 Fin 
Ack=418379573 Seq=2995938317 Len=0 Win=24820
173   0.00021 winclient -> sambaserver TCP D=111 S=4558 
Ack=2995938318 Seq=418379573 Len=0 Win=64208
174   0.00122 winclient -> sambaserver TCP D=111 S=4559 Syn 
Seq=418439817 Len=0 Win=64240 Options=<mss 1460,nop,nop,sackOK>
175   0.00003 sambaserver -> winclient TCP D=4559 S=111 Syn 
Ack=418439818 Seq=2996061956 Len=0 Win=24820 Options=<nop,nop,sackOK,mss 
1460>
176   0.00020 winclient -> sambaserver TCP D=111 S=4559 
Ack=2996061957 Seq=418439818 Len=0 Win=64240
177   0.00042 winclient -> sambaserver PORTMAP C GETPORT prog=788585389 
(?) vers=1 proto=UDP (retransmit)
178   0.00005 sambaserver -> winclient TCP D=4559 S=111 
Ack=418439878 Seq=2996061957 Len=0 Win=24760
179   0.00072 sambaserver -> winclient PORTMAP R GETPORT port=0
180   0.00025 winclient -> sambaserver TCP D=111 S=4559 Fin 
Ack=2996061989 Seq=418439878 Len=0 Win=64208
181   0.00003 sambaserver -> winclient TCP D=4559 S=111 
Ack=418439879 Seq=2996061989 Len=0 Win=24820
182   0.00014 sambaserver -> winclient TCP D=4559 S=111 Fin 
Ack=418439879 Seq=2996061989 Len=0 Win=24820
183   0.00021 winclient -> sambaserver TCP D=111 S=4559 
Ack=2996061990 Seq=418439879 Len=0 Win=64208
184   0.08077 winclient -> sambaserver NFS C NULL3
185   0.00016 sambaserver -> winclient NFS R NULL3
186   0.00024 winclient -> sambaserver NFS C LOOKUP3 FH=0000 /home
187   0.00015 sambaserver -> winclient NFS R LOOKUP3 Permission denied
188   0.00025 winclient -> sambaserver MOUNT3 C Null
189   0.00025 sambaserver -> winclient MOUNT3 R Null
190   0.00022 winclient -> sambaserver MOUNT3 C Mount /home
191   0.00302 sambaserver -> winclient MOUNT3 R Mount Permission denied
192   0.00023 winclient -> sambaserver MOUNT3 C Mount /home
193   0.00279 sambaserver -> winclient MOUNT3 R Mount Permission denied





More information about the samba mailing list