You are not logged in.

#1 2008-10-10 23:17:20

e1986
Member
Registered: 2008-09-25
Posts: 13

SVN + Apache + SSL

Hi there!
I'm having a real headache trying to set up svn + apache. With great difficulties, I completed the steps in the wiki (it mentions /etc/httpd/conf/mod_ssl.txt, a file that doesn't exist... or maybe I'm missing something). I've got apache working fine. The problem comes when I try this step:

 svn import -m "Initial import" https://localhost/svn/test

It first asks me for root password. Then it asks me for a user (I assume it is one of the users created for the repo) and it's password, and then dies with:

svn: Can't open file '/home/svn/repositories/test/db/txn-current-lock': Permission denied

Anybody has any idea of what's going on?
Thanks in advance!

Offline

#2 2008-10-10 23:49:20

sessy
Member
Registered: 2006-01-20
Posts: 104

Re: SVN + Apache + SSL

e1986 wrote:
 svn import -m "Initial import" https://localhost/svn/test

What are you trying to achieve with this?
The correct syntax of an import is something like

svn import /path/to/project/files https://localhost/svn/test -m "initial import"

(import project/files into the repo at https://localhost/svn/test)

Plus make sure the webserver has write access to the svn repo.

Offline

#3 2008-10-11 08:38:37

e1986
Member
Registered: 2008-09-25
Posts: 13

Re: SVN + Apache + SSL

Hi, thanks for the reply!
It does exactly the same. I suppose apache has write access, as the repo directory is owned by "nobody" wich seems to be the apache user (and it has write access)
Ok, here is the complete output:

[emil@CivilizationII ~]$ svn import /home/svn/repositories/test/ https://localhost/svn/test -m "initial import"
Authentication realm: <https://localhost:443> Test SVN Repo
Password for 'emil':
Authentication realm: <https://localhost:443> Test SVN Repo
Username: emil
Password for 'emil':
svn: Can't open file '/home/svn/repositories/test/db/txn-current-lock': Permission denied

If I do it as root, it will first ask for my root password

Last edited by e1986 (2008-10-11 08:39:36)

Offline

#4 2008-10-12 15:54:26

sofa5000
Member
Registered: 2008-03-18
Posts: 10

Re: SVN + Apache + SSL

Hi,

1: Does ssl work? Create an html file (e.g. test.html) an place it in your webroot and open it (https://localhost:443/test.html). Does this work? If this doesn't work look at this http://cvs.archlinuxppc.org:7647/viewvc … iew=markup (= the file you mentioned as missing).

2: If 1 works have you set the complete svn directory read- and writeable for the user http?

Offline

#5 2008-10-14 21:20:29

e1986
Member
Registered: 2008-09-25
Posts: 13

Re: SVN + Apache + SSL

Hi!
Yes, ssl works, and about the svn directory I'n not quite sure. the user of apache is "nobody"? If so, yes, it is writeable.
Anyway, I finally used svnserver, wich for my project does the job quite well. Thanks everyone for your help!

Offline

#6 2008-10-15 15:21:48

sofa5000
Member
Registered: 2008-03-18
Posts: 10

Re: SVN + Apache + SSL

The user of apache is http an is in the group http. Therefore change the owner to http and try it again.

Offline

Board footer

Powered by FluxBB