You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Mark Gulbrandsen <by...@zserve.com> on 2003/03/26 23:22:24 UTC

simultaneous ra_dav and ra_svn access problems

Hi all,

subversion r5410
apache 2.0.44
Berkely DB 4.1.24


We have a fairly large repo for our code. We'd like to 
access it via
ra_dav and ra_svn and ra_file when and how we like. This 
works fine as
long as these protocols are not used at the same time. If 
they are, the
database needs to be recovered for some reason.


Here is that apache log
=> /var/log/apache2/error_log <==
[Wed Mar 26 16:00:28 2003] [error] [client 192.168.2.15] 
Could not fetch
resource information.  [500, #0], referer:
http://r2d2.zserve.com/svn/lds/main/
[Wed Mar 26 16:00:28 2003] [error] [client 192.168.2.15] 
Could not open
the SVN filesystem at /opt/svn/lds  [500, #160029], 
referer:
http://r2d2.zserve.com/svn/lds/main/
[Wed Mar 26 16:00:28 2003] [error] [client 192.168.2.15] 
(17)File
exists: Berkeley DB error while opening environment for 
filesystem
/opt/svn/lds/db:
DB_RUNRECOVERY: Fatal error, run database recovery  [500, 
#160029],
referer: http://r2d2.zserve.com/svn/lds/main/

I have only verified that ra_dav and ra_svn are clashing. 
I have not
tried ra_file at the same time with the other protocols.

I appologize if this is a known issue on the issue 
tracker, but I
couldn't find one.

Does anyone else have this kind of problem, or any 
suggestions?

Thanks,

Mark

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

Re: simultaneous ra_dav and ra_svn access problems

Posted by rb...@rkbloom.net.

On Wed, 26 Mar 2003, Mark Gulbrandsen wrote:

> Ben Collins-Sussman wrote:
>  >
>  > It's a permissions/umask problem.  You've probably got different
>  > processes using different umasks to read/write the db files, which
>  > ends up blocking access for the next process.
>  >
>
> Sure enough, fiddling with a few umask and permissions issues fixed this
> problem. Sorry to waste bandwidth. However, perhaps I can add something
> to all of this.
>
> I added a configure switch --with-suexec-umask=002 and recompiled
> apache. That didn't solve the problem, but I left it in (can someone
> confirm or deny that this has any relevance to the permissions problem?).

The suexec-umask will have no effect on Subversion at all.  Suexec is for
running CGI scripts as a speceific user, and the suexec-umask flag just
tells Apache what the umask should be when running SuExec.  But Subversion
is integrated into Apache as a module, which means that there is no CGI
cript, and thus SuExec isn't used.

Ryan


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

Re: simultaneous ra_dav and ra_svn access problems

Posted by Mark Gulbrandsen <by...@sigcode.com>.
Ben Collins-Sussman wrote:
 >
 > It's a permissions/umask problem.  You've probably got different
 > processes using different umasks to read/write the db files, which
 > ends up blocking access for the next process.
 >

Sure enough, fiddling with a few umask and permissions issues fixed this
problem. Sorry to waste bandwidth. However, perhaps I can add something
to all of this.

I added a configure switch --with-suexec-umask=002 and recompiled
apache. That didn't solve the problem, but I left it in (can someone
confirm or deny that this has any relevance to the permissions problem?).

Then I modified apache to run as the group that my development team uses.

The system umask is, and has been for a week, 002.

With all of those configurations, it finally worked. I guess I lost
focus of the umask/permissions issue too quickly.

Thanks,

Mark

-- 
When the dust has cleared
And victory denied
A summer too lofty
A river a little too wide
If we keep our pride
Though paradise is lost
We will pay the price
But we will not count the cost

	-Rush, Roll the Bones, Bravado


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

Re: simultaneous ra_dav and ra_svn access problems

Posted by Ben Collins-Sussman <su...@collab.net>.
"Mark Gulbrandsen" <by...@zserve.com> writes:

> We have a fairly large repo for our code. We'd like to access it via
> ra_dav and ra_svn and ra_file when and how we like. This works fine as
> long as these protocols are not used at the same time. If they are, the
> database needs to be recovered for some reason.

It's a permissions/umask problem.  You've probably got different
processes using different umasks to read/write the db files, which
ends up blocking access for the next process.

Look at this part of the book:

   http://svnbook.red-bean.com/book.html#svn-ch-5-sect-5


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