[RESOLU]Installation et configuration d'un svn sous debian etch

Installation et configuration d'un svn sous debian etch [RESOLU] - Logiciels - Linux et OS Alternatifs

Marsh Posté le 16-07-2008 à 13:14:01    

Salut a tous  :)  
alors j'espère poster dans la bonne section.
 
 
Voila j'explique ma problématique :
 
Je cherche a mettre en place un serveur svn accessible depuis le web sur ma debian etch,
j'ai donc suivi plusieurs tuto, que ce soit pour l'installation et la configuration du vistualhost et de ssl.
Après plusieurs jours de galeres, j'ai bien un svn j'ai même installé usvn, mais l'accès a distance pose toujours problème, en effet quand j'essaye de me connecter par http ou ssl (malgré avoir fait des modif des conf), il me dis toujour erreur 403. :cry:  
Je cherche donc de l'aide de la part de quelqu'un qui aurait deja fait ca, je peut fournir les fichier de conf et log  :heink:  
 
Merci d'avance de vos reponses  :hello:  :hello:


Message édité par maxlpelm le 21-08-2008 à 10:45:50
Reply

Marsh Posté le 16-07-2008 à 13:14:01   

Reply

Marsh Posté le 16-07-2008 à 14:59:03    

Personne n'aurait une piste ?  

Reply

Marsh Posté le 16-07-2008 à 21:14:10    

* paquets installés en détails
* type de config souhaitée : via apache avec mod_dav ou direct via svnserve
* fichiers de config
* logs si tu as

Reply

Marsh Posté le 16-07-2008 à 23:33:51    

alors j'ai installé :
-svn
-usvn(pour l'admin)
apache2
le mod_dav_svn pour apache
 
Le type de config souhaité :
Un acces ssl (pour passer un peu partout)
et par le web genre trac  
 
Mes fichier de config :
 
Mon virtual host :  

Code :
  1. <Location /svn>
  2.         DAV svn       
  3.         Require valid-user
  4.         SVNParentPath /home/svn/repo
  5.         AuthType Basic
  6.         AuthName "Mon Depot"
  7.         AuthUserFile /home/svn/htpasswd
  8.         AuthzSVNAccessFile /home/svn/access
  9. </Location>


 
Mon defaut.ssl

Code :
  1. <Location /svn>
  2.        DAV svn
  3.        Require valid-user
  4.        SVNParentPath /home/svn/repo
  5.        AuthType Basic
  6.        AuthName "Mon Depot"
  7.        AuthUserFile /home/svn/htpasswd
  8.        AuthzSVNAccessFile /home/svn/access
  9. </Location>


 
Et pour les logs je peut surement les mettres tous mais je ne sais pas exactement lequel mettre et ou ils sont ..
Kepp trying'' :bounce:  :bounce:

Reply

Marsh Posté le 16-07-2008 à 23:36:08    

Petit point sur l'avancement
 
USVN est fonctionnel et on peut gerer les projet et groupes/users.
SVN est fonctionnel aussi mais on ne peut y acceder de l'exterieur que ce soit en http ou ssl.
 
Voila si vous avez une piste ... :hello:
 
edit :  
l'erreur que je me paye a chaque test en http ou ssl

Code :
  1. Forbidden
  2. You don't have permission to access /doojet on this server.


Message édité par maxlpelm le 16-07-2008 à 23:38:03
Reply

Marsh Posté le 17-07-2008 à 03:22:10    

t'as rien compris à SLL je crois.
=> redoc ;)
 
pour ton erreur de droit: il faut que l'utilisateur qui fait tourner apache2 (www-data sur debian) ait le droit de lire le repertoire de ton repos svn


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
Reply

Marsh Posté le 17-07-2008 à 10:27:24    

zecrazytux a écrit :

t'as rien compris à SLL je crois.
=> redoc ;)


Merci de ta piste je me suis repenché sur ce protocole mais sur quel point pensent tu que je n'ai pas saisi ??
 
Donc je vais essayer de mettre les droit de www-data sur les rep avec :
 

Code :
  1. chown -R www-data:www-data /home/svn


 
 

Reply

Marsh Posté le 17-07-2008 à 10:29:30    

Quand j'essaye de browser mon svn par navigateur j'ai toujours la même erreur :

Code :
  1. Forbidden
  2. You don't have permission to access /svn/ on this server.
  3. Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 PHP/5.2.0-8+etch11 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at 192.168.0.10 Port 80

Reply

Marsh Posté le 17-07-2008 à 11:43:22    

pour ssl: il te faut un certif et généralement on utilise le https (http avec communications chiffrées par ssl) sur le port 443. donc:
1) faire tes certifs
2) écrire une conf apache correcte pour ça
 
y a des tutos partout.
 
pour le probleme de droits: que disent les logs ? si les droits sur le repertoire sur le fs sont bons, c'est qu'il manque quelquechose dans la conf d'apache... "allow from all... ?"


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
Reply

Marsh Posté le 17-07-2008 à 17:38:37    

Merci de tes réponses  ;)  
Avant de m'attaquer a la connection par https,
j'essaye de me connecter par http avec un browser ou tortoise .
 
Alors puisque USVN est fonctionnel je gere mon projet par la(creation/modification)
Cela me permet aussi de gerer les groupes et les droits sur les projets et repertoires.
 
Donc j'ai un projet dont le path local est : /home/svn/Doojet  
 
voila le bout de mon virtual host lié :

Code :
  1. <Location /doojet>
  2.         DAV svn
  3.         <LimitExcept GET PROFIND OPTION REPORT>
  4.                 Require valid-user
  5.         </LimitExcept>
  6.         SVNParentPath /home/svn/Doojet/
  7.         AuthType Basic
  8.         AuthName " Doojet repo"
  9.         AuthUserFile /home/svn/htpasswd
  10.         AuthzSVNAccessFile /home/svn/access
  11.     </Location>

 
 
Je relance apache par : invoke-rc.d apache2 restart
 
J'assigne les droit sur le repertoire a www-data :  
- chown -R www-data:www-data /home/svn/Doojet
 
Ensuite j'essaye de me connecter par http:\\adresse_hote\doojet
Une invite me demande un compte je me logge.
Et la :

Code :
  1. 403 Forbidden
  2. Forbidden
  3. You don't have permission to access /doojet on this server.
  4. Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 PHP/5.2.0-8+etch11 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at 192.168.0.10 Port 80


Si j'essaye avec tortoise il me redemande constamment de me logger sans jamais avec accès au repo. :sweat:  
Coté server mes logs apache disent ca :
-access.log

Code :
  1. 192.168.0.2 - - [17/Jul/2008:18:34:27 +0200] "OPTIONS / HTTP/1.1" 302 361 "-" "SVN/1.5.0 (r31699) neon/0.28.2"
  2. 192.168.0.2 - - [17/Jul/2008:18:34:34 +0200] "OPTIONS /doojet HTTP/1.1" 401 542 "-" "SVN/1.5.0 (r31699) neon/0.28.2"
  3. 192.168.0.2 - admin [17/Jul/2008:18:34:49 +0200] "OPTIONS /doojet HTTP/1.1" 403 349 "-" "SVN/1.5.0 (r31699) neon/0.28.2"
  4. 92.168.0.2 - - [17/Jul/2008:18:34:49 +0200] "OPTIONS / HTTP/1.1" 302 361 "-" "SVN/1.5.0 (r31699) neon/0.28.2"
  5. 192.168.0.2 - - [17/Jul/2008:18:34:49 +0200] "OPTIONS /doojet HTTP/1.1" 401 542 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  6. 192.168.0.2 - anonymous [17/Jul/2008:18:34:58 +0200] "OPTIONS /doojet HTTP/1.1" 403 349 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  7. 192.168.0.2 - - [17/Jul/2008:18:34:58 +0200] "OPTIONS /doojet HTTP/1.1" 401 542 "-" "SVN/1.5.0 (r31699) neon/0.28.2"
  8. 192.168.0.2 - - [17/Jul/2008:18:35:00 +0200] "OPTIONS / HTTP/1.1" 302 361 "-" "SVN/1.5.0 (r31699) neon/0.28.2"


 
-error.log

Code :
  1. [Thu Jul 17 18:34:49 2008] [error] [client 192.168.0.2] The URI does not contain the name of a repository.  [403, #190001]
  2. [Thu Jul 17 18:34:58 2008] [error] [client 192.168.0.2] The URI does not contain the name of a repository.  [403, #190001]


 
Voila donc apparement cela viens des droit mais je ne sais pas trop quoi faire. :??:  :??:  
ps : le tuto qui m'as servi de base  
http://www.exhaustif.com/Installer [...] -sous.html
 
Keep tryin'

Reply

Marsh Posté le 17-07-2008 à 17:38:37   

Reply

Marsh Posté le 17-07-2008 à 17:45:43    

doojet c'est un projet ?
 
=> parentpath incorrect. (y a parent dedans hein, donc le répertoire parent des repos. or tu indique un repos, directeement !)


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
Reply

Marsh Posté le 17-07-2008 à 18:06:45    

zecrazytux a écrit :

doojet c'est un projet ?


Oui, petit projet en j2ee.
 

zecrazytux a écrit :

=> parentpath incorrect. (y a parent dedans hein, donc le répertoire parent des repos. or tu indique un repos, directeement !)


 
Donc je change le : SVNParentPath /home/svn/repo
en SVNParentPath /home/svn
 
Je restart apache, et  :sweat: toujours meme erreur.

Code :
  1. Forbidden
  2. You don't have permission to access /doojet on this server.
  3. Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 PHP/5.2.0-8+etch11 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at 192.168.0.10 Port 80


 
access.log :

Code :
  1. 192.168.0.2 - - [17/Jul/2008:19:03:08 +0200] "GET /doojet HTTP/1.1" 403 349 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1"
  2. 192.168.0.2 - - [17/Jul/2008:19:03:08 +0200] "GET /doojet HTTP/1.1" 403 349 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1"


 
error.log :

Code :
  1. [Thu Jul 17 19:03:08 2008] [error] [client 192.168.0.2] The URI does not contain the name of a repository.  [403, #190001]
  2. [Thu Jul 17 19:03:08 2008] [error] [client 192.168.0.2] The URI does not contain the name of a repository.  [403, #190001]


 
toujours 403 ... :bounce:  :bounce:  

Reply

Marsh Posté le 17-07-2008 à 18:17:05    

maxlpelm a écrit :


Oui, petit projet en j2ee.
 


Libre bien sur :) ?
 
Donc je change le : SVNParentPath /home/svn/repo
en SVNParentPath /home/svn
 
Je restart apache, et  :sweat: toujours meme erreur.
 
 
normal, tu accedes au répertoire parent par  GET /doojet HTTP/1.1
pour acceder au repos, il faut tapper http://monserveur/doojet/NomDuRepo
 
parentpath c'est fait pour heberger plusieurs repos d'un coup. ne l'utilise pas si tu veux acceder qu'à un seul projet !


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
Reply

Marsh Posté le 17-07-2008 à 18:36:47    

zecrazytux a écrit :


Libre bien sur :) ?


Oui carrement c'est un projet de fin de formation dans une ecole.

zecrazytux a écrit :


 
normal, tu accedes au répertoire parent par  GET /doojet HTTP/1.1
pour acceder au repos, il faut tapper http://monserveur/doojet/NomDuRepo
 
parentpath c'est fait pour heberger plusieurs repos d'un coup. ne l'utilise pas si tu veux acceder qu'à un seul projet !


 
je commente  
#SVNParentPath /home/svn
et j'ajoute SVNPath /home/svn/doojet
 
restart apache
et toujours une erreur 403, sur l'url :
http://192.168.0.10/doojet
..
 
access.log

Code :
  1. 192.168.0.2 - - [17/Jul/2008:19:35:43 +0200] "GET /doojet HTTP/1.1" 403 349 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1"


 
error.log

Code :
  1. [Thu Jul 17 19:36:25 2008] [notice] caught SIGTERM, shutting down
  2. [Thu Jul 17 19:36:29 2008] [notice] Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 PHP/5.2.0-8+etch11 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations


 
 :bounce:  :bounce:


Message édité par maxlpelm le 17-07-2008 à 18:37:08
Reply

Marsh Posté le 17-07-2008 à 18:43:47    

rajoute ça dans le <location>
 
Options Indexes FollowSymLinks MultiViews
Order allow,deny
allow from all


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
Reply

Marsh Posté le 17-07-2008 à 18:52:28    

zecrazytux a écrit :

rajoute ça dans le <location>
 
Options Indexes FollowSymLinks MultiViews
Order allow,deny
allow from all


Je met a jour le location :

Code :
  1. <Location /doojet>
  2.         Options Indexes FollowSymLinks MultiViews
  3.         Order allow,deny
  4.         allow from all
  5.         DAV svn
  6.         <LimitExcept GET PROFIND OPTION REPORT>
  7.                 Require valid-user
  8.         </LimitExcept>
  9.         #SVNParentPath /home/svn
  10.         SVNPath /home/svn/doojet
  11.         AuthType Basic
  12.         AuthName " Doojet repo"
  13.         AuthUserFile /home/svn/htpasswd
  14.         AuthzSVNAccessFile /home/svn/access
  15.     </Location>


Une idée ??
 :bounce:  :bounce:


Message édité par maxlpelm le 17-07-2008 à 18:52:53
Reply

Marsh Posté le 17-07-2008 à 18:57:55    

hmmm
encore un 403 ?
 
t'es sur des droits de /home/svn/doojet ?
t'as créé le projet ?
t'as quoi dans /home/svn/access ?


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
Reply

Marsh Posté le 17-07-2008 à 19:16:32    

zecrazytux a écrit :

hmmm
encore un 403 ?


Oui toujours  :(  

zecrazytux a écrit :


t'es sur des droits de /home/svn/doojet ?


j'ai fait :
chown -R www-data:www-data /home/svn/Doojet/
 

zecrazytux a écrit :

t'as créé le projet ?


Oui le projet et créer et gérer par USVN.
 

zecrazytux a écrit :

t'as quoi dans /home/svn/access ?


Le fichier d'acces au divers svn geré lui aussi par USVN.
 

Code :
  1. # This is an auto generated file! Edit at your own risk!
  2. # You can edit this "/" section. Settings will be kept.
  3. #
  4. [/]
  5. * =
  6. #
  7. # Don't edit anything below! All manual changes will be overwritten.
  8. #
  9. [groups]
  10. Doojet = Guillaume, admin
  11. svn = admin, anonymous
  12. testsvn = admin, shaman
  13. # Project Doojet
  14. [Doojet:/]
  15. @Doojet = r
  16. [Doojet:/branches]
  17. @Doojet = rw
  18. [Doojet:/trunk]
  19. @Doojet = rw
  20. # Project svn
  21. [svn:/]
  22. @svn = r
  23. [svn:/branches]
  24. @svn = rw
  25. [svn:/trunk]
  26. @svn = rw
  27. # Project testsvn
  28. [testsvn:/]
  29. @testsvn = r
  30. [testsvn:/branches]
  31. @testsvn = rw
  32. [testsvn:/trunk]
  33. @testsvn = rw

Message cité 1 fois
Message édité par maxlpelm le 17-07-2008 à 19:22:11
Reply

Marsh Posté le 17-07-2008 à 19:37:22    

avec des acl il attend certainement un username... comme http://toto@monserveur/projet
 
(j'ai jamais utilisé)
 
sinon essai momentanément d'enlever la directive AuthzSVNAccessFile


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
Reply

Marsh Posté le 17-07-2008 à 23:26:04    

En commentant le AuthzSVNAccessFile
il me sort ca :

Code :
  1. <D:error>
  2. <C:error/>
  3. <m:human-readable errcode="2">
  4. Could not open the requested SVN filesystem
  5. </m:human-readable>
  6. </D:error>


 
 :bounce:  :bounce:

Reply

Marsh Posté le 17-07-2008 à 23:59:21    

c'est malin d'utiliser un frontend...
 
tu peux faire un checkout en local de file://home/svn/repo ?


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
Reply

Marsh Posté le 18-07-2008 à 09:49:51    

zecrazytux a écrit :

c'est malin d'utiliser un frontend...


C'est une mauvaise idée ??
Je pensais que cela serait plus simple, centralisé.
 

zecrazytux a écrit :

tu peux faire un checkout en local de file://home/svn/repo ?


Je fait un check out avec :  

Code :
  1. svn co file:///home/svn/Doojet


 
Et cela donne :  

Code :
  1. A    Doojet/trunk
  2. A    Doojet/branches
  3. A    Doojet/tags
  4. Révision 1 extraite.


 
Du coup oui on peut bien utiliser le svn en local ..
 
 :hello:  :bounce:  :bounce:


Message édité par maxlpelm le 18-07-2008 à 10:17:16
Reply

Marsh Posté le 18-07-2008 à 11:58:04    

Personne n'aurait une idée/piste ?? :??:  :??:  
 :bounce:  :bounce:

Reply

Marsh Posté le 18-07-2008 à 19:47:02    

maxlpelm a écrit :


j'ai fait :
chown -R www-data:www-data /home/svn/Doojet/


 
 
excellente idée .... pour tout casser
 
un dépôt SVN doit appartenir à l'utilisateur svn et au groupe svn
Les groupes ne servent pas à rien, b***, donc tu fais :
useradd www-data svn
 
Comme ça ton apache peut aller lire et écrire dans ton dépôt subversion, qui reste lui, la propriété de subversion pour ses besoins persos ..
 
Si ton dépôt est vide, tu as le droit de le supprimer et de le recréer de 0 (svnadmin toussa)

Reply

Marsh Posté le 19-07-2008 à 14:48:22    

fighting_falcon a écrit :


un dépôt SVN doit appartenir à l'utilisateur svn et au groupe svn
Les groupes ne servent pas à rien, b***, donc tu fais :
useradd www-data svn


Merci de ta reponse fighting_falcon, ca m'aide.
Alors suivant ce conseil j'ai fait un :
 
useradd -g www-data svn  
 
toujours la meme erreur :  

Code :
  1. [Sat Jul 19 15:34:41 2008] [error] [client 192.168.0.254] Could not open the requested SVN filesystem  [500, #2]


 
Pour faire un point sur les droits :
Mon depot se situe dans /home/svn/doojet :

Code :
  1. ls -l /home/svn/


 

Code :
  1. total 20
  2. -rwxr-xr-x 1 svn www-data  588 2008-07-18 14:58 access
  3. drwxr-xr-x 7 svn www-data 4096 2008-07-17 17:41 Doojet
  4. -rwxr-xr-x 1 svn www-data  173 2008-07-17 18:14 htpasswd
  5. drwxr-xr-x 7 svn www-data 4096 2008-07-17 17:53 svn
  6. drwxr-xr-x 7 svn www-data 4096 2008-07-17 17:39 testsvn


 
Voila je me suis aussi connecté sous x, pour verfier les utilisateurs et groupes
ainsi on a bien 2 groupes :
www-data (apache)
svn
 
J'ai ajouté www-data au groupe svn, et meme le groupe svn a www-data pour etre sur.
Mais cela ne change pas j'ai toujours la meme erreur  :  

Code :
  1. <D:error>
  2. <C:error/>
  3. <m:human-readable errcode="2">
  4. Could not open the requested SVN filesystem
  5. </m:human-readable>
  6. </D:error>


 
Je continue de chercher, si vous avez des idées, pistes, remarques je suis preneur  :D  :jap:  
 :hello:  :hello:  :bounce:  
 

Reply

Marsh Posté le 19-07-2008 à 15:11:57    

d'ailleur le check out en local est toujours ok :  

Code :
  1. debian:~# svn co file:///home/svn/
  2. access    Doojet/   htpasswd  svn/      testsvn/
  3. debian:~# svn co file:///home/svn/Doojet/
  4. Révision 1 extraite.


 
Et mon VirtualHost :  

Code :
  1. <Location /doojet>
  2.         AuthBasicAuthoritative Off
  3.         DAV svn
  4.         SVNPath /home/svn/doojet
  5.         AuthType Basic
  6.         AuthName " Doojet repo"
  7.         AuthUserFile /home/svn/htpasswd
  8.         #AuthzSVNAccessFile /home/svn/access
  9.     </Location>


 :bounce:  :bounce:  

Reply

Marsh Posté le 20-07-2008 à 11:52:08    

relance ta commande ls mais avec les options -al :
ls -al /home/svn
 
ensuite, tu as le droit de repasser tout ton dépôt au groupe svn :
chmod -R :svn /home/svn
 
Du coup, il faudra donner les droits en écriture au groupe pour qu'apache puisse écrire dedans :
chmod -R g+w /home/svn/Doojet
 
 
Enfin, une erreur 500 ça me fait penser à un dépôt "branlant"
fait voir un ls -al /home/svn/Doojet/*

Reply

Marsh Posté le 20-07-2008 à 12:38:50    

Salut fighting_falcon et merci de ton aide,
je lance :
 

Code :
  1. ls -al /home/svn


 
J'obtient ca :
 

Code :
  1. total 28
  2. drwxr-xr-x 5 svn  www-data 4096 2008-07-18 23:47 .
  3. drwxr-xr-x 4 root root     4096 2008-07-15 23:45 ..
  4. -rwxr-xr-x 1 svn  www-data  588 2008-07-18 14:58 access
  5. drwxr-xr-x 7 svn  www-data 4096 2008-07-17 17:41 Doojet
  6. -rwxr-xr-x 1 svn  www-data  173 2008-07-17 18:14 htpasswd
  7. drwxr-xr-x 7 svn  www-data 4096 2008-07-17 17:53 svn
  8. drwxr-xr-x 7 svn  www-data 4096 2008-07-17 17:39 testsvn


 
et mon "ls -al /home/svn/Doojet/" donne :

Code :
  1. total 36
  2. drwxrwxr-x 7 svn www-data 4096 2008-07-17 17:41 .
  3. drwxr-xr-x 5 svn www-data 4096 2008-07-18 23:47 ..
  4. drwxrwxr-x 2 svn www-data 4096 2008-07-17 17:41 conf
  5. drwxrwxr-x 2 svn www-data 4096 2008-07-17 17:41 dav
  6. drwxrwxr-x 5 svn www-data 4096 2008-07-17 17:41 db
  7. -rwxrwxr-x 1 svn www-data    2 2008-07-17 17:41 format
  8. drwxrwxr-x 2 svn www-data 4096 2008-07-17 17:41 hooks
  9. drwxrwxr-x 2 svn www-data 4096 2008-07-17 17:41 locks
  10. -rwxrwxr-x 1 svn www-data  229 2008-07-17 17:41 README.txt


 
Quand j'essaye de changer les droit du rep :
chmod -R :svn /home/svn  

Code :
  1. chmod: mode invalide: `:svn'


 
Par contre "chmod -R g+w /home/svn/Doojet " s'execute bien (pas de retour).
 :sweat:  :sweat:  :bounce:


Message édité par maxlpelm le 20-07-2008 à 15:23:46
Reply

Marsh Posté le 20-07-2008 à 15:22:48    

Pour changer le propriétaire ce n'est pas chmod qu'il faut utiliser mais chown (comme "change owner" ).
cf. le man de cette commande.

Message cité 1 fois
Message édité par o'gure le 20-07-2008 à 15:24:03

---------------
Relax. Take a deep breath !
Reply

Marsh Posté le 20-07-2008 à 15:27:18    

o'gure a écrit :

Pour changer le propriétaire ce n'est pas chmod qu'il faut utiliser mais chown (comme "change owner" ).
cf. le man de cette commande.


 
je chown /home/svn/ sur l'entite www:data du groupe www-data comme cela ?? :
 

Code :
  1. chown www-data:www-data /home/svn/Doojet


 
 :bounce:  :bounce:

Message cité 1 fois
Message édité par maxlpelm le 20-07-2008 à 15:28:21
Reply

Marsh Posté le 20-07-2008 à 17:26:15    

ouais pardon, chown et non chmod !!!!
je vais prendre rendez-vous dans une clinique pour me faire greffer des mains qui marchent ...
 

maxlpelm a écrit :


 
je chown /home/svn/ sur l'entite www:data du groupe www-data comme cela ?? :

Code :
  1. chown www-data:www-data /home/svn/Doojet




 
NAAAANNN !!! L'inverse :

Code :
  1. chown -R svn:svn /home/svn/


 
 
Vérifie que ton user www-data est bien dans le groupe svn :
groups www-data
Ca doit afficher :
www-data : www-data svn
 
Ensuite, quelques droits à remettre d'aplomb sur ton dépôt subversion :
chmod -R o-rwx /home/svn/Doojet/
chmod g+s /home/svn/Doojet/db
chmod 440 /home/svn/Doojet/format

Message cité 1 fois
Message édité par fighting_falcon le 20-07-2008 à 17:36:48
Reply

Marsh Posté le 20-07-2008 à 17:53:37    

fighting_falcon a écrit :


Code :
  1. chown -R svn:svn /home/svn/




 
Fait

fighting_falcon a écrit :


Vérifie que ton user www-data est bien dans le groupe svn :
groups www-data


 
ok ca donne :  
 

Code :
  1. www-data : www-data svn


 

fighting_falcon a écrit :


Ensuite, quelques droits à remettre d'aplomb sur ton dépôt subversion :
chmod -R o-rwx /home/svn/Doojet/


ok

fighting_falcon a écrit :


chmod g+s /home/svn/Doojet/db


ok

fighting_falcon a écrit :


chmod 440 /home/svn/Doojet/format


ok
 
Check out local - ok
Check out par http - erreur  

Code :
  1. svn: Échec de la requête PROPFIND sur '/Doojet'
  2. svn: PROPFIND de '/Doojet': 405 Method Not Allowed (http://localhost)


 
Journal d'apache2 :
--Error.log

Code :
  1. [Sun Jul 20 18:57:17 2008] [error] [client 192.168.0.2] (20014)Internal error: Can't open file '/home/svn/doojet/format': No such file or directory
  2. [Sun Jul 20 18:57:17 2008] [error] [client 192.168.0.2] Could not fetch resource information.  [500, #0]
  3. [Sun Jul 20 18:57:17 2008] [error] [client 192.168.0.2] Could not open the requested SVN filesystem  [500, #2]
  4. [Sun Jul 20 18:57:17 2008] [error] [client 192.168.0.2] Could not open the requested SVN filesystem  [500, #2]


 
--Access.log :

Code :
  1. 192.168.0.2 - - [20/Jul/2008:18:57:17 +0200] "GET /doojet HTTP/1.1" 500 234 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1"


 
mon virtual host :

Code :
  1. <Location /doojet>
  2.         #Options Indexes FollowSymLinks MultiViews
  3.         #AuthUserFile /dev/null
  4.         AuthBasicAuthoritative Off
  5.         #Order allow,deny
  6.         #allow from all
  7.         DAV svn
  8.         #<LimitExcept GET PROFIND OPTION REPORT>
  9.         #       Require valid-user
  10.         #</LimitExcept>
  11.         #SVNParentPath /home/svn
  12.         SVNPath /home/svn/doojet
  13.         AuthType Basic
  14.         AuthName " Doojet repo"
  15.         AuthUserFile /home/svn/htpasswd
  16.         SVNPathAuthz off
  17.         #AuthzSVNAccessFile /home/svn/access
  18.     </Location>


 
Je ne sais pas trop ce qui cloche les droits semblent ok, le svn est fonctionnel, je ne comprend pas pourquoi cela ne fonctionne pas ??
Merci a ceux qui file un coup de main  :jap:  :jap:  
Toujours a la recherche d'une piste ... :bounce:  :bounce:  
 :hello:

Message cité 1 fois
Message édité par maxlpelm le 20-07-2008 à 18:09:02
Reply

Marsh Posté le 21-07-2008 à 11:58:31    

Alors j'essaye de modifier un peu mon virtualhost :

Code :
  1. <Location /doojet>
  2.         Options Indexes FollowSymLinks MultiViews
  3.         #AuthUserFile /dev/null
  4.         AuthBasicAuthoritative Off
  5.         #Order allow,deny
  6.         #allow from all
  7.         DAV svn
  8.         <LimitExcept GET PROFIND OPTION REPORT>
  9.                 Require valid-user
  10.         </LimitExcept>
  11.         #SVNParentPath /home/svn
  12.         SVNPath /home/svn/doojet
  13.         AuthType Basic
  14.         AuthName " Doojet repo"
  15.         AuthUserFile /home/svn/htpasswd
  16.         SVNPathAuthz off
  17.         AuthzSVNAccessFile /home/svn/access
  18.     </Location>


 
je fais un check out il me demande un compte  :wahoo: , je lui en donne un puis :
J'effectue le test avec la derniere version de tortoise.
 

Code :
  1. Server sent unexpected return value (500 Internal Server Error)


 
Et quand je vais dans mon log apache, error.log :
 

Code :
  1. [Mon Jul 21 12:43:35 2008] [crit] [client 127.0.0.1] configuration error:  couldn't check user.  No user file?: /doojet
  2. [Mon Jul 21 12:46:29 2008] [crit] [client 192.168.0.254] configuration error:  couldn't check user.  No user file?: /doojet


 
Apparement il y aurait un pb sur le fichier user du projet, je vais chercher en ce sens ..
 :bounce:  :bounce:

Reply

Marsh Posté le 21-07-2008 à 12:23:55    

maxlpelm a écrit :


Check out par http - erreur  

Code :
  1. svn: Échec de la requête PROPFIND sur '/Doojet'
  2. svn: PROPFIND de '/Doojet': 405 Method Not Allowed (http://localhost)


 
[...]
 
mon virtual host :

Code :
  1. <Location /doojet>
  2.         #Options Indexes FollowSymLinks MultiViews
  3.         #AuthUserFile /dev/null
  4.         AuthBasicAuthoritative Off
  5.         #Order allow,deny
  6.         #allow from all
  7.         DAV svn
  8.         #<LimitExcept GET PROFIND OPTION REPORT>
  9.         #       Require valid-user
  10.         #</LimitExcept>
  11.         #SVNParentPath /home/svn
  12.         SVNPath /home/svn/doojet
  13.         AuthType Basic
  14.         AuthName " Doojet repo"
  15.         AuthUserFile /home/svn/htpasswd
  16.         SVNPathAuthz off
  17.         #AuthzSVNAccessFile /home/svn/access
  18.     </Location>



T'aurais pas une faute de frappe dans ta conf apache ? Un PROPFIND qui s'est transformé en PROFIND :??:


---------------
TriScale innov
Reply

Marsh Posté le 21-07-2008 à 12:31:13    

franceso a écrit :

T'aurais pas une faute de frappe dans ta conf apache ? Un PROPFIND qui s'est transformé en PROFIND :??:


Tu as raison et meme le s a options :
je corrige en  

Code :
  1. <LimitExcept GET PROPFIND OPTIONS REPORT>
  2. Require valid-user
  3. </LimitExcept>


 
Je teste et vous dis si ca change quelque chose merci de ton aide francesco
 :hello:  :hello:  
 

Reply

Marsh Posté le 21-07-2008 à 14:28:53    

Apres la modif quand j'essaye de joindre la l'addresse du repo.
 
dans le navigateur :

Code :
  1. <D:error>
  2. <C:error/>
  3. <m:human-readable errcode="2">
  4. Could not open the requested SVN filesystem
  5. </m:human-readable>
  6. </D:error>


 
dans le fichier de log error.log :

Code :
  1. [Mon Jul 21 15:27:15 2008] [error] [client 90.37.227.146] (20014)Internal error: Can't open file '/home/svn/doojet/format': No such file or directory
  2. [Mon Jul 21 15:27:15 2008] [error] [client 90.37.227.146] Could not fetch resource information.  [500, #0]
  3. [Mon Jul 21 15:27:15 2008] [error] [client 90.37.227.146] Could not open the requested SVN filesystem  [500, #2]
  4. [Mon Jul 21 15:27:15 2008] [error] [client 90.37.227.146] Could not open the requested SVN filesystem  [500, #2]
  5. [Mon Jul 21 15:27:15 2008] [error] [client 90.37.227.146] File does not exist: /var/www/favicon.ico
  6. [Mon Jul 21 15:27:18 2008] [error] [client 90.37.227.146] File does not exist: /var/www/favicon.ico


 
 :bounce:  :bounce:

Reply

Marsh Posté le 21-07-2008 à 15:02:30    

maxlpelm a écrit :

dans le fichier de log error.log :

Code :
  1. [Mon Jul 21 15:27:15 2008] [error] [client 90.37.227.146] (20014)Internal error: Can't open file '/home/svn/doojet/format': No such file or directory
  2. [Mon Jul 21 15:27:15 2008] [error] [client 90.37.227.146] Could not fetch resource information.  [500, #0]
  3. [Mon Jul 21 15:27:15 2008] [error] [client 90.37.227.146] Could not open the requested SVN filesystem  [500, #2]
  4. [Mon Jul 21 15:27:15 2008] [error] [client 90.37.227.146] Could not open the requested SVN filesystem  [500, #2]
  5. [Mon Jul 21 15:27:15 2008] [error] [client 90.37.227.146] File does not exist: /var/www/favicon.ico
  6. [Mon Jul 21 15:27:18 2008] [error] [client 90.37.227.146] File does not exist: /var/www/favicon.ico


Pourquoi y a pas de "D" majuscule à Doojet cette fois-ci ?


---------------
TriScale innov
Reply

Marsh Posté le 21-07-2008 à 17:32:38    

franceso a écrit :

Pourquoi y a pas de "D" majuscule à Doojet cette fois-ci ?


Oula la belle faute de frappe ...
donc je corrige:
checkout local - ok
checkout http - ok  :lol:  :lol:  

Code :
  1. debian:~# svn co http://localhost/doojet/
  2. A    doojet/trunk
  3. A    doojet/branches
  4. A    doojet/tags
  5. Révision 1 extraite.


 
Mais si je veut commiter mes mise a jour :

Code :
  1. Commit
  2. Server sent unexpected return value (403 Forbidden) in response to MKACTIVITY
  3. request for '/doojet/!svn/act/8bab65ac-d563-8c45-8074-17d087f4b4a2'


 
du coup le repo est accessible en anonyme en lecture comme je voulais, mais pas moyen d'envoyer les commit.
Une idée ??
Merci a tous de vos aides  :hello:  :hello:  
 :bounce:


Message édité par maxlpelm le 21-07-2008 à 20:45:53
Reply

Marsh Posté le 22-07-2008 à 14:11:37    

Petit up car je sèche toujours sur ce problème,
quelqu'un aurait un lien ou une idée ??  :hello:  
 :bounce:  :bounce:

Reply

Marsh Posté le 23-07-2008 à 11:04:37    

Personne n'aurait une piste je suis vraiment bloqué ...  :sweat:  
 :bounce:  :bounce:

Reply

Marsh Posté le    

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed