Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Subversion Server doesn't work over network [SOLVED]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
17 posts • Page 1 of 1
Author
Message
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

Subversion Server doesn't work over network [SOLVED]

  • Quote

Post by -leliel- » Mon Oct 22, 2007 9:08 am

Hi folks,

I tried to set up a subversion server with this howto: http://rockfloat.com/howto/gentoo-subversion.html

Everything seems to work all right, but I can't checkout/import/do anything from another computer ...

Code: Select all

mbp17:~/Sites patrick$ svn import http://linuxbox/sf_ask -m "First Import"
subversion/libsvn_ra_dav/util.c:826: (apr_err=175002)
svn: PROPFIND request failed on '/sf_ask'
subversion/libsvn_ra_dav/util.c:296: (apr_err=175002)
svn: PROPFIND of '/sf_ask': could not connect to server (http://linuxbox)
mbp17:~/Sites patrick$ svn import svn://linuxbox/sf_ask -m "First Import"
subversion/svnserve/serve.c:1962: (apr_err=210005)
svn: No repository found in 'svn://linuxbox/sf_ask'
mbp17:~/Sites patrick$
The repository was created with svnadmin create and I also set the rights as described in the tutorial. Does anybody know what could be wrong here?

I also can't get any repository info with websvn.

Thanks a lot
Last edited by -leliel- on Tue Oct 23, 2007 1:08 pm, edited 1 time in total.
- carpe noctem -

dunkelelf@jabber.org
Top
dentharg
Guru
Guru
User avatar
Posts: 438
Joined: Tue Aug 10, 2004 12:17 pm
Location: /poland/wroclaw
Contact:
Contact dentharg
Website

  • Quote

Post by dentharg » Mon Oct 22, 2007 12:35 pm

For working with Subversion via http you need a DAV extension on your webserver (for apache it is mod_dav IIRC).

For starters maybe you should setup a svnserver server available via svn:// protocol?

I think there already is a /etc/init.d/svnserve script but I need to check it.

Edit:
A sh*t. I've just saw that you're also trying svn://. But your error suggest that your configuration for svn:// is not proper, ie: path to repository is either wrong or not set up. Check it.
Top
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

  • Quote

Post by -leliel- » Mon Oct 22, 2007 7:34 pm

damn. One of the how-to's said I should create further repositories in /var/svn/repos ... but it should go to /var/svn ... seems to work now, thanks for the hint!
- carpe noctem -

dunkelelf@jabber.org
Top
dentharg
Guru
Guru
User avatar
Posts: 438
Joined: Tue Aug 10, 2004 12:17 pm
Location: /poland/wroclaw
Contact:
Contact dentharg
Website

  • Quote

Post by dentharg » Tue Oct 23, 2007 7:04 am

Mark the topic with [SOLVED] if you have found a solution for your problem ;)
Top
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

  • Quote

Post by -leliel- » Tue Oct 23, 2007 7:41 am

it's not completely solved yet. ;)

I can easily check my stuff out and locally commit to stuff, but this doesn't work from a remote machine. If I try to connect to svn://myuser@linuxbox neither subclipse nor the svn command line tool ask me for a password and simply say 'authentication failed'.

I worked with two different howtos and I really don't know any solution ...

here are some configs, hope somebody can help:

Code: Select all

linuxbox patrick # cat /etc/conf.d/apache2 
APACHE2_OPTS="$APACHE2_OPTS -D PHP4 -D DEFAULT_VHOST -D SVN -D SVN_AUTHZ -D DAV -D DAV_FS -D SSL -D SSL_DEFAULT_VHOST -D AUTH_PAM"

Code: Select all

linuxbox patrick # cat /etc/apache2/modules.d/47_mod_dav_svn.ssl-conf 
<IfDefine SVN> 
        <IfModule !mod_dav_svn.c> 
                LoadModule dav_svn_module       modules/mod_dav_svn.so 
        </IfModule> 
        <Location /svn/repos> 
                DAV svn 
                SVNPath /var/svn/repos
                AuthType Basic
                AuthName "Subversion repository"
                AuthUserFile /var/svn/conf/svnusers
                Require valid-user
                <IfModule mod_auth_pam.c> 
                        AuthPAM_Enabled on 
                        AuthType Basic 
                        AuthName "Subversion repository" 
                        SSLRequireSSL 
                        Require group svnusers 
                </IfModule>
                # For any operations other than these, require an authenticated user.
                 <LimitExcept GET PROPFIND OPTIONS REPORT>
                        Require valid-user
                 </LimitExcept>
        </Location> 
        <IfDefine SVN_AUTHZ> 
                <IfModule !mod_authz_svn.c> 
                        LoadModule authz_svn_module     modules/mod_authz_svn.so
                </IfModule> 
        </IfDefine> 
</IfDefine> 

Code: Select all

linuxbox patrick # cat /etc/conf.d/svnserve 
# The commented variables in this file are the defaults that are used
# in the init-script.  You don't need to uncomment them except to
# customize them to different values.

# Options for svnserve
SVNSERVE_OPTS="--root=/var/svn"

# User and group as which to run svnserve
SVNSERVE_USER="apache"
SVNSERVE_GROUP="apache"
- carpe noctem -

dunkelelf@jabber.org
Top
dentharg
Guru
Guru
User avatar
Posts: 438
Joined: Tue Aug 10, 2004 12:17 pm
Location: /poland/wroclaw
Contact:
Contact dentharg
Website

  • Quote

Post by dentharg » Tue Oct 23, 2007 7:45 am

Hmm...
did you have a read of this:
http://svnbook.red-bean.com/en/1.4/svn. ... httpd.html?

Looks like you have no settings for repos location in Apache...
Top
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

  • Quote

Post by -leliel- » Tue Oct 23, 2007 7:57 am

hmm, nope. Thanks. I'll try.
- carpe noctem -

dunkelelf@jabber.org
Top
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

  • Quote

Post by -leliel- » Tue Oct 23, 2007 11:38 am

well, it's a very curious behaviour ... I can checkout stuff from everywhere via svn://linuxbox... I can also view https://linuxbox/svn/repos/ (empty repository) but not https://linuxbox/svn/repos/sf_ask (not found). And I can't commit anything. :(
- carpe noctem -

dunkelelf@jabber.org
Top
dentharg
Guru
Guru
User avatar
Posts: 438
Joined: Tue Aug 10, 2004 12:17 pm
Location: /poland/wroclaw
Contact:
Contact dentharg
Website

  • Quote

Post by dentharg » Tue Oct 23, 2007 11:53 am

Hmm.. your links suggests that you're using multiple repository configuration, yes?
sf_ask repository is not available within repos storage since it's empty.
Top
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

  • Quote

Post by -leliel- » Tue Oct 23, 2007 12:00 pm

well, but it's not empty ...

Code: Select all

linuxbox patrick # svn info svn://localhost/repos
Path: repos
URL: svn://localhost/repos
Repository Root: svn://localhost/repos
Repository UUID: 32059d94-0fb7-4d21-881e-9f884173ba1f
Revision: 0
Node Kind: directory
Last Changed Rev: 0
Last Changed Date: 2007-10-21 13:40:45 +0200 (Sun, 21 Oct 2007)

linuxbox patrick # svn info svn://localhost/repos/sf_ask
Path: sf_ask
URL: svn://localhost/repos/sf_ask
Repository Root: svn://localhost/repos/sf_ask
Repository UUID: 97992eb7-9f5d-4451-be8d-f1ffbfadbe8f
Revision: 1
Node Kind: directory
Last Changed Author: root
Last Changed Rev: 1
Last Changed Date: 2007-10-22 23:19:49 +0200 (Mon, 22 Oct 2007)
I don't understand ...

Code: Select all

svnlook tree /var/svn/repos/
/
I think I can also create a repository in /var/svn/ but it should also work in repos ...
- carpe noctem -

dunkelelf@jabber.org
Top
dentharg
Guru
Guru
User avatar
Posts: 438
Joined: Tue Aug 10, 2004 12:17 pm
Location: /poland/wroclaw
Contact:
Contact dentharg
Website

  • Quote

Post by dentharg » Tue Oct 23, 2007 12:07 pm

/svn/repos/ is just repo storage, an ordinary directory.

You should svnadmin create repo for each of your projects in /svn/repos/.

/svn/repos IS NOT REPOSITORY in case of multirepository storage.
Top
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

  • Quote

Post by -leliel- » Tue Oct 23, 2007 12:20 pm

Like this:

Code: Select all

svn create sf_ask /var/svn/repos
?

That's what I did ...
- carpe noctem -

dunkelelf@jabber.org
Top
dentharg
Guru
Guru
User avatar
Posts: 438
Joined: Tue Aug 10, 2004 12:17 pm
Location: /poland/wroclaw
Contact:
Contact dentharg
Website

  • Quote

Post by dentharg » Tue Oct 23, 2007 12:25 pm

should be:

Code: Select all

svnadmin create /var/svn/repos/sf_ask
Top
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

  • Quote

Post by -leliel- » Tue Oct 23, 2007 12:37 pm

sorry, my fault.

this is the script I use to create a new repository:

Code: Select all

#!/bin/bash
#
svnadmin create /var/svn/repos/$1
chown -R apache:svnusers /var/svn/repos/
chmod -R g-w /var/svn/repos/$1
chmod -R g+rw /var/svn/repos/$1/db
chmod -R g+rw /var/svn/repos/$1/locks
svnadmin command is correct.

svnlook tree works fine for /var/svn/repos/sf_ask, but I get 'Not found' on the https site.
- carpe noctem -

dunkelelf@jabber.org
Top
dentharg
Guru
Guru
User avatar
Posts: 438
Joined: Tue Aug 10, 2004 12:17 pm
Location: /poland/wroclaw
Contact:
Contact dentharg
Website

  • Quote

Post by dentharg » Tue Oct 23, 2007 12:47 pm

You have error in your config

For the <Location /svn/repos>
change SVNPath to SVNParentPath /var/svn/repos.

This is because you use MULTIPLE repository location and not SINGLE repository location.
Top
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

  • Quote

Post by -leliel- » Tue Oct 23, 2007 12:55 pm

works! Thank you. :)

Going to test out authentication stuff later.
- carpe noctem -

dunkelelf@jabber.org
Top
dentharg
Guru
Guru
User avatar
Posts: 438
Joined: Tue Aug 10, 2004 12:17 pm
Location: /poland/wroclaw
Contact:
Contact dentharg
Website

  • Quote

Post by dentharg » Tue Oct 23, 2007 1:03 pm

Glad to be of service. Now mark the topic with [SOLVED] ;)
Top
Post Reply

17 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy