SVN: access denied on tempfile.temp

Add comments

While trying to commit files to my SVN repository using eclipse I was constantly receiving errors about "access denied on .svn/tempfile.tmp". This specifically seems to happen when committing the ROOT folder of a project,

 

This problem turned out to be caused by my anti-virus product, and a google search showed others having similar problems, and their solution was to disable their anti-virus when committing. This of course is not a very secure solution as you really do not want to be disabling your anti-virus if you don't have to as you will be vulnerable during that time. The better solution is to stop your AV from causing the problem in the first place. I determined that the problem must be due to my AV putting a lock on the tempfile while it performed its real-time scan of any IO activity which was causing eclipse to timeout, so I added eclipse to my list of trusted applications and set it not to scan network traffic and this resolve dthe problem.

 

In my case my client tool is eclipse with the subclipse plugin and my AV product is Kaspersky Internet Security, so I will provide details of how to do this with those products. If you use a different AV product then you will need to figure out how to do the same with your product, and simply apply the rule to your own SVN client instead of eclipse, whether it be tortoise SVN or another application.

 

1. Open your Kaspersky Internet Security, and click the "SETTINGS" button

image

 

2. now choose "Threats and exclusions", and click the "trusted zone" button

image

 

2. Now select the "Trusted applications" tab

image

 

3. Click the "Add" button to add your application

image

 

Now simply browse to your SVN client tool and check the bot "Do not scan network traffic" then click "ok" on each window to accept the settings.

If you are still having problems, go back to step 3 and check more of the property boxes to exclude other scans. You may also want to check that your application is not being blocked by your firewall rules. To check this do the following.

 

4. On the settings page from step 2 above, select "Firewall" and then "Settings"

image

 

5. Now on the "Rules for applications" tab, find your application and edit its settings

image

 

6. Make sure all required activity is allowed and is not impeded by any rules

image

image

1 response to “SVN: access denied on tempfile.temp”

  1. James Revillini Says:
    Dude, thanks - i never would have figured that out. I thought Tortoise was being stupid and deadlocking itself. I was getting pissed. Thanks for the pointer. For me, it was Avast!, but I haven't been able to figure out which provider needs to exclude the .svn folder.

Leave a Reply

Leave this field empty

Powered by Mango Blog. Design and Icons by N.Design Studio