Ajay
Ajay

Reputation: 10227

Why is Subversion giving me this error message?

I am getting the following error while commiting data into Subversion:

svn: Can't create directory '/usr/share/repos/db/transactions/'

I have tried both command line and the eclipse-plugin options. Both give the above results.

Upvotes: 0

Views: 153

Answers (3)

MitMaro
MitMaro

Reputation: 5937

A few assumptions:

  • Your running some form of *nix because you are getting what looks like a permission problem.
  • You are using subversion through apache.

More then likely when the repository was created it was done as root and now the apache user is trying to write to it.

sudo chown -R apache_user:apache_user /usr/share/repos

should do the trick for most distributions.

Of course you need to find out what user apache runs under your distribution for this to work.

Post some info on the OS/Distribution where the SVN repository is stored and how your are communicating with SVN and I can help more.

Upvotes: 0

Sean A.O. Harney
Sean A.O. Harney

Reputation: 24507

Are you using svn+apache ? If so, the user the httpd process is running as must have write access to all parent directories in the repository path.

If doing it with a local repository do you have write access to that directory?

Upvotes: 0

pmf
pmf

Reputation: 7759

Fix the permissions for the repository (on the server side). The directory should have rwx set for the user and/or group under which the Subversion-server is running.

Upvotes: 4

Related Questions