Why am I having a problem cleaning up svn?

Please help me with the problem:

build@subversion:~> find /home/build/cruise-work/cruise-checkout/30.0/ | grep rep-cache.db
build@subversion:~> cd /home/build/cruise-work/cruise-checkout/30.0/
build@subversion:~/cruise-work/cruise-checkout/30.0> svn cleanup
svn: E200031: sqlite[S8]: attempt to write a readonly database
svn: E200031: Additional errors:
svn: E200031: sqlite[S8]: attempt to write a readonly database
build@subversion:~/cruise-work/cruise-checkout/30.0>

      

EDIT1:

build @subversion: ~ / cruise-work / cruise-checkout / 30.0> chmod g + w rem-cache.db chmod: unable to access `rep-cache.db ': no ​​such file or directory

EDIT2:

I don't have a rep-cache.db file:

> sudo find / | grep rep-cache.db root password:
> /usr/src/subversion-1.8.11/subversion/libsvn_fs_fs/rep-cache-db.sql
> /usr/src/subversion-1.8.11/subversion/libsvn_fs_fs/rep-cache-db.h

      

+3


source to share


3 answers


this is caused by incorrect file permissions on the SVN server.

The "rep-cache.db" file will most likely have the wrong permissions, such as a group not having write access to the file.



A simple chmod g + w on the file will be enough to keep the error message from appearing again.

+2


source


Often times these problems arise because you are not running svn commands as superuser. So just add sudo to the commands and try this.



0


source


Things seemed to be a mess for me after I recursively changed directory permissions and transferred ownership to another user. I am assuming that the .svn directories are now owned by this other user and I did not have permission to change them. Using sudo

, just for cleaning, solved the problem.

sudo svn cleanup

0


source







All Articles