You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Trevor Harrison <tr...@harrison.org> on 2003/11/17 17:16:26 UTC
DB errors
I sometimes get db errors when accessing the repos via file:// and then
apache.
As root, I've been importing snapshots of some src, using a file: url to
my repository. Then, I access the repos via apache (just to browse it)
I then get an error. If I go back to the cmd line, I get this:
# svn ls file:///data/subversion
svn: Couldn't open a repository.
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///data/subversion'
svn: Berkeley DB error
svn: Berkeley DB error while opening environment for filesystem
/data/subversion/db:
DB_RUNRECOVERY: Fatal error, run database recovery
If I run svnadmin recovery, it fixes it.
This has happened several times, and is kinda scary. It doesn't always
happen. For instance, I just made a change to the repos as root, then
accessed it via apache without any problems.
I'm running on rh9. The only db packages installed (according to rpm)
are db4 and db4-devel (4.0.14-20) and gdbm 1.8.0-20.
I initially was using the binary rpms, but I uninstalled them and then
compiled everything from src.
Where should I start looking?
-Trevor
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: DB errors
Posted by Jason Rust <jr...@rustyparts.com>.
> #! /bin/ksh
> umask 002
> /usr/local/bin/snvserve $@
> exit
I've also been having this problem for quite some time. I access the
repository over svn:// and svn+ssh://. I understand how to make a
svnserve wrapper that resides in /usr/local/bin, but how do I tell the
svn+ssh:// protocol to use that wrapper and not the actual program which
resides in /usr/bin? Do I have to change the $PATH variable for each
user so that /usr/local/bin comes before /usr/bin? Or rename
/usr/bin/svnserve to /usr/bin/svnserve2 (but then RPM upgrades are not
smooth)?
Thanks,
-Jason
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: DB errors
Posted by Ryan Hunt <rh...@hp.com>.
>> seen owned by root are the latest db/log file. Would that be enough
>> to
>> cause this issue?
>
> Yes.
>
> -garrett
I'll second this. This has been a problem for me to remember. Also the
umask has to be set to 002 on the svnserve process. I have to re wrap
svnserve every time I perform an install in a script that goes like
this...
#! /bin/ksh
umask 002
/usr/local/bin/snvserve $@
exit
If this is something I have to do every time why is it not built in?
-Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: DB errors
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
Trevor Harrison wrote:
> Ben Collins-Sussman wrote:
>
>> On Mon, 2003-11-17 at 11:16, Trevor Harrison wrote:
>>
>>
>>
>>> Where should I start looking?
>>>
>>
>>
>> Read the "repository permissions" section of chapter 5, in the svn book.
>>
>>
> Ok. Will be nice if it was just ownership.
>
> Just to beat a dead horse, the repos dir is owned by the http daemon
> user/group. When I've been doing stuff via root, the only files I've
> seen owned by root are the latest db/log file. Would that be enough to
> cause this issue?
>
Yes.
-garrett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: DB errors
Posted by Trevor Harrison <tr...@harrison.org>.
Ben Collins-Sussman wrote:
>On Mon, 2003-11-17 at 11:16, Trevor Harrison wrote:
>
>
>
>>Where should I start looking?
>>
>>
>
>Read the "repository permissions" section of chapter 5, in the svn book.
>
>
Ok. Will be nice if it was just ownership.
Just to beat a dead horse, the repos dir is owned by the http daemon
user/group. When I've been doing stuff via root, the only files I've
seen owned by root are the latest db/log file. Would that be enough to
cause this issue?
-Tevor
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: DB errors
Posted by Ben Collins-Sussman <su...@collab.net>.
On Mon, 2003-11-17 at 11:16, Trevor Harrison wrote:
> Where should I start looking?
Read the "repository permissions" section of chapter 5, in the svn book.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org