Discussion:
Can't move '...\.svn\tmp\entries' to '...\.svn\entries': Access is denied
Justin Johnson
2006-08-18 18:39:50 UTC
Permalink
Hi,

I have received the following error about 6 times in the last couple
weeks. This last time it happened when doing a checkout, and I
believe the previous times were while doing a checkout, commit or
update. Sometimes it occurs on the command line and sometimes within
TortoiseSVN, so I assume it is a Subversion issue and not a
TortoiseSVN issue. I'm typing this error by hand since the one I have
recorded at the moment is actually a screenshot from TortoiseSVN.

...
Added c:\work\testapp\dir1\dir2\file.txt
Error: Can't move 'c:\work\testapp\dir1\.svn\tmp\entries' to
'c:\work\testapp\dir1\.svn\entries': Access is denied.

I'm running Subversion 1.3.2 on Windows XP SP1.

Does anyone know what is causing this problem?

Thanks,
Justin
Andy Levy
2006-08-18 18:45:34 UTC
Permalink
Post by Justin Johnson
Hi,
I have received the following error about 6 times in the last couple
weeks. This last time it happened when doing a checkout, and I
believe the previous times were while doing a checkout, commit or
update. Sometimes it occurs on the command line and sometimes within
TortoiseSVN, so I assume it is a Subversion issue and not a
TortoiseSVN issue. I'm typing this error by hand since the one I have
recorded at the moment is actually a screenshot from TortoiseSVN.
...
Added c:\work\testapp\dir1\dir2\file.txt
Error: Can't move 'c:\work\testapp\dir1\.svn\tmp\entries' to
'c:\work\testapp\dir1\.svn\entries': Access is denied.
I'm running Subversion 1.3.2 on Windows XP SP1.
Does anyone know what is causing this problem?
What happens if you disable your on-access virus scanner, or tell it
to ignore your WC?
Justin Johnson
2006-08-18 18:48:05 UTC
Permalink
Post by Andy Levy
Post by Justin Johnson
...
Added c:\work\testapp\dir1\dir2\file.txt
Error: Can't move 'c:\work\testapp\dir1\.svn\tmp\entries' to
'c:\work\testapp\dir1\.svn\entries': Access is denied.
I'm running Subversion 1.3.2 on Windows XP SP1.
Does anyone know what is causing this problem?
What happens if you disable your on-access virus scanner, or tell it
to ignore your WC?
Unfortunately I have no control over that on this computer. I was
hoping that wasn't the problem. :-(
Andy Levy
2006-08-18 18:50:33 UTC
Permalink
Post by Justin Johnson
Post by Andy Levy
Post by Justin Johnson
...
Added c:\work\testapp\dir1\dir2\file.txt
Error: Can't move 'c:\work\testapp\dir1\.svn\tmp\entries' to
'c:\work\testapp\dir1\.svn\entries': Access is denied.
I'm running Subversion 1.3.2 on Windows XP SP1.
Does anyone know what is causing this problem?
What happens if you disable your on-access virus scanner, or tell it
to ignore your WC?
Unfortunately I have no control over that on this computer. I was
hoping that wasn't the problem. :-(
I'm not saying that it definitely is, but very often resolves this
error message IIRC.
steveking
2006-08-18 19:45:35 UTC
Permalink
Post by Andy Levy
Post by Justin Johnson
Post by Andy Levy
Post by Justin Johnson
...
Added c:\work\testapp\dir1\dir2\file.txt
Error: Can't move 'c:\work\testapp\dir1\.svn\tmp\entries' to
'c:\work\testapp\dir1\.svn\entries': Access is denied.
I'm running Subversion 1.3.2 on Windows XP SP1.
Does anyone know what is causing this problem?
What happens if you disable your on-access virus scanner, or tell it
to ignore your WC?
Unfortunately I have no control over that on this computer. I was
hoping that wasn't the problem. :-(
I'm not saying that it definitely is, but very often resolves this
error message IIRC.
Check if there are two files in the repository with the same name, but
differ only in case (e.g. TEST.TXT and test.txt).

You can check it with

svn ls -v c:\work\testapp\dir1

Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.net
Justin Johnson
2006-08-18 19:51:46 UTC
Permalink
Post by steveking
Check if there are two files in the repository with the same name, but
differ only in case (e.g. TEST.TXT and test.txt).
You can check it with
svn ls -v c:\work\testapp\dir1
Nope. No files with the same name.
D.J. Heap
2006-08-18 23:57:10 UTC
Permalink
Post by Justin Johnson
Hi,
I have received the following error about 6 times in the last couple
weeks. This last time it happened when doing a checkout, and I
believe the previous times were while doing a checkout, commit or
update. Sometimes it occurs on the command line and sometimes within
TortoiseSVN, so I assume it is a Subversion issue and not a
TortoiseSVN issue. I'm typing this error by hand since the one I have
recorded at the moment is actually a screenshot from TortoiseSVN.
...
Added c:\work\testapp\dir1\dir2\file.txt
Error: Can't move 'c:\work\testapp\dir1\.svn\tmp\entries' to
'c:\work\testapp\dir1\.svn\entries': Access is denied.
I'm running Subversion 1.3.2 on Windows XP SP1.
Does anyone know what is causing this problem?
Do you get a long pause (about 10 seconds) when it fails like this?

Subversion automatically retries many times when it hits these errors
before it finally gives up -- usually the cause is a 'helper'
application of some kind -- like a virus-scanner, indexer, etc. It
seems pretty unlikely that something (aside from a completely broken
tag-along) would hang onto files that long, though, unless it is a
really big file. How big is this entries file?

DJ
Mathias Weinert
2006-08-21 05:39:53 UTC
Permalink
Post by D.J. Heap
Post by Justin Johnson
Hi,
I have received the following error about 6 times in the last couple
weeks. This last time it happened when doing a checkout, and I
believe the previous times were while doing a checkout, commit or
update. Sometimes it occurs on the command line and sometimes within
TortoiseSVN, so I assume it is a Subversion issue and not a
TortoiseSVN issue. I'm typing this error by hand since the one I have
recorded at the moment is actually a screenshot from TortoiseSVN.
...
Added c:\work\testapp\dir1\dir2\file.txt
Error: Can't move 'c:\work\testapp\dir1\.svn\tmp\entries' to
'c:\work\testapp\dir1\.svn\entries': Access is denied.
I'm running Subversion 1.3.2 on Windows XP SP1.
Does anyone know what is causing this problem?
Do you get a long pause (about 10 seconds) when it fails like this?
Subversion automatically retries many times when it hits these errors
before it finally gives up -- usually the cause is a 'helper'
application of some kind -- like a virus-scanner, indexer, etc. It
seems pretty unlikely that something (aside from a completely broken
tag-along) would hang onto files that long, though, unless it is a
really big file. How big is this entries file?
Subversion only does these retries when you are using the Windows
version of Subversion. If you are using the cygwin version these
retries aren't implemented (yet).
So just to make sure this isn't a possible cause of your problem,
are you using cygwin's Subversion?

Mathias
Justin Johnson
2006-08-22 00:46:30 UTC
Permalink
Post by Mathias Weinert
Post by D.J. Heap
Do you get a long pause (about 10 seconds) when it fails like this?
Subversion automatically retries many times when it hits these errors
before it finally gives up -- usually the cause is a 'helper'
application of some kind -- like a virus-scanner, indexer, etc. It
seems pretty unlikely that something (aside from a completely broken
tag-along) would hang onto files that long, though, unless it is a
really big file. How big is this entries file?
Yes, it pauses for a little bit. My guess was the anti-virus
software. I'll have to attempt to get an exception for the .svn
directories, but I highly doubt the company's gonna go for that.
Post by Mathias Weinert
Subversion only does these retries when you are using the Windows
version of Subversion. If you are using the cygwin version these
retries aren't implemented (yet).
So just to make sure this isn't a possible cause of your problem,
are you using cygwin's Subversion?
No cygwin. I'm using the normal Windows client.
Justin Johnson
2006-09-08 14:24:15 UTC
Permalink
Elyahu,

Sorry for the weird reply. I had unsubscribed from the list, but saw
your post in the archives. I'm replying to the latest email I have in
the thread.

I'm still trying to get an exclusion from real time virus scanning for
the .svn directory at my company. I'll keep you posted on how my
testing goes.

Justin
Elyahu Eaton
2006-09-10 07:45:31 UTC
Permalink
Hi,

I think the AntiVirus is the issue. I shut it down for a try and it
looks like it worked fine. I'm not 100% sure because I have other
failures that I'm not sure are connected. I'm checking it and let you
know tomorrow or the day after.

Thanks,
Eli.
Post by Justin Johnson
Elyahu,
Sorry for the weird reply. I had unsubscribed from the list, but saw
your post in the archives. I'm replying to the latest email I have in
the thread.
I'm still trying to get an exclusion from real time virus scanning for
the .svn directory at my company. I'll keep you posted on how my
testing goes.
Justin
Justin Johnson
2006-09-12 15:00:28 UTC
Permalink
Post by Elyahu Eaton
I think the AntiVirus is the issue. I shut it down for a try and it
looks like it worked fine. I'm not 100% sure because I have other
failures that I'm not sure are connected. I'm checking it and let you
know tomorrow or the day after.
That is what I have found so far as well.
Raman Gupta
2006-09-12 16:38:10 UTC
Permalink
Post by Justin Johnson
Post by Elyahu Eaton
I think the AntiVirus is the issue. I shut it down for a try and it
looks like it worked fine. I'm not 100% sure because I have other
failures that I'm not sure are connected. I'm checking it and let you
know tomorrow or the day after.
That is what I have found so far as well.
I concur re. anti-virus.

Also, if I have TortoiseSVN installed, but am using the cygwin svn
command-line version (which so far does not apply the same IFDEFs as the
windows version to re-try disk operations), the TSVNCache.exe process
also causes the same "Access is denied" problem as the anti-virus tools
by temporarily blocking disk I/O. Since I use cygwin svn more than
TortoiseSVN, I personally disable the TortoiseSVN cache (by renaming the
exe file). Note, you will lose your TortoiseSVN icon overlays if you do
this.

Cheers,
Raman
Elyahu Eaton
2006-09-13 08:28:26 UTC
Permalink
Thanks it helped a lot.
Post by Raman Gupta
Post by Justin Johnson
Post by Elyahu Eaton
I think the AntiVirus is the issue. I shut it down for a try and it
looks like it worked fine. I'm not 100% sure because I have other
failures that I'm not sure are connected. I'm checking it and let you
know tomorrow or the day after.
That is what I have found so far as well.
I concur re. anti-virus.
Also, if I have TortoiseSVN installed, but am using the cygwin svn
command-line version (which so far does not apply the same IFDEFs as
the windows version to re-try disk operations), the TSVNCache.exe
process also causes the same "Access is denied" problem as the
anti-virus tools by temporarily blocking disk I/O. Since I use cygwin
svn more than TortoiseSVN, I personally disable the TortoiseSVN cache
(by renaming the exe file). Note, you will lose your TortoiseSVN icon
overlays if you do this.
Cheers,
Raman
---------------------------------------------------------------------
Justin Johnson
2007-02-16 19:24:21 UTC
Permalink
I just wanted to reply to this old thread to record some more
information I've found.

1. I setup a box where Norton Antivirus was not installed and could
not reproduce the problem.

2. In TortoiseSVN 1.4.x, if I right click and select TortoiseSVN >
Settings > Look and Feel > Icon Overlays, and under Status Cache
select Shell instead of Default, I cannot reproduce the problem, even
when Norton Antivirus is installed.

I'm currently working to get all .svn directories and contents
excluded from real time virus scanning, but at least have a decent
work around (#2 above) in the meantime.

Justin
Post by Elyahu Eaton
Thanks it helped a lot.
Post by Raman Gupta
Post by Justin Johnson
Post by Elyahu Eaton
I think the AntiVirus is the issue. I shut it down for a try and it
looks like it worked fine. I'm not 100% sure because I have other
failures that I'm not sure are connected. I'm checking it and let you
know tomorrow or the day after.
That is what I have found so far as well.
I concur re. anti-virus.
Also, if I have TortoiseSVN installed, but am using the cygwin svn
command-line version (which so far does not apply the same IFDEFs as
the windows version to re-try disk operations), the TSVNCache.exe
process also causes the same "Access is denied" problem as the
anti-virus tools by temporarily blocking disk I/O. Since I use cygwin
svn more than TortoiseSVN, I personally disable the TortoiseSVN cache
(by renaming the exe file). Note, you will lose your TortoiseSVN icon
overlays if you do this.
Cheers,
Raman
---------------------------------------------------------------------
Loading...