[Samba] Many STATUS_INVALID_HANDLE

Jeremy Allison jra at samba.org
Wed Aug 1 18:40:47 GMT 2007


On Wed, Aug 01, 2007 at 01:52:11PM +0100, Carwyn Edwards wrote:
> 
> I'm in the process of trying to track down the cause of frequent Delayed 
> Write Failures on our network. Most seem to be from database-like files 
> (e.g. firefox/thunderbird sqlite files) that are stored in the users 
> Application Data directory. The AppData directory in our case is on a 
> mapped network drive and excluded from the set of files copied back and 
> forth as part of the roaming profile. (See: 
> http://www.css.taylor.edu/~nehresma/samba.html - we do something similar).
> 
> The problem files are opened by the applications and held open for long 
> periods of time and periodically queried and written to. Note that 
> another common culprit is one of the various index.dat files in the IE 
> related History or Cookie folders. What seems to happen is that the SMB 
> connection drops off at some point before the Delayed Write Failure and 
> eventually a return status of STATUS_INVALID_HANDLE triggers the error 
> message when the application attempts to access the now presumably stale 
> handle?
> 
> From the various network traces I've captured the STATUS_INVALID_HANDLE 
> is in response to a QUERY_FILE_INFO on the problem file. What's puzzled 
> me is that I'm seeing many STATUS_INVALID_HANDLE responses that don't 
> correlate to any visible errors on the client side.
> 
> Should we be expecting many STATUS_INVALID_HANDLE responses relating to 
> files in a network based roaming profile?
> 
> I'm collecting debug data at the moment to try and eliminate some 
> possible causes but thought I'd ask in case someone else has had this 
> problem? Is the problem really the dropped connections or the handling 
> of the dropped connections? Is there another possible cause for the 
> invalid handles?

What Samba version please ?

Jeremy.


More information about the samba mailing list