LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-02-2005, 04:08 PM   #1
andrew_0812
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Rep: Reputation: 0
Subversion in Slackware 10


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 root nobody 4096 2005-02-01 15:47 repository//

root@desktop:/var# ls -lR repository/
repository/:
total 28
-rw-rw-r-- 1 root nobody 379 2005-02-01 15:47 README.txt
drwxr-sr-x 2 root nobody 4096 2005-02-01 15:47 conf/
drwxr-sr-x 2 root nobody 4096 2005-02-01 15:47 dav/
drwxr-sr-x 2 root nobody 4096 2005-02-01 15:47 db/
-rw-rw-r-- 1 root nobody 2 2005-02-01 15:47 format
drwxr-sr-x 2 root nobody 4096 2005-02-01 15:47 hooks/
drwxr-sr-x 2 root nobody 4096 2005-02-01 15:47 locks/

repository/conf:
total 4
-rw-rw-r-- 1 root nobody 1361 2005-02-01 15:47 svnserve.conf

repository/dav:
total 0

repository/db:
total 768
-rw-rw-r-- 1 root nobody 1955 2005-02-01 15:47 DB_CONFIG
-rw-rw-r-- 1 root nobody 8192 2005-02-01 15:47 __db.001
-rw-rw-r-- 1 root nobody 270336 2005-02-01 15:47 __db.002
-rw-rw-r-- 1 root nobody 393216 2005-02-01 15:47 __db.003
-rw-rw-r-- 1 root nobody 737280 2005-02-01 15:47 __db.004
-rw-rw-r-- 1 root nobody 16384 2005-02-01 15:47 __db.005
-rw-rw-r-- 1 root nobody 8192 2005-02-01 15:47 changes
-rw-rw-r-- 1 root nobody 8192 2005-02-01 15:47 copies
-rw-rw-r-- 1 root nobody 4 2005-02-01 15:47 fs-type
-rw-rw-r-- 1 root nobody 72140 2005-02-01 15:47 log.0000000001
-rw-rw-r-- 1 root nobody 8192 2005-02-01 15:47 nodes
-rw-rw-r-- 1 root nobody 8192 2005-02-01 15:47 representations
-rw-rw-r-- 1 root nobody 8192 2005-02-01 15:47 revisions
-rw-rw-r-- 1 root nobody 8192 2005-02-01 15:47 strings
-rw-rw-r-- 1 root nobody 8192 2005-02-01 15:47 transactions
-rw-rw-r-- 1 root nobody 8192 2005-02-01 15:47 uuids

repository/hooks:
total 20
-rw-rw-r-- 1 root nobody 1411 2005-02-01 15:47 post-commit.tmpl
-rw-rw-r-- 1 root nobody 1475 2005-02-01 15:47 post-revprop-change.tmpl
-rw-rw-r-- 1 root nobody 2336 2005-02-01 15:47 pre-commit.tmpl
-rw-rw-r-- 1 root nobody 1952 2005-02-01 15:47 pre-revprop-change.tmpl
-rw-rw-r-- 1 root nobody 1533 2005-02-01 15:47 start-commit.tmpl

repository/locks:
total 8
-rw-rw-r-- 1 root nobody 295 2005-02-01 15:47 db-logs.lock
-rw-rw-r-- 1 root nobody 460 2005-02-01 15:47 db.lock
----------------------------------------------------------------------------------------------------



Apache runs as nobody:nobody

I can access my local webpages via apache just fine.

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
 
Old 02-04-2005, 08:58 AM   #2
andrew_0812
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Original Poster
Rep: Reputation: 0
no one has any ideas?
 
Old 02-12-2005, 03:29 PM   #3
andrew_0812
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I solved the problems. The Apache Package that I used was compiled with CPPFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64". Evidently this is something that must be done for Slackware 10, because when I compiled without it Apache's child processess segfaulted immediately. So Subversion had to be compiled with the same flags. I had to rebuild Apache anyway because it used headers from a different version of BDB than subversion did. Everything works now, and the AuthSVN module works correctly as well.


Andrew
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subversion (svn) client for Slackware? shilo Slackware 1 08-22-2005 06:05 PM
subversion varun_33 Linux - Software 1 04-20-2005 12:37 PM
help: compiling subversion-1.1.2 on Slackware 10.0 jaysan Slackware 2 01-15-2005 05:47 AM
subversion sethgeekx86 Slackware 8 07-26-2004 03:29 PM
How to install Subversion(Version Control with Subversion) under RedHat Linux. netkiller Linux - Networking 1 07-01-2004 05:45 AM


All times are GMT -5. The time now is 05:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration