SVNForum.org Forum Index FAQFAQ SearchSearch MemberlistMemberlist RegisterRegister Log inLog in

Download Subversion 1.6.12: Free Subversion TrainingWindows - Free Subversion TrainingCentOS 5 - Free Subversion TrainingRedhat Enterprise Linux 5 - Free Subversion TrainingUbuntu 9/10.04 - Free Subversion TrainingDebian Lenny (5)

Free Subversion Training: Free Subversion TrainingAll About Checkouts Free Subversion TrainingUsing the Subversion Diff Command Free Subversion TrainingSubversion Administration Best Practices Free Subversion TrainingAll About Subversion Hook Scripts
 
Can't open file: dir:\path\to\tempfile.tmp Access is Denied

 
Post new topic   Reply to topic    SVNForum.org Forum Index -> General Setup & Troubleshooting
View previous topic :: View next topic  
Author Message
leveille



Joined: 20 Mar 2007
Posts: 1
Location: Frederick, MD USA

PostPosted: Tue Mar 20, 2007 3:30 pm    Post subject: Can't open file: dir:\path\to\tempfile.tmp Access is Denied Reply with quote

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
View user's profile Send private message Visit poster's website
CReatiVe4w3



Joined: 07 Apr 2006
Posts: 8

PostPosted: Thu May 31, 2007 9:33 pm    Post subject: Reply with quote

having the same problem
Back to top
View user's profile Send private message
andyl



Joined: 03 Nov 2005
Posts: 4873

PostPosted: Thu May 31, 2007 10:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
ind_suresh



Joined: 12 Jun 2007
Posts: 2

PostPosted: Tue Jun 12, 2007 3:41 am    Post subject: Any feedback regarding the above.... Reply with quote

Since I face the same problem, anybody from the above could solve the issue with disabling the antivirus software ??
Back to top
View user's profile Send private message Yahoo Messenger
andyl



Joined: 03 Nov 2005
Posts: 4873

PostPosted: Tue Jun 12, 2007 8:30 am    Post subject: Re: Any feedback regarding the above.... Reply with quote

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
View user's profile Send private message
ind_suresh



Joined: 12 Jun 2007
Posts: 2

PostPosted: Thu Jun 14, 2007 11:22 am    Post subject: Thanks Andyl Reply with quote

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
View user's profile Send private message Yahoo Messenger
andyl



Joined: 03 Nov 2005
Posts: 4873

PostPosted: Thu Jun 14, 2007 11:25 am    Post subject: Re: Thanks Andyl Reply with quote

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
View user's profile Send private message
rp



Joined: 05 Jul 2007
Posts: 1

PostPosted: Thu Jul 05, 2007 11:35 am    Post subject: Re: Thanks Andyl Reply with quote

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
View user's profile Send private message
laow



Joined: 08 Jul 2008
Posts: 1

PostPosted: Tue Jul 08, 2008 11:45 am    Post subject: Re: Thanks Andyl Reply with quote

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
View user's profile Send private message
andyl



Joined: 03 Nov 2005
Posts: 4873

PostPosted: Tue Jul 08, 2008 2:45 pm    Post subject: Reply with quote

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 user's profile Send private message
View previous topic :: View next topic  
Post new topic   Reply to topic    SVNForum.org Forum Index -> General Setup & Troubleshooting All times are GMT - 4 Hours
Page 1 of 1
Display posts from previous:   
Google
 
Web SVNForum.org