[Samba] Time outs and data corruption on WAN using VPN

Jeremy Allison jra at samba.org
Mon Jul 17 15:11:06 GMT 2006


On Mon, Jul 17, 2006 at 11:51:11AM +0100, Rick Timmis wrote:
> Hi
> 
> We are using Samba on Debian Sarge (version 3.0.14a-Debian) and have it 
> configured for simple file share access. 
> All services work without issues on the Local network.
> 
> However we have a number of remote workers who connect in via VPN (Via IPCOP 
> and Linsys IPSEC), these workers are all using Windows XP
> 
> The problem looks as though it may be related to oplocks or network timeouts / 
> resets. 
> 
> Here are the symptoms
> 
> Files are written but contain either corrupt data or no data at all. Somtimes 
> the file is written and then deleted again (I suspect often no data has been 
> transferred )
> 
> Windows client post errors such as
> 
> The netowrk path is too deep
> The network name no longer exists
> 
> We are consistently getting log messages like these
> 
> Exhibit A.
> 
> /var/log/sambs/log.d9rm152j
> 
> d9rm152j (192.168.2.5) connect to service work initially as user keith
> (uid=10
> 04, gid=100) (pid 13006)
> [2006/07/17 09:01:46, 0] lib/util_sock.c:read_socket_data(384)
>   read_socket_data: recv failure for 4. Error = Connection reset by peer
> [2006/07/17 09:01:46, 1] smbd/service.c:close_cnum(830)
> 
> Exhibit B.
> 
> /var/log/sambs/log.d9rm152j
> 
> d9rm152j (192.168.2.5) connect to service work initially as user keith
> (uid=1004, gid=100) (pid 12116)
> [2006/07/17 08:43:06, 0] lib/util_sock.c:read_socket_with_timeout(321)
>   read_socket_with_timeout: timeout read. read error = Connection reset by
> peer.
> [2006/07/17 08:43:06, 0] smbd/oplock.c:oplock_break(841)
>   oplock_break: receive_smb error (Connection reset by peer)
>   oplock_break failed for file Admin/test/DSC01506.JPG (dev = 1641, inode =
> 7356435, file_id = 135).
> [2006/07/17 08:43:06, 0] smbd/oplock.c:oplock_break(931)
>   oplock_break: client failure in break - shutting down this smbd.
> [2006/07/17 08:43:06, 1] smbd/service.c:close_cnum(830)
> 
> --------Exhibits End ---------------

Yep - your network is losing packets. For WAN use with a lossy
network you might want to turn off oplocks on a WAN accessed
share.

Jeremy.


More information about the samba mailing list