Problems with Samba 2.2.1a on Solaris 8 and Opening a .txt file in Excel.

David Collier-Brown davecb at canada.sun.com
Tue Aug 14 17:00:07 GMT 2001


Dave Hall wrote:
> 
> Please find the attached excel.txt_dump.  I hope this helps.

	Sure does!
	We see opens, then an huge stream of lock operations, 
	then another open, without any obvious close: this looks
	like some sort of locking issue...

Dave wrote previously:
> We recently install Samba 2.2.1a on our Solaris 8 servers.
> Since that time,  we have had problems opening .txt in Excel 
> 97 SR-2 on our Windows 95 or on our Windows 98 machines.  When
> we try to open a .txt file, it takes too long, errors or crashes
> Excel.  We can however open the same .txt file in Excel 97 SR-2 
> on 2000 SP2 and NT4.0. 
> The error we get in the log file is:
>          lib/util_sock.c:read_socket_data(478)
> read_socket_data: recv failure for 4.  Error = Connection reset by peer.


The session starts with a bunch of ARP requests:
No. Time      Source            Destination        Protocol Info
-   ------    ----------------  ----------------   -------- ----
   
2 0.057127    c2-1.Eng.Sun.COM  ff:ff:ff:ff:ff:ff  ARP  
	Who has 172.16.3.15?  Tell 172.16.1.2


  At packet 190, we see a SMBgetatr and then a TRANS2_FIND_FIRST2, 
doing some snooping about, then at packet 200 the openX and 
subsequent packets: 

200 3.296320    c31-4.Eng.Sun.COM     172.27.2.1            SMB     
	 SMBopenX Request
  This is the openX for the test.txt file, and the full
SMB packet dump is:
SMB (Server Message Block Protocol)
    Message Type: 0xFF
    Server Component: SMB
    SMB Command: SMBopenX (0x2d)
    Error Class: Success
    Reserved: 0
    Error Code: No Error
    Flags: 0x00
        .... ...0 = Lock&Read, Write&Unlock not supported
        .... ..0. = Receive buffer not posted
        .... 0... = Path names case sensitive
        ...0 .... = Pathnames not canonicalized
        ..0. .... = OpLocks not requested/granted
        .0.. .... = Notify open only
        0... .... = Request to server
    Flags2: 0x0000
        .... .... .... ...0 = Long file names not supported
        .... .... .... ..0. = Extended attributes not supported
        .... .... .... .0.. = Security signatures not supported
        .... 0... .... .... = Extended security negotiation not
supported
        ...0 .... .... .... = Don't resolve pathnames with DFS
        ..0. .... .... .... = Don't permit reads if execute-only
        .0.. .... .... .... = Error codes are DOS error codes
        0... .... .... .... = Strings are ASCII
    Reserved: 6 WORDS
    Network Path/Tree ID (TID): 1 (0001)
    Process ID (PID): 6259 (1873)
    User ID (UID): 100 (0064)
    Multiplex ID (MID): 3585 (0e01)
    Word Count (WCT): 15
    AndXCommand: No further commands
    AndXReserved: 0
    AndXOffset: 0
    Flags: 0x07
        .... .... .... ...1 = Dont Return Additional Info
        .... .... .... ..1. = Exclusive OpLock not Requested
        .... .... .... .1.. = Batch OpLock not Requested
    Desired Access: 0xc2
        .... .... .... .010 = Open for reading and writing
        .... .... .100 .... = Deny none
        .... .000 .... .... = Locality of reference unknown
        ...0 .... .... .... = Normal file (caching permitted)
        .0.. .... .... .... = Write through mode disabled
    Search: 0x16
        .... .... .... ...0 = Not a read only file
        .... .... .... ..1. = Hidden file
        .... .... .... .1.. = System file
        .... .... .... 0... = Not a volume
        .... .... ...1 .... =  Directory
        .... .... ..0. .... = Do not archive file
    File: 0x00
        .... .... .... ...0 = Not a read only file
        .... .... .... ..0. = Not a hidden file
        .... .... .... .0.. = Not a system file
        .... .... .... 0... = Not a volume
        .... .... ...0 .... = Not a directory
        .... .... ..0. .... = Do not archive file
    Creation Date: 2001-08-14
    Creation Time: 09:53:00
    Open Function: 0x01
        .... .... ...0 .... = Fail if file does not exist
        .... .... .... ..01 = Open file if it exists
    Allocated Size: 0
    Reserved1: 0
    Reserved2: 0
    Byte Count: 10
    File Name: \test.txt

201 3.297636    172.27.2.1            c31-4.Eng.Sun.COM     SMB      
	SMBopenX Response

  This is a success:
SMB (Server Message Block Protocol)
    Message Type: 0xFF
    Server Component: SMB
    SMB Command: SMBopenX (0x2d)
    Error Class: Success
    Reserved: 0
    Error Code: No Error
    Flags: 0x80
        .... ...0 = Lock&Read, Write&Unlock not supported
        .... ..0. = Receive buffer not posted
        .... 0... = Path names case sensitive
        ...0 .... = Pathnames not canonicalized
        ..0. .... = OpLocks not requested/granted
        .0.. .... = Notify open only
        1... .... = Response to client/redirector
    Flags2: 0x0001
        .... .... .... ...1 = Long file names supported
        .... .... .... ..0. = Extended attributes not supported
        .... .... .... .0.. = Security signatures not supported
        .... 0... .... .... = Extended security negotiation not
supported
        ...0 .... .... .... = Don't resolve pathnames with DFS
        ..0. .... .... .... = Don't permit reads if execute-only
        .0.. .... .... .... = Error codes are DOS error codes
        0... .... .... .... = Strings are ASCII
    Reserved: 6 WORDS
    Network Path/Tree ID (TID): 1 (0001)
    Process ID (PID): 6259 (1873)
    User ID (UID): 100 (0064)
    Multiplex ID (MID): 3585 (0e01)
    Word Count (WCT): 15
    AndXCommand: No further commands
    AndXReserved: 0
    AndXOffset: 0
    FID: 13525
    FileAttributes: 0x00
        .... .... .... ...0 = Not a read only file
        .... .... .... ..0. = Not a hidden file
        .... .... .... .0.. = Not a system file
        .... .... .... 0... = Not a volume
        .... .... ...0 .... = Not a directory
        .... .... ..0. .... = Do not archive file
    Last Write Date: 2001-08-14
    Last Write Time: 08:11:46
    Data Size: 9
    Granted Access: 2
    File Type: 0x00
        0000 0000 0000 0000 = Disk file or directory
    Device State: 0
    Action: 0x01
        0... .... .... .... = File opened by another user 
        .... .... .... ..01 = The file existed and was opened
    Server FID: 0
    Reserved: 0
    Byte Count: 0

202 3.299017    c31-4.Eng.Sun.COM     172.27.2.1            SMB      		
	SMBlockingX Request

  However, we now see a whole series of locking requests:
203 3.300213    172.27.2.1            c31-4.Eng.Sun.COM     SMB  
	    SMBlockingX Response
204 3.300919    c31-4.Eng.Sun.COM     172.27.2.1            SMB  
	    SMBlockingX Request
205 3.302486    172.27.2.1            c31-4.Eng.Sun.COM     SMB     
	 SMBlockingX Response
206 3.303262    c31-4.Eng.Sun.COM     172.27.2.1            SMB     
	 SMBlockingX Request
207 3.304741    172.27.2.1            c31-4.Eng.Sun.COM     SMB     
	 SMBlockingX Response
208 3.305485    c31-4.Eng.Sun.COM     172.27.2.1            SMB     
	 SMBlockingX Request
209 3.306779    172.27.2.1            c31-4.Eng.Sun.COM     SMB     
	 SMBlockingX Response
210 3.307514    c31-4.Eng.Sun.COM     172.27.2.1            SMB     
	 SMBlockingX Request
211 3.308786    172.27.2.1            c31-4.Eng.Sun.COM     SMB     
	 SMBlockingX Response
212 3.309406    c31-4.Eng.Sun.COM     172.27.2.1            SMB     
	 SMBlockingX Request
213 3.310875    172.27.2.1            c31-4.Eng.Sun.COM     SMB     
	 SMBlockingX Response
214 3.311491    c31-4.Eng.Sun.COM     172.27.2.1            SMB     
	 SMBlockingX Request
215 3.312973    172.27.2.1            c31-4.Eng.Sun.COM     SMB     
	 SMBlockingX Response
216 3.313589    c31-4.Eng.Sun.COM     172.27.2.1            SMB     
	 SMBlockingX Request
217 3.313816    c2-1.Eng.Sun.COM      ff:ff:ff:ff:ff:ff     ARP     
Who has 172.16.30.103?  Tell 172.16.1.2

  Looking at 203/204, we see it's a series of sucessful requests:
203: SMB (Server Message Block Protocol)
    Message Type: 0xFF
    Server Component: SMB
    SMB Command: SMBlockingX (0x24)
    Error Class: Success
    Reserved: 0
    Error Code: No Error
    Flags: 0x80
    Flags2: 0x0001
    Reserved: 6 WORDS
    Network Path/Tree ID (TID): 1 (0001)
    Process ID (PID): 6259 (1873)
    User ID (UID): 100 (0064)
    Multiplex ID (MID): 3713 (0e81)
    Word Count (WCT): 2
    AndXCommand: No further commands
    AndXReserved: 0
    AndXoffset: 0
    Byte Count: 0

204: SMB (Server Message Block Protocol)
    Message Type: 0xFF
    Server Component: SMB
    SMB Command: SMBlockingX (0x24)
    Error Class: Success
    Reserved: 0
    Error Code: No Error
    Flags: 0x00
    Flags2: 0x0000
    Reserved: 6 WORDS
    Network Path/Tree ID (TID): 1 (0001)
    Process ID (PID): 6259 (1873)
    User ID (UID): 100 (0064)
    Multiplex ID (MID): 3841 (0f01)
    Word Count (WCT): 8
    AndXCommand: 255
    AndXReserved: 0
    AndXOffset: 0
    FID: 13525
    Lock Type: 0x0
       .... .... .... ...0 = Not a Read-only lock
        .... .... .... ..0. = Not an Oplock break notification
        .... .... .... .0.. = Not a lock type change
        .... .... .... 0... = Dont cancel outstanding request
        .... .... ...0 .... = Not a large file locking format
    OplockLevel: 0
    Timeout: 0
    Number Of Unlocks: 0
    Number of Locks: 1   
    Byte Count (BCC): 10

and they all look identical, all showing, for example, the number
of locks as 1...

  Then there are another batch of ARP requests and even more 
locking requests, until finally there is an unlock and the locks
count goes to 0 somewhere before packet 271...

At packet 277, there is another open of test.txt, and a read raw
followed by a lock and some other SMB packets, buried in the ARPs.
up to about 347.

 The rest of the file is mostly ARP requests for increasing adresses 
(Dave: is someone collecting hosts from xxx.xxx.xxx.2?)

A summaty of the SMB packets follws: send me or Dave email to
get the dump file.

--dave

    No. Time        Source                Destination          
Protocol Info
    190 3.182458    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBgetatr Request
    191 3.183028    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBgetatr Response
    192 3.269431    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      TRANS2_FIND_FIRST2 Request
    193 3.271301    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      TRANS2_FIND_FIRST2 response
    194 3.272085    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBfindclose2 Request
    195 3.272476    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBfindclose2 Response
    196 3.274170    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      TRANS2_FIND_FIRST2 Request
    197 3.276074    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      TRANS2_FIND_FIRST2 response
    198 3.276803    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBfindclose2 Request
    199 3.277313    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBfindclose2 Response
    200 3.296320    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBopenX Request
    201 3.297636    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBopenX Response
    202 3.299017    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    203 3.300213    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    204 3.300919    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    205 3.302486    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    206 3.303262    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    207 3.304741    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    208 3.305485    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    209 3.306779    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    210 3.307514    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    211 3.308786    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    212 3.309406    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    213 3.310875    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    214 3.311491    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    215 3.312973    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    216 3.313589    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    225 3.315058    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    232 3.316348    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    239 3.317225    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    244 3.317943    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlseek Request
    247 3.318384    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlseek Response
    257 3.319868    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    268 3.334943    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    269 3.335705    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    270 3.336579    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    271 3.336920    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    272 3.337847    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    273 3.339917    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    275 3.340455    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBgetatr Request
    276 3.340983    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBgetatr Response
    277 3.342037    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBopenX Request
    278 3.343210    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBopenX Response
    279 3.344247    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBreadBraw Request
    281 3.346021    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBlockingX Request
    282 3.347229    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBlockingX Response
    283 3.348021    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBreadBraw Request
    286 3.754920    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      TRANS2_FIND_FIRST2 Request
    287 3.756983    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      TRANS2_FIND_FIRST2 response
    288 3.757798    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBfindclose2 Request
    289 3.758198    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBfindclose2 Response
    290 3.790235    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      TRANS2_FIND_FIRST2 Request
    291 3.792205    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      TRANS2_FIND_FIRST2 response
    292 3.988303    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBgetatr Request
    293 3.991287    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBgetatr Response
    342 4.470126    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBgetatr Request
    343 4.472951    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBgetatr Response
    346 4.648975    c31-4.Eng.Sun.COM     172.27.2.1           
SMB      SMBreadBraw Request
    347 4.649442    172.27.2.1            c31-4.Eng.Sun.COM    
SMB      SMBreadBraw Response




More information about the samba-technical mailing list