Bonjour,
J'avais installé svn (en suivant ce tuto) il y a quelque temps mais je n'ai pas eu le temps d'aller au bout. Aujourd'hui je reprends mes investigations et je ne comprends pas ce qui provoque le problème suivant :
lorsque j'importe un projet en ligne de commande, je n'arrive pas a y accéder via apache.sudo svn import jpowebservicedb file:///var/svn/jpowebservicedb -m "import initial de jpowebservicedb"
La liste des projets en mode commande me donne :
cela correspond aux commandes que j'ai faites dernièrementsvn ls svn://localhost/
foo/
jpowebservicedb/
via apache (url=http://localhost/svn/), j'ai une page qui affiche :
j'ai fait la commande :Collection of Repositories
* AlloPass/
* com_jpovmdol15/
* conf/
* db/
* hooks/
* locks/
* projet1/
J'ai bien l'impression d'avoir deux repository mais quand je vérifie les fichiers de configuration je trouve qu'ils pointent sur le même.ls -l /var/svn
total 36
drwxr-xr-x 6 svn root 4096 2009-03-28 15:46 AlloPass
drwxr-xr-x 6 svn root 4096 2009-03-09 18:42 com_jpovmdol15
drwxr-xr-x 2 svn root 4096 2009-03-06 23:26 conf
drwxr-sr-x 6 svn root 4096 2009-09-09 09:14 db
-r--r--r-- 1 svn root 2 2009-03-06 23:26 format
drwxr-xr-x 2 svn root 4096 2009-03-06 23:26 hooks
drwxr-xr-x 2 svn root 4096 2009-03-06 23:26 locks
drwxr-xr-x 6 svn root 4096 2009-03-09 05:54 projet1
-rw-r--r-- 1 svn root 229 2009-03-06 23:26 README.txt
Voici le contenu de mon fichier /etc/apache2/mods-available/dav_svn.conf :
Voici le contenu de mon fichier de lancement du serveur /etc/init.d/svnserve :# dav_svn.conf - Example Subversion/Apache configuration
#
# For details and further options see the Apache user manual and
# the Subversion book.
#
# NOTE: for a setup with multiple vhosts, you will want to do this
# configuration in /etc/apache2/sites-available/*, not here.
# <Location URL> ... </Location>
# URL controls how the repository appears to the outside world.
# In this example clients access the repository as http://hostname/svn/
# Note, a literal /svn should NOT exist in your document root.
<Location /svn>
# Uncomment this to enable the repository
DAV svn
# Set this to the path to your repository
#SVNPath /var/lib/svn
# Alternatively, use SVNParentPath if you have multiple repositories under
# under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...).
# You need either SVNPath and SVNParentPath, but not both.
SVNParentPath /var/svn
SVNListParentPath On
# Access control is done at 3 levels: (1) Apache authentication, via
# any of several methods. A "Basic Auth" section is commented out
# below. (2) Apache <Limit> and <LimitExcept>, also commented out
# below. (3) mod_authz_svn is a svn-specific authorization module
# which offers fine-grained read/write access control for paths
# within a repository. (The first two layers are coarse-grained; you
# can only enable/disable access to an entire repository.) Note that
# mod_authz_svn is noticeably slower than the other two layers, so if
# you don't need the fine-grained control, don't configure it.
# Basic Authentication is repository-wide. It is not secure unless
# you are using https. See the 'htpasswd' command to create and
# manage the password file - and the documentation for the
# 'auth_basic' and 'authn_file' modules, which you will need for this
# (enable them with 'a2enmod').
###AuthType Basic
###AuthName "Subversion Repository"
###AuthUserFile /etc/apache2/dav_svn.passwd
# To enable authorization via mod_authz_svn
#AuthzSVNAccessFile /etc/apache2/dav_svn.authz
# The following three lines allow anonymous read, but make
# committers authenticate themselves. It requires the 'authz_user'
# module (enable it with 'a2enmod').
#<LimitExcept GET PROPFIND OPTIONS REPORT>
###Require valid-user
#</LimitExcept>
</Location>
Si quelqu'un peut m'aider, cela me gagnera beaucoup de temps car là je ne comprends pas ce qui peut être en cause.#!/bin/sh
set -e
if [ -x /usr/bin/svnserve ] ; then
HAVE_SVNSERVE=1
else
echo "Svnserve not installed."
exit 0
fi
. /lib/lsb/init-functions
case "$1" in
start)
log_action_begin_msg "Starting SVN server"
start-stop-daemon --start --chuid svn:svn --exec /usr/bin/svnserve -- -d -r /var/svn
log_action_end_msg $?
;;
stop)
log_action_begin_msg "Stoping SVN server"
start-stop-daemon --stop --exec /usr/bin/svnserve
log_action_end_msg $?
;;
force-reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/svnserve {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0
Cordialement,
Jean-Paul
Partager