You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by su...@jujutsu.org.uk on 2004/06/18 15:26:33 UTC

svn and trac conflict

I've recently created a subversion repository and access has been
working fine using svnserve and svn: descriptors.  I then installed
trac <URL:http://www.edgewall.com/products/trac/> and set up a
matching issue tracking database.

All was well - svn running smoothly, trac showing timelines, source
code etc until we committed a lot (574) changed files in one
transaction.

The svn client continued to behave, until Trac was next used to
access the subversion repository: viewing a changeset.  An exception
was thrown reporting "DB_RUNRECOVERY.  Fatal error run database
recovery".  From here on svn was unable to connect to the database.

svnadmin recover fixed the problem, allowing svn clients to connect
but any further attempts to use Trac to view source or changesets
reproduces the error.

Other subversion/trac repositories on the same system are unaffected.

I have read, and implemented, the umask setting described in
"Supporting Multiple Repository Access Methods".  svnserve and
trac.cgi are both wrapped with scripts which set umask 0002.

svnserve and apache run as different users with a common group
project/db/_* files have been chmoded g+w

Does any one have any suggestions as to how I can either pin down, or
preferably, fix, the problem?



-- 
Giles

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn and trac conflict

Posted by Branko Čibej <br...@xbc.nu>.
Ben Collins-Sussman wrote:

>On Fri, 2004-06-18 at 10:26, subversion@jujutsu.org.uk wrote:
>
>  
>
>>svnserve and apache run as different users with a common group
>>project/db/_* files have been chmoded g+w
>>    
>>
>
>The db/ directory itself must have chmod g+w, not the individual files. 
>This is so that newly created db logfiles are born with the correct
>group ownership.
>  
>
You mean g+s, I hope.

-- Brane


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn and trac conflict

Posted by Ben Collins-Sussman <su...@collab.net>.
On Fri, 2004-06-18 at 10:26, subversion@jujutsu.org.uk wrote:

> svnserve and apache run as different users with a common group
> project/db/_* files have been chmoded g+w

The db/ directory itself must have chmod g+w, not the individual files. 
This is so that newly created db logfiles are born with the correct
group ownership.
 
(Take a look at the last point in the grey box at the bottom of
http://svnbook.red-bean.com/svnbook/ch06s05.html)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn and trac conflict

Posted by su...@jujutsu.org.uk.
John Peacock <jp...@rowman.com> writes:

> When you have a problem, check out the ownership and rights for all
> files in the db directory before running recover.  I suspect that you
> still have some ownership issue that you are fighting. 

That was it thanks.  Specifically my log files were not group
writeable.  Fixing that & recovering the database has me up and
running.  

I've also read the gray box that Ben pointed me at: db must be chmod
g+s.  That's now done, so hopefully I'll not have any more problems.

Thanks for your help guys.  

-- 
Giles

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn and trac conflict

Posted by John Peacock <jp...@rowman.com>.
subversion@jujutsu.org.uk wrote:

> I have read, and implemented, the umask setting described in
> "Supporting Multiple Repository Access Methods".  svnserve and
> trac.cgi are both wrapped with scripts which set umask 0002.
> 
> svnserve and apache run as different users with a common group
> project/db/_* files have been chmoded g+w
> 
> Does any one have any suggestions as to how I can either pin down, or
> preferably, fix, the problem?

When you have a problem, check out the ownership and rights for all 
files in the db directory before running recover.  I suspect that you 
still have some ownership issue that you are fighting.  Depending on 
your O/S, you can also chgrp the db/ directory itself and set the sticky 
bit (which should make all log files owned by the group).

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org