| View previous topic :: View next topic |
| Author |
Message |
leveille
Joined: 20 Mar 2007 Posts: 1 Location: Frederick, MD USA
|
Posted: Tue Mar 20, 2007 3:30 pm Post subject: Can't open file: dir:\path\to\tempfile.tmp Access is Denied |
|
|
I am attempting to simulate two users making modifications to the same file in subversion. A simple simulation for sure. I can successfully commit changes from one working directory, and of course when I attempt to commit changes from my other working directory I receive an error stating that the commit failed. When I attempt to update the second working directory I cannot get past the error seen below:
| Code: | | Can't open file: dir:\path\to\tempfile.tmp Access is Denied |
I am connecting to my repository (running on an apache server) through http, using tortoisesvn on Windows XP Pro. I have updated to the most recent version of tortoise.
I have been using svn for a while as an individual, and it is my hope to train my team to use svn. This is obviously a major issue. |
|
| Back to top |
|
CReatiVe4w3
Joined: 07 Apr 2006 Posts: 8
|
Posted: Thu May 31, 2007 9:33 pm Post subject: |
|
|
| having the same problem |
|
| Back to top |
|
andyl
Joined: 03 Nov 2005 Posts: 4873
|
Posted: Thu May 31, 2007 10:36 pm Post subject: |
|
|
Often this is caused by your antivirus grabbing a lock on the file and holding it for far too long. The SVN libraries give up after a few failed attempts at doing what they need to do, and report this error.
Tell your AV to ignore .svn directories and try again. This is a "major issue" because of your choice of other software and its configuration - SVN is trying as hard as it can to do the right thing, but it's not being allowed to. |
|
| Back to top |
|
ind_suresh
Joined: 12 Jun 2007 Posts: 2
|
Posted: Tue Jun 12, 2007 3:41 am Post subject: Any feedback regarding the above.... |
|
|
| Since I face the same problem, anybody from the above could solve the issue with disabling the antivirus software ?? |
|
| Back to top |
|
andyl
Joined: 03 Nov 2005 Posts: 4873
|
Posted: Tue Jun 12, 2007 8:30 am Post subject: Re: Any feedback regarding the above.... |
|
|
| ind_suresh wrote: | | Since I face the same problem, anybody from the above could solve the issue with disabling the antivirus software ?? | The onus is on you to tell the AV software to ignore those directories, or the AV software to cooperate better with other software.
Subversion already waits & retries the operation when it's blocked the first couple times - but it can't wait forever. |
|
| Back to top |
|
ind_suresh
Joined: 12 Jun 2007 Posts: 2
|
Posted: Thu Jun 14, 2007 11:22 am Post subject: Thanks Andyl |
|
|
Thanks Andyl, but If somebody here has already tried and tested this method, it would be easy for me to convince the network security people in my organisation to disable antivirus software for the time when we are checking in....
Thanks again... |
|
| Back to top |
|
andyl
Joined: 03 Nov 2005 Posts: 4873
|
Posted: Thu Jun 14, 2007 11:25 am Post subject: Re: Thanks Andyl |
|
|
| ind_suresh wrote: | | Thanks Andyl, but If somebody here has already tried and tested this method, it would be easy for me to convince the network security people in my organisation to disable antivirus software for the time when we are checking in.... | You can't temporarily disable it on your desktop? Or tell it to ignore those directories yourself? You can't have them set up a PC for you to test this with your same setup? Or will they only rely upon hearsay and then HOPE that a fix that worked for someone else applies to you too, telling you "sorry, you're outta luck" if it doesn't?
I've done this already on my desktop (told Norton AV to ignore .svn directories) and it did make a big difference for me with Subversion.
See also http://subversion.tigris.org/faq.html#windows-access-denied and http://svn.haxx.se/dev/archive-2003-10/0136.shtml , both of which back up the assertion that the problem is not with Subversion but your filesystem or other tools accessing the filesystem. |
|
| Back to top |
|
rp
Joined: 05 Jul 2007 Posts: 1
|
Posted: Thu Jul 05, 2007 11:35 am Post subject: Re: Thanks Andyl |
|
|
| I can also confirm that after temporarily disabling on-access scanning in my virus checker (McAfee, in my case) the problem goes away. |
|
| Back to top |
|
laow
Joined: 08 Jul 2008 Posts: 1
|
Posted: Tue Jul 08, 2008 11:45 am Post subject: Re: Thanks Andyl |
|
|
| rp wrote: | | I can also confirm that after temporarily disabling on-access scanning in my virus checker (McAfee, in my case) the problem goes away. |
Hello, I have the exactly same problem. Getting the access denied error when updating a file which has been modified locally on my pc and also been modified/commited to svn by other developer.
However, disabling on-access scanning in McAfee does not help me. I still get the same error. Does anybody know why and how to fix it?
Please note that I only got the access deny error when I AND someone else modified the same file and the other person commits the file before me. If I am the only one who modifies the file, I can do update or commit without any error. |
|
| Back to top |
|
andyl
Joined: 03 Nov 2005 Posts: 4873
|
Posted: Tue Jul 08, 2008 2:45 pm Post subject: |
|
|
| laow, your issue is most likely filesystem permissions. As you have already confirmed that your issue is not due to your virus scanner, please open a new thread for your issue, posting any and all relevant details (location of WC, version of SVN, OSes, etc.). |
|
| Back to top |
|
|
View previous topic :: View next topic |