You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by listmail <li...@brightstar.bomgardner.net> on 2008/09/16 13:06:10 UTC

403 error still unresolved - What am I missing?

Hi-
First, I corrected the typo noted by Ken Liu - without a change in the problem.

I've been re-installing Subversion on FreeBSD 7 after a disk crash.
This setup (conf files anyway) were taken from a working backup.
I normally use avn with TortoiseSVN from a Windows XP Box.
I've been through the book, faq, and archives - nothing found helps.

I keep getting 403 Forbidden errors on any operation. The repository
"jam" is currently empty and I've been trying to import.

the error occurs  when importing with  TORTOISESVN or 
"svn import jam svn://..." or 
"svn import jam http://...", even though all file permissions are set to 777.

"svn import jam file://..." works ok.


Thanx for any help,
Gene

Logs, conf, etc. follows:

-----------------------------------------------------------------
ERROR WHEN importing with  TORTOISESVN or 
"svn import svn://..." or 
"svn import http://..."
-----------------------------------------------------------------
Error: PROPFIND request failed on '/publicsvn/jam'  
Error: PROPFIND of '/publicsvn/jam': 403 Forbidden (http://brightstar)  

-----------------------------------------------------------------
FROM httpd-error.log
-----------------------------------------------------------------
[Wed Aug 27 07:07:15 2008] [error] [client 192.168.0.2] Access denied: 'user'
PROPFIND jam

-----------------------------------------------------------------
DIRECTORY STRUCTURE & PERMISSIONS
Permissions were set to 777 for testing purposes
Note that publicsvn also has 777 permissions
-----------------------------------------------------------------
#>ll -R /usr/local/publicsvn
total 4
-rwxr-xr-x  1 www  www   18 Jun 11 09:05 access
drwxrwxrwx  7 www  www  512 May 19 08:31 jam

/usr/local/publicsvn/jam:
total 14
-rwxrwxrwx  1 www  www  229 May 19 08:31 README.txt
drwxrwxrwx  2 www  www  512 May 19 08:31 conf
drwxrwxrwx  2 www  www  512 May 19 08:31 dav
drwxrwxrwx  5 www  www  512 May 19 08:31 db
-rwxrwxrwx  1 www  www    2 May 19 08:31 format
drwxrwxrwx  2 www  www  512 May 19 08:31 hooks
drwxrwxrwx  2 www  www  512 May 19 08:31 locks

/usr/local/publicsvn/jam/conf:
total 6
-rwxrwxrwx  1 www  www   684 May 19 08:31 authz
-rwxrwxrwx  1 www  www   309 May 19 08:31 passwd
-rwxrwxrwx  1 www  www  1457 May 19 08:31 svnserve.conf

/usr/local/publicsvn/jam/dav:
total 0

/usr/local/publicsvn/jam/db:
total 14
-rwxrwxrwx  1 www  www    6 May 19 08:31 current
-rwxrwxrwx  1 www  www    2 May 19 08:31 format
-rwxrwxrwx  1 www  www    5 May 19 08:31 fs-type
drwxrwxrwx  2 www  www  512 May 19 08:31 revprops
drwxrwxrwx  2 www  www  512 May 19 08:31 revs
drwxrwxrwx  2 www  www  512 May 19 08:31 transactions
-rwxrwxrwx  1 www  www   37 May 19 08:31 uuid
-rwxrwxrwx  1 www  www    0 May 19 08:31 write-lock

/usr/local/publicsvn/jam/db/revprops:
total 2
-rwxrwxrwx  1 www  www  50 May 19 08:31 0

/usr/local/publicsvn/jam/db/revs:
total 2
-rwxrwxrwx  1 www  www  115 May 19 08:31 0

/usr/local/publicsvn/jam/db/transactions:
total 0

/usr/local/publicsvn/jam/hooks:
total 26
-rwxrwxrwx  1 www  www  2015 May 19 08:31 post-commit.tmpl
-rwxrwxrwx  1 www  www  1638 May 19 08:31 post-lock.tmpl
-rwxrwxrwx  1 www  www  2255 May 19 08:31 post-revprop-change.tmpl
-rwxrwxrwx  1 www  www  1567 May 19 08:31 post-unlock.tmpl
-rwxrwxrwx  1 www  www  2940 May 19 08:31 pre-commit.tmpl
-rwxrwxrwx  1 www  www  2044 May 19 08:31 pre-lock.tmpl
-rwxrwxrwx  1 www  www  2764 May 19 08:31 pre-revprop-change.tmpl
-rwxrwxrwx  1 www  www  1985 May 19 08:31 pre-unlock.tmpl
-rwxrwxrwx  1 www  www  2137 May 19 08:31 start-commit.tmpl

/usr/local/publicsvn/jam/locks:
total 4
-rwxrwxrwx  1 www  www  139 May 19 08:31 db-logs.lock
-rwxrwxrwx  1 www  www  139 May 19 08:31 db.lock

-----------------------------------------------------------------
### FROM httpd.conf
-----------------------------------------------------------------

LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so
LoadModule authz_svn_module   libexec/apache2/mod_authz_svn.so

<Location /publicsvn>
  DAV svn
  SVNParentPath /usr/local/publicsvn/
  SVNIndexXSLT "/styles/svnindex.xsl"

# Access policy file
  AuthzSVNAccessFile /usr/local/publicsvn/access

# Try anonymous access first, resort to real auth if necessary
  Satisfy Any
  Require valid-user

# Real Authentication
  Authtype Basic
  Authname "Source Repositories"
  Authuserfile /usr/local/etc/apache22/htusers
</Location>


--


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

Re: 403 error still unresolved - What am I missing?

Posted by Lieven Govaerts <sv...@mobsol.be>.
listmail wrote:
> Hi-
..
> 
> I keep getting 403 Forbidden errors on any operation. The repository
> "jam" is currently empty and I've been trying to import.
> 
> the error occurs  when importing with  TORTOISESVN or 
> "svn import jam svn://..." or 
> "svn import jam http://...", even though all file permissions are set to 777.
> 

A forbidden error comes from the authz module, not from unix file
permissions.
..
> LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so
> LoadModule authz_svn_module   libexec/apache2/mod_authz_svn.so
> 
> <Location /publicsvn>
>   DAV svn
>   SVNParentPath /usr/local/publicsvn/
>   SVNIndexXSLT "/styles/svnindex.xsl"
> 
> # Access policy file
>   AuthzSVNAccessFile /usr/local/publicsvn/access
> 
> # Try anonymous access first, resort to real auth if necessary
>   Satisfy Any
>   Require valid-user
> 
> # Real Authentication
>   Authtype Basic
>   Authname "Source Repositories"
>   Authuserfile /usr/local/etc/apache22/htusers
> </Location>
> 

What does you authz file in /usr/local/publicsvn/access look like? Does
it allow the correct write access to user 'user' ?

Lieven

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