Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1539 connectés 

 


 Mot :   Pseudo :  
 
 Page :   1  2
Page Suivante
Auteur Sujet :

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

n°1061974
maxlpelm
Posté le 23-07-2008 à 11:04:37  profilanswer
 

Reprise du message précédent :
Personne n'aurait une piste je suis vraiment bloqué ...  :sweat:  
 :bounce:  :bounce:

mood
Publicité
Posté le 23-07-2008 à 11:04:37  profilanswer
 

n°1061978
franceso
Posté le 23-07-2008 à 11:29:46  profilanswer
 

tu peux poster ta conf et tes logs apache ? (ils sont peut-être identiques à ceux qui apparaissent au dessus, mais c'est juste pour avoir un aperçu clair de la situation actuelle)


---------------
TriScale innov
n°1062032
maxlpelm
Posté le 23-07-2008 à 14:58:43  profilanswer
 

franceso a écrit :

tu peux poster ta conf et tes logs apache ? (ils sont peut-être identiques à ceux qui apparaissent au dessus, mais c'est juste pour avoir un aperçu clair de la situation actuelle)


 
 :hello: Voila ma conf apache :

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 PROPFIND OPTIONS 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>


 
Le access.log de apache dans un update fonctionnel a distance par http:

Code :
  1. 90.37.227.146 - maurice [23/Jul/2008:15:52:15 +0200] "PROPFIND /doojet/!svn/bln/1 HTTP/1.1" 207 445 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  2. 90.37.227.146 - maurice [23/Jul/2008:15:52:15 +0200] "PROPFIND /doojet HTTP/1.1" 207 643 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  3. 90.37.227.146 - maurice [23/Jul/2008:15:52:15 +0200] "PROPFIND /doojet/!svn/vcc/default HTTP/1.1" 207 445 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  4. 90.37.227.146 - maurice [23/Jul/2008:15:52:15 +0200] "REPORT /doojet/!svn/bc/1 HTTP/1.1" 200 424 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"


 
Et pour le commit (non fonctionnel) :
Erreur du client (tortoise) :

Code :
  1. Commit failed (details follow):
  2. Server sent unexpected return value (403 Forbidden) in response to MKACTIVITY
  3. request for '/doojet/!svn/act/16b2305f-0918-db45-8fc3-03992f59c511'


 
Mon access.log :

Code :
  1. 90.37.227.146 - maurice [23/Jul/2008:15:56:18 +0200] "OPTIONS /doojet/trunk HTTP/1.1" 200 - "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  2. 90.37.227.146 - maurice [23/Jul/2008:15:56:18 +0200] "PROPFIND /doojet/trunk HTTP/1.1" 207 682 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  3. 90.37.227.146 - maurice [23/Jul/2008:15:56:18 +0200] "OPTIONS /doojet/trunk HTTP/1.1" 200 186 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  4. 90.37.227.146 - maurice [23/Jul/2008:15:56:18 +0200] "MKACTIVITY /doojet/!svn/act/16b2305f-0918-db45-8fc3-03992f59c511 HTTP/1.1" 403 397 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"


 
et enfin mon error.log :

Code :
  1. [Wed Jul 23 15:56:18 2008] [error] [client 90.37.227.146] Access denied: 'maurice' MKACTIVITY doojet:


 
Voila ca n'avait pas beaucoup changé mais au moins c'est clair.
Si tu vois d'ou ca viens francesco ou bien quelqu'un aurait une idée ...
 :bounce:  :bounce:  :bounce:

n°1062118
fighting_f​alcon
Posté le 23-07-2008 à 21:07:51  profilanswer
 

Le contenu de ton fichier /home/svn/htpasswd :
cat /home/svn/htpasswd
 
Comment tu l'as généré ?
 
Tu es sur du mot de passe de l'utilisateur Maurice ??

n°1062124
franceso
Posté le 23-07-2008 à 21:44:29  profilanswer
 

Pour l'opération en lecture seule, tu avais eu besoin de t'authentifier ou pas ?


---------------
TriScale innov
n°1062128
maxlpelm
Posté le 23-07-2008 à 22:22:13  profilanswer
 

fighting_falcon a écrit :


Le contenu de ton fichier /home/svn/htpasswd :
cat /home/svn/htpasswd
 
Comment tu l'as généré ?


 
En utilisant USVN qui me permet de gérer les repo.
 

Code :
  1. le cat /home/svn/htpasswd donne :
  2. maurice:$1$3jcyAVyd$n7S0Ch1ihjyka01mwhlgk0
  3. ce qui doit correspondre au hash de maurice1 qui est le mdp.


 

fighting_falcon a écrit :


Tu es sur du mot de passe de l'utilisateur Maurice ??


 
Oui j'en suis sur, mais même avec les autres comptes cela fait pareil.
 

franceso a écrit :


Pour l'opération en lecture seule, tu avais eu besoin de t'authentifier ou pas ?


Pour updater pas besoin de mot de passe, j'ai laissé l'accés anonyme en lecture.
 
Fiou c'est galere quand meme  :ouch:  
 :bounce:  :bounce:  
 

n°1062156
franceso
Posté le 24-07-2008 à 09:40:41  profilanswer
 

maxlpelm a écrit :


Pour updater pas besoin de mot de passe, j'ai laissé l'accés anonyme en lecture.


 
Si j'en crois ton fichier de conf, non. Etant donné que les lignes LimitExcept sont commentées, ton "require valid-user" devrait être valable tout le temps...
 

maxlpelm a écrit :

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 PROPFIND OPTIONS 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>



 
 
Es-tu sûr que tu as bien redémarré apache après avoir modifié le fichier de conf ?


---------------
TriScale innov
n°1062188
maxlpelm
Posté le 24-07-2008 à 10:51:25  profilanswer
 

franceso a écrit :


 
Si j'en crois ton fichier de conf, non. Etant donné que les lignes LimitExcept sont commentées, ton "require valid-user" devrait être valable tout le temps...
 
 
 
 
Es-tu sûr que tu as bien redémarré apache après avoir modifié le fichier de conf ?


 
Oui sur, je fais :

Code :
  1. invoke-rc.d apache2 restart
  2. Forcing reload of web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
  3. waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName


 
Ensuite si je fais :
svn co http://127.0.0.1/doojet
 
il me demande mon nom et mot de passe user ainsi l'user maurice fonctionne bien et permet l'update, qui n'est plus faisable en anonyme.
En passant par tortoise ou un browser cela fonctionne aussi en s'authentifiant.
Mais le commit ne se fait toujours pas toujours cette erreur MKACTIVITY
Voici mes logs :
access.log  

Code :
  1. 90.37.227.146 - - [24/Jul/2008:11:50:30 +0200] "OPTIONS /doojet/trunk HTTP/1.1" 401 544 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  2. 90.37.227.146 - maurice [24/Jul/2008:11:50:30 +0200] "OPTIONS /doojet/trunk HTTP/1.1" 200 - "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  3. 90.37.227.146 - maurice [24/Jul/2008:11:50:30 +0200] "PROPFIND /doojet/trunk HTTP/1.1" 207 682 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  4. 90.37.227.146 - maurice [24/Jul/2008:11:50:30 +0200] "OPTIONS /doojet/trunk HTTP/1.1" 200 186 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  5. 90.37.227.146 - maurice [24/Jul/2008:11:50:30 +0200] "MKACTIVITY /doojet/!svn/act/ce43a3aa-2dc3-d748-a3b5-fcbe7b86471d HTTP/1.1" 403 397 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"


 
et error.log :

Code :
  1. [Thu Jul 24 00:06:03 2008] [notice] caught SIGTERM, shutting down
  2. [Thu Jul 24 00:07:24 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
  3. [Thu Jul 24 11:27:26 2008] [notice] caught SIGTERM, shutting down
  4. [Thu Jul 24 11:27: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
  5. [Thu Jul 24 11:29:28 2008] [error] [client 127.0.0.1] user root not found: /doojet
  6. [Thu Jul 24 11:29:31 2008] [error] [client 127.0.0.1] user  not found: /doojet
  7. [Thu Jul 24 11:48:34 2008] [error] [client 90.37.227.146] Could not fetch resource information.  [301, #0]
  8. [Thu Jul 24 11:48:34 2008] [error] [client 90.37.227.146] (84)Invalid or incomplete multibyte or wide character: Requests for a collection must have a trailing slash on the URI.  [301, #0]
  9. [Thu Jul 24 11:48:34 2008] [error] [client 90.37.227.146] File does not exist: /var/www/favicon.ico
  10. [Thu Jul 24 11:48:37 2008] [error] [client 90.37.227.146] File does not exist: /var/www/favicon.ico
  11. [Thu Jul 24 11:50:30 2008] [error] [client 90.37.227.146] Access denied: 'maurice' MKACTIVITY doojet:


 
Voila une piste ?? :hello:  :hello:  
 :bounce:  :bounce:

Message cité 1 fois
Message édité par maxlpelm le 24-07-2008 à 10:52:43
n°1062194
franceso
Posté le 24-07-2008 à 11:19:58  profilanswer
 

tu peux reposter un 'ls -al' des répertoires concernés : '/home/svn' et '/home/svn/Doojet' ?
 
J'ai pas bien compris : le dépot SVN c'est /home/svn avec une branche /home/svn/Doojet, ou bien /home/svn/Doojet est directement un dépot SVN ?


---------------
TriScale innov
n°1062249
maxlpelm
Posté le 24-07-2008 à 15:10:38  profilanswer
 

franceso a écrit :

tu peux reposter un 'ls -al' des répertoires concernés : '/home/svn' et '/home/svn/Doojet' ?


ls -al de /home/svn :

Code :
  1. total 28
  2. drwxr-xr-x 5 svn      svn      4096 2008-07-24 15:53 .
  3. drwxr-xr-x 4 root     root     4096 2008-07-15 23:45 ..
  4. -rwxr-xr-x 1 svn      svn       589 2008-07-24 15:53 access
  5. drwxrwx--- 7 svn      svn      4096 2008-07-17 17:41 Doojet
  6. -rwxr-xr-x 1 www-data www-data  216 2008-07-21 16:41 htpasswd
  7. drwxr-xr-x 7 svn      svn      4096 2008-07-17 17:53 svn
  8. drwxr-xr-x 7 svn      svn      4096 2008-07-17 17:39 testsvn


 
Et ls -al de /home/svn/Doojet :

Code :
  1. total 36
  2. drwxrwx--- 7 svn svn 4096 2008-07-17 17:41 .
  3. drwxr-xr-x 5 svn svn 4096 2008-07-24 15:53 ..
  4. drwxrwx--- 2 svn svn 4096 2008-07-17 17:41 conf
  5. drwxrwx--- 2 svn svn 4096 2008-07-17 17:41 dav
  6. drwxrws--- 5 svn svn 4096 2008-07-17 17:41 db
  7. -r--r----- 1 svn svn    2 2008-07-17 17:41 format
  8. drwxrwx--- 2 svn svn 4096 2008-07-17 17:41 hooks
  9. drwxrwx--- 2 svn svn 4096 2008-07-17 17:41 locks
  10. -rwxrwx--- 1 svn svn  229 2008-07-17 17:41 README.txt


 

franceso a écrit :


J'ai pas bien compris : le dépot SVN c'est /home/svn avec une branche /home/svn/Doojet, ou bien /home/svn/Doojet est directement un dépôt SVN ?


En fait /home/svn est le répertoire qui contient mes repo,
et /home/svn/Doojet est le path d'un repo en lui même.
 
 :bounce:  :bounce:  
 

mood
Publicité
Posté le 24-07-2008 à 15:10:38  profilanswer
 

n°1062250
franceso
Posté le 24-07-2008 à 15:21:47  profilanswer
 

Il y a un truc que je ne comprends pas :
 
ton apache tourne bien sous l'utilisateur www-data, non ? Alors comment se fait-il qu'il arrive ne serait-ce qu'à lire quoi que ce soit dans ton dépot qui appartient à svn:svn ?
 
A quels groupes appartient ton utilisateur www-data ?


---------------
TriScale innov
n°1062251
maxlpelm
Posté le 24-07-2008 à 15:28:59  profilanswer
 

franceso a écrit :

Il y a un truc que je ne comprends pas :
 
ton apache tourne bien sous l'utilisateur www-data, non ?


Oui tout a fait.
 

franceso a écrit :

Alors comment se fait-il qu'il arrive ne serait-ce qu'à lire quoi que ce soit dans ton dépot qui appartient à svn:svn ?
 
A quels groupes appartient ton utilisateur www-data ?


Je pense que c'est du au fait, que www-data appartient a www-data et svn, et inversement
cela donne :

Code :
  1. debian:~# groups svn
  2. svn : svn www-data


 
et
 

Code :
  1. debian:~# groups www-data
  2. www-data : www-data svn


 
 :bounce:  :bounce:

n°1062286
fighting_f​alcon
Posté le 24-07-2008 à 19:39:32  profilanswer
 

maxlpelm a écrit :


Code :
  1. debian:~# groups svn
  2. svn : svn www-data




 
ça c'est stupide et ne sert à rien ... => deluser svn www-data
 
Le but c'est que apache (utilisateur www-data) puisse lire/écrire dans ton dépôt subversion (groupe svn)
Donc l'utilisateur www-data doit appartenir au groupe svn
 
En revanche subversion (utilisateur svn) n'a pas DU TOUT à aller lire les sites diffusés par apache (groupe www-data)
Donc l'utilisateur svn NE doit PAS appartenir au groupe www-data
 
 
Bon ensuite :

maxlpelm a écrit :


access.log  

Code :
  1. 90.37.227.146 - - [24/Jul/2008:11:50:30 +0200] "OPTIONS /doojet/trunk HTTP/1.1" 401 544 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  2. 90.37.227.146 - maurice [24/Jul/2008:11:50:30 +0200] "OPTIONS /doojet/trunk HTTP/1.1" 200 - "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  3. 90.37.227.146 - maurice [24/Jul/2008:11:50:30 +0200] "PROPFIND /doojet/trunk HTTP/1.1" 207 682 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  4. 90.37.227.146 - maurice [24/Jul/2008:11:50:30 +0200] "OPTIONS /doojet/trunk HTTP/1.1" 200 186 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"
  5. 90.37.227.146 - maurice [24/Jul/2008:11:50:30 +0200] "MKACTIVITY /doojet/!svn/act/ce43a3aa-2dc3-d748-a3b5-fcbe7b86471d HTTP/1.1" 403 397 "-" "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2"




Le "-" avant la chaîne "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2" indique que tu n'as pas été correctement identifié ...
Tortoise t'a proposé une boîte de dialogue login/mot de passe ?

Message cité 2 fois
Message édité par fighting_falcon le 24-07-2008 à 19:40:29
n°1062338
franceso
Posté le 25-07-2008 à 08:50:20  profilanswer
 

fighting_falcon a écrit :


Le "-" avant la chaîne "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2" indique que tu n'as pas été correctement identifié ...
Tortoise t'a proposé une boîte de dialogue login/mot de passe ?

Tu es sûr de ça ?
 
J'aurais tendance à dire que dès la deuxième requête, il est authentifié comme utilisateur "maurice", ce qu'on peut voir juste après l'adresse IP...


---------------
TriScale innov
n°1062369
maxlpelm
Posté le 25-07-2008 à 11:42:55  profilanswer
 

fighting_falcon a écrit :


 
ça c'est stupide et ne sert à rien ... => deluser svn www-data
 
Donc l'utilisateur svn NE doit PAS appartenir au groupe www-data


ok je modifie,

Code :
  1. debian:~# deluser svn www-data
  2. Retrait de l'utilisateur « svn » du groupe « www-data »...
  3. Terminé.


 
Bon ensuite :

fighting_falcon a écrit :


Le "-" avant la chaîne "SVN/1.5.0 (r31699)/TortoiseSVN-1.5.0.13316 neon/0.28.2" indique que tu n'as pas été correctement identifié ...
Tortoise t'a proposé une boîte de dialogue login/mot de passe ?


Oui il me propose une boite de dialogue et une fois authentifier je peut mettre a jour.
 
Donc l'update est fonctionnel, mais le commit me sort toujours la même erreur.
J'ai lu sur le net que l'erreur MKACTIVITY ne pouvait ne se produire qu'après être bien authentifier.
 :hello:  :hello:  
 

n°1062470
fighting_f​alcon
Posté le 25-07-2008 à 21:16:33  profilanswer
 

franceso a écrit :

Tu es sûr de ça ?
 
J'aurais tendance à dire que dès la deuxième requête, il est authentifié comme utilisateur "maurice", ce qu'on peut voir juste après l'adresse IP...


 
 
oui pardon, j'avais pas vu le "maurice" dans les logs ...
J'ai vraiment pas les yeux en face des trous ...
 
 
Pour ton erreur MKACTIVITY : ls -al /home/svn/Doojet/dav /home/svn/Doojet/db /home/svn/Doojet/locks

n°1062584
maxlpelm
Posté le 26-07-2008 à 18:12:33  profilanswer
 

fighting_falcon a écrit :


Pour ton erreur MKACTIVITY : ls -al /home/svn/Doojet/dav /home/svn/Doojet/db /home/svn/Doojet/locks


Alors quand je le fais ca me donne :  
 

Code :
  1. total 8
  2. drwxrwx--- 2 svn svn 4096 2008-07-17 17:41 .
  3. drwxrwx--- 7 svn svn 4096 2008-07-17 17:41 ..
  4. /home/svn/Doojet/db:
  5. total 36
  6. drwxrws--- 5 svn svn 4096 2008-07-17 17:41 .
  7. drwxrwx--- 7 svn svn 4096 2008-07-17 17:41 ..
  8. -rwxrwx--- 1 svn svn    6 2008-07-17 17:41 current
  9. -rwxrwx--- 1 svn svn    2 2008-07-17 17:41 format
  10. -rwxrwx--- 1 svn svn    5 2008-07-17 17:41 fs-type
  11. drwxrwx--- 2 svn svn 4096 2008-07-17 17:41 revprops
  12. drwxrwx--- 2 svn svn 4096 2008-07-17 17:41 revs
  13. drwxrwx--- 2 svn svn 4096 2008-07-17 17:41 transactions
  14. -rwxrwx--- 1 svn svn   37 2008-07-17 17:41 uuid
  15. -rwxrwx--- 1 svn svn    0 2008-07-17 17:41 write-lock
  16. /home/svn/Doojet/locks:
  17. total 16
  18. drwxrwx--- 2 svn svn 4096 2008-07-17 17:41 .
  19. drwxrwx--- 7 svn svn 4096 2008-07-17 17:41 ..
  20. -rwxrwx--- 1 svn svn  139 2008-07-17 17:41 db.lock
  21. -rwxrwx--- 1 svn svn  139 2008-07-17 17:41 db-logs.lock


 
 :bounce:  :bounce:

n°1062678
fighting_f​alcon
Posté le 27-07-2008 à 11:42:45  profilanswer
 

chmod g+s /home/svn/Doojet/db/{revprops,revs,transactions}
 
Vérifie que ça a marché :
ls -al /home/svn/Doojet/db devrait te donner :

Code :
  1. total 36
  2. drwxrws--- 5 svn svn 4096 2008-07-17 17:41 .
  3. drwxrwx--- 7 svn svn 4096 2008-07-17 17:41 ..
  4. -rwxrwx--- 1 svn svn    6 2008-07-17 17:41 current
  5. -rwxrwx--- 1 svn svn    2 2008-07-17 17:41 format
  6. -rwxrwx--- 1 svn svn    5 2008-07-17 17:41 fs-type
  7. drwxrws--- 2 svn svn 4096 2008-07-17 17:41 revprops
  8. drwxrws--- 2 svn svn 4096 2008-07-17 17:41 revs
  9. drwxrws--- 2 svn svn 4096 2008-07-17 17:41 transactions
  10. -rwxrwx--- 1 svn svn   37 2008-07-17 17:41 uuid
  11. -rwxrwx--- 1 svn svn    0 2008-07-17 17:41 write-lock


 
Le "setgid" (c'est lepetit nom de ce "s" au niveau des droits du groupe) sur ces dossiers permet que les fichiers créés dans ces groupes aient comme groupe propriétaire le groupe propriétaire du dossier parent
Sans ça, lorsqu'apache crée une transaction, le fichier appartient à www-data:www-data
Du coup, subversion est incapable de le lire ...

Message cité 1 fois
Message édité par fighting_falcon le 27-07-2008 à 11:44:03
n°1062863
maxlpelm
Posté le 28-07-2008 à 13:41:23  profilanswer
 

Alors j'ai formaté depuis le dernié message alors je met un peu de temps a me remetre sur mes pattes ..
Donc j'ai changé les droits par :
 

fighting_falcon a écrit :

chmod g+s /home/svn/Doojet/db/{revprops,revs,transactions}


 
Quand je lance ls -al /home/svn/Doojet/db, j'ai effectivement :  

Code :
  1. total 36
  2. drwxrws--- 5 svn svn 4096 2008-07-17 17:41 .
  3. drwxrwx--- 7 svn svn 4096 2008-07-17 17:41 ..
  4. -rwxrwx--- 1 svn svn    6 2008-07-17 17:41 current
  5. -rwxrwx--- 1 svn svn    2 2008-07-17 17:41 format
  6. -rwxrwx--- 1 svn svn    5 2008-07-17 17:41 fs-type
  7. drwxrws--- 2 svn svn 4096 2008-07-17 17:41 revprops
  8. drwxrws--- 2 svn svn 4096 2008-07-17 17:41 revs
  9. drwxrws--- 2 svn svn 4096 2008-07-17 17:41 transactions
  10. -rwxrwx--- 1 svn svn   37 2008-07-17 17:41 uuid
  11. -rwxrwx--- 1 svn svn    0 2008-07-17 17:41 write-lock


 
je redemarre apache par : invoke-rc.d apache2 restart
je me loggue avec mon compte maurice, et l'update se fait sans probleme, mais au commit j'ai toujours la meme erreur :
 

Code :
  1. Commit failed (details follow):
  2. Server sent unexpected return value (403 Forbidden) in response to MKACTIVITY
  3. request for '/doojet/!svn/act/35edcde0-b21d-2842-b82c-fc0f4b4aa47e'


 
et dans mon error.log d'apache :

Code :
  1. [Mon Jul 28 14:39:10 2008] [error] [client 192.168.0.4] Access denied: 'maurice' MKACTIVITY doojet:
  2. [Mon Jul 28 14:39:26 2008] [notice] caught SIGTERM, shutting down
  3. [Mon Jul 28 14:39: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
  4. [Mon Jul 28 14:39:40 2008] [error] [client 192.168.0.4] Access denied: 'maurice' MKACTIVITY doojet:
  5. [Mon Jul 28 14:41:03 2008] [error] [client 192.168.0.4] Access denied: 'maurice' MKACTIVITY doojet:


 
euh j'ai raté une étape ??
 :bounce:  :bounce:  

n°1062899
fighting_f​alcon
Posté le 28-07-2008 à 17:09:20  profilanswer
 

tu as changé ta conf dans apache depuis ton post du 24/07 à 9h40 ?
Si oui, repostes la s'il te plait
 
Et que la réponse à la question ci dessus soit oui ou non, postes le contenu de ton fichier "/home/svn/access"

n°1062927
maxlpelm
Posté le 28-07-2008 à 21:16:31  profilanswer
 

Je ne crois pas l'avoir modif,  :sweat:  
 
Ma conf apache :

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 PROPFIND OPTIONS 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>


 
Le contenu de mon fichier acces :

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. * = r
  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 = rw
  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


 
 :bounce:  :bounce:

n°1062929
fighting_f​alcon
Posté le 28-07-2008 à 22:13:58  profilanswer
 

et y'a rien qui te choque là ????
 
Par défaut tu n'autorises que la lecture :

Citation :


[/]
* = r


 
par contre tu autorises quand même l'écriture sur ton projet Doojet, mais que aux membres du groupe Doojet :

Citation :


[Doojet:/]
@Doojet = rw


 
je ne remets pas ça en cause, ça me parait correct ...
 
Mais par contre, maurice ne faisant pas parti du groupe Doojet, il ne risque pas de pouvoir écrire dans ton projet ...

n°1063001
maxlpelm
Posté le 29-07-2008 à 11:58:15  profilanswer
 

Oui je pense que USVN  ne me facilite pas la tache en fait  :pt1cable:  
donc je vais m'en passer,
 
J'ajoute donc l'utilisateur maurice au groupe doojet par :

Code :
  1. Doojet = Guillaume, admin, maurice


 
la conf du repo :  

Code :
  1. # Project Doojet
  2. [Doojet:/]
  3. @Doojet = rw
  4. [Doojet:/branches]
  5. @Doojet = rw
  6. [Doojet:/trunk]
  7. @Doojet = rw


 
Je relance apache par : invoke-rc.d apache2 restart
 
Je fais un update depuis une autre machine (mon laptop) avec tortoise, il me demande de me logger, je lui donne le compte maurice.
 
L'update de fait bien, quand je veux faire un commit toujours la meme erreur :

Code :
  1. Server sent unexpected return value (403 Forbidden) in response to MKACTIVITY
  2. request for '/doojet/!svn/act/6a62a26f-d49e-b94d-84b0-d008be2b2bb0'


 
Par contre je ne sais pas trop quoi faire pour les droits  generaux :  

Code :
  1. [/]
  2. * = r


 
 :bounce:  :bounce:

n°1068296
maxlpelm
Posté le 21-08-2008 à 10:44:44  profilanswer
 

Alors je donne un peu de nouvelles sur mon soucis,  
voila cela marche mais je n'explique toujours pas pourquoi cela ne passais pas.
Ma config apache :

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


Mon fichier d'accès :

Code :
  1. groups]
  2. admins = admin, user1, user2
  3. [siteweb:/]
  4. @admins = rw
  5. [software:/]
  6. @admins = rw


 
Maintenant tout, fonctionne bien les commits ,les update, je suis content  :lol:  :lol:  
Merci a tous pour l'aide  :hello:  :hello:  
Si vous avez des liens interressants sur l'organisation d'un svn multi projets.
Sinon j'installe redmine sur mon serveur, c'est vrai que les features sont tentantes  :whistle:  
++

mood
Publicité
Posté le   profilanswer
 

 Page :   1  2
Page Suivante

Aller à :
Ajouter une réponse
 

Sujets relatifs
Xnest - configuration clavierdebian 4.0r3 / pb détection des cartes réseau avec le noyau hd-media
probleme de configuration de samba avec ldap sous debianDebian Lenny te Livebox Sagem
[procmail] Configuration compte par compteQoS sur Debian
[Résolu] Apache2 Virtual hostsQuel modem pour une ligne bas débit sous Debian ?
Plus de sujets relatifs à : [RESOLU]Installation et configuration d'un svn sous debian etch


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR