Search code examples
tortoisesvncommitpermission-denied

SVN Commit error: Can't open file txn-current-lock Permission denied


I can do checkouts, update and such. But when I try to commit changes, SVN gives me the following error:

Can't open file '/svn/p/pokemonium/code/db/txn-current-lock': Permission denied

I am using Windows 7 x64 SP1 with latest version of TortoiseSVN. UAC is off, my account has read and write access, etc.

I can commit fine to other svn repositorys.


Solution

  • Try this.

    1. Make a back up copy of your working copy (just to be safe).
    2. Make another copy your entire working copy off somewhere else.
    3. Take the copy and delete all of the SVN folders out of it
    4. Delete your working copy and do a fresh checkout
    5. now copy/paste your corrupted working copy over your fresh checkout.

    it is critical for this to work that you have completely removed ever _svn or .svn folder from your corrupted working copy before you perform the copy/paste.

    This will leave you (hopefully) with a working copy that shows (!) on all the files you had modified since your last commit. And fixes your lock issue.