You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Pat Farrell <pf...@pfarrell.com> on 2008/06/16 19:22:06 UTC

AuthzSVNAccessFile fails no matter how its set

I can't get this to work. The apache logs are not very specific:

[Mon Jun 16 12:57:50 2008] [error] [client 70.184.242.240] Access
denied: 'dstoddard' CHECKOUT repos:/natshop/docs

Here is the authz file

[groups]
everyone = pfarrell, kelly, dstoddard
natshops = pfarrell, dstoddard

[natshop]
@natshops = rw


Here is the virtual host fragment:
<Location /repos>
  SSLRequireSSL
 DAV svn
 SVNPath /var/svnhome
 AuthType Basic
 AuthName "SVN Repository"
 AuthUserFile /usr/local/apache2/goodusers
 Require valid-user
 AuthzSVNAccessFile /usr/local/apache2/authz

</Location>

I can checkout fine, but commits fail.

The real repository is /var/svnhome/
and this project is /var/svnhome/natshop/

Thanks
Pat

-- 
Pat Farrell
http://www.pfarrell.com/


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

Re: AuthzSVNAccessFile fails no matter how its set

Posted by Andy Levy <an...@gmail.com>.
On Mon, Jun 16, 2008 at 11:07 PM, Pat Farrell <pf...@pfarrell.com> wrote:
> Hari Kodungallur wrote:
>> Well, the issue clearly is because it is not able to resolve
>> www.pfarrell.com <http://www.pfarrell.com>. And not with the
>> authorization file.
>> How were you able to checkout? Did something change after you checked
>> out? May be the host is down. Or may be you need to now resolve it
>> through a proxy.
>
> No, the host is not down, and no proxy is needed.
> I think its the [natshop] in the authz that just needs to be [/natshop]

Hari didn't say the host is down. The error message very clearly
states that the hostname can't be resolved - a DNS or other network
issue. Your client hasn't even gotten far enough to determine if the
host is up or down.

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

Re: AuthzSVNAccessFile fails no matter how its set

Posted by Pat Farrell <pf...@pfarrell.com>.
Hari Kodungallur wrote:
> Well, the issue clearly is because it is not able to resolve
> www.pfarrell.com <http://www.pfarrell.com>. And not with the
> authorization file.
> How were you able to checkout? Did something change after you checked
> out? May be the host is down. Or may be you need to now resolve it
> through a proxy.

No, the host is not down, and no proxy is needed.
I think its the [natshop] in the authz that just needs to be [/natshop]

The messages are fairly obscure. SVN really needs a verbosity switch to
help debug these problems.

-- 
Pat Farrell
http://www.pfarrell.com/


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

Re: AuthzSVNAccessFile fails no matter how its set

Posted by Hari Kodungallur <hk...@gmail.com>.
On Mon, Jun 16, 2008 at 3:42 PM, Pat Farrell <pf...@pfarrell.com> wrote:

> Hari Kodungallur wrote:
> > What is the error on the command line when you execute the command?
>
> pfarrell@tools:~/sandbox/natshop/docs$ cp newcert.sh foo
> pfarrell@tools:~/sandbox/natshop/docs$ svn add foo
> A         foo
> pfarrell@tools:~/sandbox/natshop/docs$ svn commit
> svn: Commit failed (details follow):
> svn: OPTIONS request failed on '/repos/natshop/docs'
> svn: OPTIONS of '/repos/natshop/docs': Could not resolve hostname
> `www.pfarrell.com': No address associated with hostname
> (https://www.pfarrell.com)



Well, the issue clearly is because it is not able to resolve
www.pfarrell.com. And not with the authorization file.
How were you able to checkout? Did something change after you checked out?
May be the host is down. Or may be you need to now resolve it through a
proxy.



>
> svn: Your commit message was left in a temporary file:
> svn:    '/home/pfarrell/sandbox/natshop/svn-commit.tmp'
> pfarrell@tools:~/sandbox/natshop/docs$
>
>
> Yes, the apache log only talks about checkout, but that works. Most strange
>
> --
> Pat Farrell
> http://www.pfarrell.com/
>
>

Re: AuthzSVNAccessFile fails no matter how its set

Posted by Pat Farrell <pf...@pfarrell.com>.
Hari Kodungallur wrote:
> What is the error on the command line when you execute the command?

pfarrell@tools:~/sandbox/natshop/docs$ cp newcert.sh foo
pfarrell@tools:~/sandbox/natshop/docs$ svn add foo
A         foo
pfarrell@tools:~/sandbox/natshop/docs$ svn commit
svn: Commit failed (details follow):
svn: OPTIONS request failed on '/repos/natshop/docs'
svn: OPTIONS of '/repos/natshop/docs': Could not resolve hostname
`www.pfarrell.com': No address associated with hostname
(https://www.pfarrell.com)
svn: Your commit message was left in a temporary file:
svn:    '/home/pfarrell/sandbox/natshop/svn-commit.tmp'
pfarrell@tools:~/sandbox/natshop/docs$


Yes, the apache log only talks about checkout, but that works. Most strange

-- 
Pat Farrell
http://www.pfarrell.com/


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

Re: AuthzSVNAccessFile fails no matter how its set

Posted by Hari Kodungallur <hk...@gmail.com>.
On Mon, Jun 16, 2008 at 12:22 PM, Pat Farrell <pf...@pfarrell.com> wrote:

> I can't get this to work. The apache logs are not very specific:
>
> [Mon Jun 16 12:57:50 2008] [error] [client 70.184.242.240] Access
> denied: 'dstoddard' CHECKOUT repos:/natshop/docs



What is the error on the command line when you execute the command?



>
>
> Here is the authz file
>
> [groups]
> everyone = pfarrell, kelly, dstoddard
> natshops = pfarrell, dstoddard
>
> [natshop]
> @natshops = rw
>


Can you try with [/natstop]



>
>
> Here is the virtual host fragment:
> <Location /repos>
>  SSLRequireSSL
>  DAV svn
>  SVNPath /var/svnhome
>  AuthType Basic
>  AuthName "SVN Repository"
>  AuthUserFile /usr/local/apache2/goodusers
>  Require valid-user
>  AuthzSVNAccessFile /usr/local/apache2/authz
>
> </Location>
>
> I can checkout fine, but commits fail.


Hm... the apache log seems to suggest you can't checkout as well.



>
>
> The real repository is /var/svnhome/
> and this project is /var/svnhome/natshop/



regards,
-Hari

Re: AuthzSVNAccessFile fails no matter how its set

Posted by Eric Lee <er...@myprojects.srhost.info>.
----------------------------------------------------
http://myprojects.srhost.info
eric{at}myprojects{dot}srhost{dot}info

----- Original Message ----- 
From: "Pat Farrell" <pf...@pfarrell.com>
To: <us...@subversion.tigris.org>
Sent: Tuesday, June 17, 2008 3:22 AM
Subject: AuthzSVNAccessFile fails no matter how its set


: I can't get this to work. The apache logs are not very specific:
: 
: [Mon Jun 16 12:57:50 2008] [error] [client 70.184.242.240] Access
: denied: 'dstoddard' CHECKOUT repos:/natshop/docs
: 
: Here is the authz file
: 
: [groups]
: everyone = pfarrell, kelly, dstoddard
: natshops = pfarrell, dstoddard
: 
: [natshop]
: @natshops = rw
: 

Since you are using SVNPath, so here should be only one repos.

try change to
[natshop:/]
@natshops = rw

or 

[/]
@natshops = rw


Wish that help.

: 
: Here is the virtual host fragment:
: <Location /repos>
:   SSLRequireSSL
:  DAV svn
:  SVNPath /var/svnhome
:  AuthType Basic
:  AuthName "SVN Repository"
:  AuthUserFile /usr/local/apache2/goodusers
:  Require valid-user
:  AuthzSVNAccessFile /usr/local/apache2/authz
: 
: </Location>
: 
: I can checkout fine, but commits fail.
: 
: The real repository is /var/svnhome/
: and this project is /var/svnhome/natshop/
: 
: Thanks
: Pat
: 
: -- 
: Pat Farrell
: http://www.pfarrell.com/
: 
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
: For additional commands, e-mail: users-help@subversion.tigris.org
: 

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