开发者

svn txn-current-lock permission denied

开发者 https://www.devze.com 2023-02-04 04:33 出处:网络
I had a subversion checked out to /home/svn/docs, then i chose to use a different path, re开发者_JAVA百科moved that dir with rm-rf and checked out a new repository to my home/user/docs dir. that worke

I had a subversion checked out to /home/svn/docs, then i chose to use a different path, re开发者_JAVA百科moved that dir with rm-rf and checked out a new repository to my home/user/docs dir. that worked fine. If i now want to commit something it says:

svn: Can't open file '/home/svn/docs/db/txn-current-lock': Permission denied

I am running ubuntu


It looks like your subversion repository is present in /home/svn/docs and you do not have write permission. Possibly the repository is created as a different user and the commit is being done as a different user.

One way to address this is by ensuring all subversion users belong to the same group and this group has write access to the repository folder.


I have experienced the same proble. using windows. I tried to give Full control to Everyone, but still id did not work out.

I tried to rename txn-current-lock to txn-current-lock.xxx and write-lock to write-lock.xxx and it worked. I guess these files were locking and causing the error in the first place and even deleting them would solve the issue.

DO NOT DELETE txn-current because it is needed by svn though.

Btw, i found an article here http://cloudspring.com/how-to-use-dropbox-with-svn-or-git-for-cloud-source-control-management/ explaining how to use dropbox and svn to create a 'distributed scm' and I currently experimenting with this, that is how I have ancountered this problem. Usually svn works fine immidiately.

0

精彩评论

暂无评论...
验证码 换一张
取 消