You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Samuel Calan <sa...@namics.com> on 2004/10/12 13:17:07 UTC
Conflict in repository if 2 access happen
Hi guys
We use Subversion in our company and and I attached the whole software.
Now, I have a problem:
I configured WebSVN, so that we have a graphical interface for the
repositories.
If I commit a large transaktion of files, and in this time I refresh the
WebBrowser in that WebSVN is called, I get a corrupt repository.
I will requested to recover the database.
Now in our company we're 150 persons. So it's very much possible, that this
conflict can occur!
I have inspected that WebSVN use the "svnlook" command. I have read that
svnlook is a "read-only"-tool. But if I change the permissions in the
repository-path "rep/db" to read and execute, WebSVN cannot be executed
anymore, until I change the permissions to read, write and execute!
My investigation is so: While a commit modify the "rep/db/" directory-path,
svnlook tries also to modify this directory and a conflict and settlement
occurs...
I hope you can help me and write me soon, so that I could know, if
subversion is the right software for our company!
Thanks a lot
Calan Samuel
-------------------------------------------------------------------------------
Calan Samuel
Application-Engineer
namics ag / namics (deutschland) ag
Teufenerstrasse 19
CH-9000 St.Gallen
P +41 (0)71 228 67 41
F +41 (0)71 228 67 37
http://www.namics.com
mailto:samuel.calan@namics.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Conflict in repository if 2 access happen
Posted by Ben Reser <be...@reser.org>.
On Tue, Oct 12, 2004 at 03:17:07PM +0200, Samuel Calan wrote:
> We use Subversion in our company and and I attached the whole software.
>
> Now, I have a problem:
>
> I configured WebSVN, so that we have a graphical interface for the
> repositories.
>
> If I commit a large transaktion of files, and in this time I refresh the
> WebBrowser in that WebSVN is called, I get a corrupt repository.
> I will requested to recover the database.
> Now in our company we're 150 persons. So it's very much possible, that this
> conflict can occur!
>
> I have inspected that WebSVN use the "svnlook" command. I have read that
> svnlook is a "read-only"-tool. But if I change the permissions in the
> repository-path "rep/db" to read and execute, WebSVN cannot be executed
> anymore, until I change the permissions to read, write and execute!
>
> My investigation is so: While a commit modify the "rep/db/" directory-path,
> svnlook tries also to modify this directory and a conflict and settlement
> occurs...
>
> I hope you can help me and write me soon, so that I could know, if
> subversion is the right software for our company!
It's read only in that it doesn't modify the contents of the repo.
You're using the BDB backend. Transactions are built in BDB to answer
queries which require write access to the database. So yes you need
write access.
Your probablem with a "corrupt" repository sounds like a permissions
issue. Very likely log files are being created by a different user for
the WebSVN accesses that the server that is servering the svn client
can't read/write to. As a result you get an error.
See: http://svnbook.red-bean.com/svnbook-1.0/ch06s05.html
--
Ben Reser <be...@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Conflict in repository if 2 access happen
Posted by Dominic Anello <da...@danky.com>.
On 2004-10-12 15:17:07 +0200, Samuel Calan wrote:
----8<----
> My investigation is so: While a commit modify the "rep/db/" directory-path,
> svnlook tries also to modify this directory and a conflict and settlement
> occurs...
>
> I hope you can help me and write me soon, so that I could know, if
> subversion is the right software for our company!
>
> Thanks a lot
>
> Calan Samuel
Calan,
Even a "read-only" operation will create a transaction in the database.
Therefore every user that access the svn repo must have write access to
all the files in repo/db
Your best bet is to create an svn group, make all files in the db owned
and writeable by the svn group, make the db directroy SGID svn, add all
accounts that must access the repo members of svn, and make sure all
repo access is done with a 002 umask.
Hope this helped,
Dominic
Re: Conflict in repository if 2 access happen
Posted by Jani Averbach <ja...@jaa.iki.fi>.
On 2004-10-12 15:17+0200, Samuel Calan wrote:
> If I commit a large transaktion of files, and in this time I refresh the
> WebBrowser in that WebSVN is called, I get a corrupt repository.
Please check if that helps (it should):
http://svnbook.red-bean.com/svnbook-1.1/ch06s05.html
BR, Jani
--
Jani Averbach
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org