[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: POST-commit hook issue - Check in works

From: Branko Čibej <brane_at_wandisco.com>
Date: Mon, 10 Feb 2014 14:13:58 +0100

On 10.02.2014 13:48, Matt Parks wrote:

[...]
>
>
> "apache" is the name of the local user on the server that your HTTPd
> process is running as.
>
>
>
> HTTPd Conf contains:
>
> # Load Subversion Apache Modules
> LoadModule dav_svn_module modules/mod_dav_svn.so
> LoadModule authz_svn_module modules/mod_authz_svn.so
>
> <Location /svn/>
> # Enable Subversion
> DAV svn
>
> # Directory containing all repos for this path
> SVNParentPath /var/svn
>
> # List repositories collection
> SVNListParentPath On
>
> # Repository Dispaly Name
> SVNReposName "Subversion Repositories"
>
> # Authorization file
> AuthzSVNAccessFile /var/svn/svn-acl-conf
>
> # authenticate a valid user
> # do basic password authentication in the clear
> AuthType Basic
>
> # The name of the protected area or realm
> AuthName "Subversion Repositories"
>
> # Basic Auth
> AuthUserFile /var/svn/svn-auth-conf
>
> # Require valid-user
> Require valid-user
> </Location>
>
>
>
>

I predict that /var/svn/svn-auth-conf does not mention the "apache" user
anywhere, so it's not a "valid user" as far as HTTPd is concerned, and
so fails the Require clause in your configuration.

I'm also wondering why you're checking out via http:// in your
post-commit hook ... this hook runs on the same server and user as the
HTTPd process, so presumably it should have file:// access to the
repository.

-- Brane

-- 
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane_at_wandisco.com
Received on 2014-02-10 14:14:40 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.