Hey guys,
I am trying to setup a Subversion repository on my slack 10 box. I have
upgraded to apache 2.0.52 using the package at linuxpackages.org. I have
installed the Subversion 1.1.3 package from there as well.
I can create the repository, and access it locally just fine. I added
this to my httpd.conf:
---------------------------------------------------------------------------------------------------
LoadModule dav_svn_module lib/apache2/mod_dav_svn.so
LoadModule authz_svn_module lib/apache2/mod_authz_svn.so
DavLockDB /var/DavLock
<Location /svn>
Dav svn
SVNPath /var/repository/
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/passwd/subversion-access
Require valid-user
</Location>
---------------------------------------------------------------------------------------------------
Here are the permissions on the Repository:
----------------------------------------------------------------------------------------------------
drwxrws--- 7 nobody nogroup 4096 2005-02-01 15:47 repository//
-rw-rw-r-- 1 nobody nogroup 379 2005-02-01 15:47 README.txt
drwxr-sr-x 2 nobody nogroup 4096 2005-02-01 15:47 conf/
drwxr-sr-x 2 nobody nogroup 4096 2005-02-01 15:47 dav/
drwxr-sr-x 2 nobody nogroup 4096 2005-02-01 15:47 db/
-rw-rw-r-- 1 nobody nogroup 2 2005-02-01 15:47 format
drwxr-sr-x 2 nobody nogroup 4096 2005-02-01 15:47 hooks/
drwxr-sr-x 2 nobody nogroup 4096 2005-02-01 15:47 locks/
repository/conf:
total 4
-rw-rw-r-- 1 nobody nogroup 1361 2005-02-01 15:47 svnserve.conf
repository/dav:
total 0
repository/db:
total 768
-rw-rw-r-- 1 nobody nogroup 1955 2005-02-01 15:47 DB_CONFIG
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 __db.001
-rw-rw-r-- 1 nobody nogroup 270336 2005-02-01 15:47 __db.002
-rw-rw-r-- 1 nobody nogroup 393216 2005-02-01 15:47 __db.003
-rw-rw-r-- 1 nobody nogroup 737280 2005-02-01 15:47 __db.004
-rw-rw-r-- 1 nobody nogroup 16384 2005-02-01 15:47 __db.005
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 changes
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 copies
-rw-rw-r-- 1 nobody nogroup 4 2005-02-01 15:47 fs-type
-rw-rw-r-- 1 nobody nogroup 72140 2005-02-01 15:47 log.0000000001
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 nodes
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 representations
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 revisions
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 strings
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 transactions
-rw-rw-r-- 1 nobody nogroup 8192 2005-02-01 15:47 uuids
repository/hooks:
total 20
-rw-rw-r-- 1 nobody nogroup 1411 2005-02-01 15:47 post-commit.tmpl
-rw-rw-r-- 1 nobody nogroup 1475 2005-02-01 15:47 post-revprop-change.tmpl
-rw-rw-r-- 1 nobody nogroup 2336 2005-02-01 15:47 pre-commit.tmpl
-rw-rw-r-- 1 nobody nogroup 1952 2005-02-01 15:47 pre-revprop-change.tmpl
-rw-rw-r-- 1 nobody nogroup 1533 2005-02-01 15:47 start-commit.tmpl
repository/locks:
total 8
-rw-rw-r-- 1 nobody nogroup 295 2005-02-01 15:47 db-logs.lock
-rw-rw-r-- 1 nobody nogroup 460 2005-02-01 15:47 db.lock
----------------------------------------------------------------------------------------------------
Apache runs as nobody:nogroup
I can access my local webpages via apache just fine. I can access
regular DAV sites just fine, (I use the Firefox Bookmark Syncronization
extension) using DAV On.
When I have the authz_svn_module loaded, and try to access one of my
normal (non-dav) pages that use Auth Basic authentication, they fail. I
just get a blank page. When I don't load authz_svn_module, my pages load
fine.
When I try to access my (url)/svn using subversion, Apache segfaults.
my doc-root is /var/www/htdocs.
Looking at the strace output, it seems like apache is looking for
/var/www/htdocs/svn instead of following the Location tag and enabling
the DAV handler. Here is the strace output:
---------------------------------------------------------------------------------------------------
accept(3, {sa_family=AF_INET6, sin6_port=htons(2046),
inet_pton(AF_INET6, "::fff
f:*source-ip*", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 9
getsockname(9, {sa_family=AF_INET6, sin6_port=htons(80),
inet_pton(AF_INET6, "::
ffff:192.168.1.100", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
[28]) = 0
brk(0) = 0x81ce000
brk(0x81d0000) = 0x81d0000
fcntl64(9, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(9, F_SETFL, O_RDWR|O_NONBLOCK) = 0
brk(0) = 0x81d0000
brk(0x81d2000) = 0x81d2000
read(9, 0x81cf3e8, 8000) = -1 EAGAIN (Resource temporarily unavai
lable)
poll([{fd=9, events=POLLIN, revents=POLLIN}], 1, 300000) = 1
read(9, "PROPFIND /svn HTTP/1.1\r\nHost: bo"..., 8000) = 554
gettimeofday({1107380220, 201997}, NULL) = 0
gettimeofday({1107380220, 203109}, NULL) = 0
semop(3440654, 0x401c6dc8, 1) = 0
write(8, "*source-ip* - - [02/Feb/2005:1"..., 125) = 125
semop(3440654, 0x401c6dce, 1) = 0
stat64("/var/www/htdocs/svn", 0xbffff750) = -1 ENOENT (No such file or
directory
)
open("/.htaccess", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
directory)
lstat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/var/.htaccess", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file
or direct
ory)
lstat64("/var/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/var/www/.htaccess", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such
file or di
rectory)
lstat64("/var/www/htdocs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/var/www/htdocs/svn", 0xbffff730) = -1 ENOENT (No such file or
director
y)
brk(0) = 0x81d2000
brk(0x81d4000) = 0x81d4000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
------------------------------------------------------------------------------------------------------
I am hoping that I just forgot to do something in my httpd.conf. I don't
understand why, #1, apache is still looking at /var/www/htdocs/svn, #2,
it is segfaulting, or #3, why mod_authz_svn would affect auth-basic
authentication in any way.
Any information or suggestions is appreciated.
Thanks,
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Feb 6 06:15:04 2005