Windows 7 and TortoiseSVN: Can’t move … The file or directory is corrupted and unreadable.
by B.Russell on Feb.12, 2010, under Development, Tips and Tricks
I recently upgraded to Windows 7 64-bit OS from a Vista OS. I’m loving every minute of it at the moment. One problem I have ran into that appears to be happening with others is the fact TortoiseSVN will puke randomly on updates from a SVN grab. You can see it especially on large SVN checkouts. I have read numerous posts on the matter and I am posting what actually worked for me.
First I make sure any folder that I’m using for a SVN checkout is not flagged for Windows Search Indexing. You can get to this property by right-clicking on the parent folder and select Properties -> Advanced -> Uncheck index for faster searches.
The next item to make sure of is adding the following apps to your Trusted & Exclusion rules inside your Anti-virus \ Protection program of choice.
- SearchFilterHost.exe (C:\Windows\System32)
- SearchProtocolHost.exe (C:\Windows\System32)
- TSVNCache.exe (<TortoiseSVN_dir>\bin)
- TortoiseProc.exe (<TortoiseSVN_dir>\bin)
For me, I use Kaspersky 2010. So I had to go into Settings -> Threats … then add TSVNCache and TortoiseProc to their own Exclusion rules telling it to not use <any> on each. I then went to the Trusted Apps tab on the same window and added SearchFilterHost and SearchProtocolHost both as TrustedApps and not take any action on either one. Your protection\anti-virus app may be different of course but the main concept here is to tell it don’t do anything if either 2 of those Tortoise apps are running. The same applies to the Windows Search Indexer, b\c I found that even though you tell the directory DO NOT INDEX, as we did in the first step, there is still things going on in the background which will still negate this whole processs if you just add the 2 Tortoise apps to your Trusted + Exclussion zone in your Anti-virus \ Protection app.
I tried not adding the 2 Windows Search Indexer apps to my Trusted \ Exclussion zones and the problem would only rarely occur, but it STILL occurred. It was only after adding those 2 with the Tortoise apps that the problem ceased to occur any more.
I hope this helps your situation, I enjoy Windows 7 and I can’t live without TortoiseSVN for my work.
-Brandon
2 Comments for this entry
1 Trackback or Pingback for this entry
-
widescreen wallpapers
August 30th, 2011 on 1:34 amThis is my Excerpt…
I saw this really great post today….
February 13th, 2010 on 1:25 am
Just FYI:
There’s a known problem on Win7 with the NTFS file system which can cause some problems (not just for Subversion).
See this thread:
http://tinyurl.com/w7corrupt
and the post from Neal Christiansen.
April 16th, 2010 on 7:51 am
Thanks, I’ll check that out!