Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Working copy of 'c:\folder' locked. Attempt to write a readonly database

I'm new to tortoise... When I try to run SVN update on c:\folder on Windows Server 2008 R2, I get the error messages:

  1. "working copy of 'c:\folder' locked.
  2. attempt to write a readonly database

It seems like I need to change file / folder permissions... What do I change them to?

like image 575
Hoppe Avatar asked Sep 20 '12 21:09

Hoppe


2 Answers

I had to give my own account full control of the directory. It seemed to have lost those permissions when being copied using my powershell script, which was running as administrator

like image 148
Hoppe Avatar answered Nov 15 '22 19:11

Hoppe


You're right. Try giving your Windows user account full rights on the working copy folder. It worked for me too. From what I experienced, this is a kind of logical issue. Actually it is not even an issue, but a normal thing. In brief words: when one Windows user works on a working copy, he locks the working copy for himself. If then another user tries to work on that same working copy, he cannot, because the previous user still works on it, thus it is still locked by the first user (until he commits and releases the lock).

So yes. In case you have no other option, give your Windows user account full rights on the folder if you can.

My case was the following. I have a portable hard drive on which I have the working copy. Yesterday I worked with that hard drive on one computer and I did not commit. Today I had to use a different computer, thus under a different Windows user but with that same portable hard drive. Of course the working copy was locked and I could not update, nor commit, nor clean... I could do nothing. So I gave my current user full rights on that folder and it worked.

Hope it makes sense now. :)

like image 32
AlexRebula Avatar answered Nov 15 '22 19:11

AlexRebula