Problem with SVN


It looks like that I forget about this blog. Well in some part this is true. I've got a lot to do on my studies and apart of them. But today it' s beautiful day, 30 ÂșC in Poznan, very nice weather, you know ;) every geeks and nerds love that weather. Back to root topic



Yesterday I was fighting with very strange bug. I create new repository


svnadmin create /home/teodor/svnroot

and next try to commit something to this repo I got some nasty and unclear bug

svn: Commit failed (details follow):
svn: Can't open activity db: APR does not understand this error code



in apache logs there was of course nothing special, like everytime. But previous I got error
that it couldn't save something in db/transaction path. I've change persmisons and that bug was fixed, so also this time this bug was linked with file persmions. svn running under mod_dav module have to be able to store some files under transaction/ directory.

  1. First we have to add www-data user to the same group like svnroot have. In my case it was teodor group (I working under Debian OS, every user has own group, it's very nice construction for admin e.g. www servers), so I added www-data to teodor group
  2. Next we have to change owners of all files under svnroot/,
    chown -R teodor:www-data *
    in svnroot/ directory
  3. And last add read/write permision to user/group :
    chmod -R 0770 *
    in svnroot/
That's all, after that everything should work correct. Have nice day ;)