svn: Can't create directory /db/transactions/0-1.txn': Permission denied

Today I have found myself struggling with SVN and it seemed as if I hit a deadend whenever trying to commit anything into new repository with the following message:

svn: Can't create directory /db/transactions/0-1.txn': Permission denied

The reason why I got stuck with this is because it would imply an SVN permission setting. I have checked the apache confing file and examined the authorization settings and the password file and everything seemed normal.

Then it hit me that when I was creating a new repository with svn admin all the files created where given ownership of the user I was using on the unix system. Therefore the permission message was not comming from SVN but from the OS.

I have run: chown -R apache:apache /svndir/repos/newrepo and this had done the trick.

Hope this helped you save some time.

This page was last updated on: 31/08/2010 15:09