You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ikami garajau de castilho <ik...@yahoo.com.br> on 2009/08/10 18:45:58 UTC

Erro when commit

Good Afternoon for all,

Last week I have to migrate my svn sever. I move it from a physical server to a virtual server.
Actualy I have 22 repos in use. 
All of then, except one, are working.

To migrate the SVN I dump the repos one by one with this command.

svnadmin dump /subversion/svn/repos/REPOSITORY_NAME > /DIR_BKP/REPOSITORY_NAME.DATA.dump

And to load the repos in the new server I execute this command:

svnadmin create /subversion/svn/repos/REPOSITORY_NAME
chown -R wwwrun.www /subversion/svn/repos/REPOSITORY_NAME
svnadmin load /subversion/svn/repos/REPOSITORY_NAME < REPOSITORY_NAME.DATA.dump

This backup work for all repository except 1. I can view the repo in the browser, I can create a work copy in my desktop but I can not do COMMITS.
This are the erros:

TORTOISESVN:
Documents and Settings\ikami\Desktop\COFIN\Latex.pdf
Documents and Settings\ikami\Desktop\COFIN\Latex.pdf
Commit failed (details follow):
Can't move 
'/subversion/svn/repos/Modernizacao_COFIN/db/txn-protorevs/1738-1cm.rev' to 
'/subversion/svn/repos/Modernizacao_COFIN/db/revs/1/1739': Permission denied

APACHE_ERRO_LOG:
[error] [client 10.229.10.100] Could not MERGE resource "/subversion/Modernizacao_COFIN/!svn/act/4d07846f-77e7-b04b-a972-f1fdb28407e6" into "/subversion/Modernizacao_COFIN".  [409, #0]
[error] [client 10.229.10.100] An error occurred while committing the transaction.  [409, #13]
[error] [client 10.229.10.100] Can't move '/subversion/svn/repos/Modernizacao_COFIN/db/txn-protorevs/1738-1cn.rev' to '/subversion/svn/repos/Modernizacao_COFIN/db/revs/1/1739': Permission denied  [409, #13]

APACHE_ACCESS_LOG:
10.229.10.100 - - [10/Aug/2009:15:27:38 -0300] "OPTIONS /subversion/Modernizacao_COFIN/Latex.pdf HTTP/1.1" 401 401
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:38 -0300] "OPTIONS /subversion/Modernizacao_COFIN/Latex.pdf HTTP/1.1" 200 -
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:38 -0300] "PROPFIND /subversion/Modernizacao_COFIN/Latex.pdf HTTP/1.1" 404 237
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:38 -0300] "PROPFIND /subversion/Modernizacao_COFIN HTTP/1.1" 207 689
10.229.10.100 - - [10/Aug/2009:15:27:39 -0300] "OPTIONS /subversion/Modernizacao_COFIN HTTP/1.1" 401 401
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "OPTIONS /subversion/Modernizacao_COFIN HTTP/1.1" 200 -
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "PROPFIND /subversion/Modernizacao_COFIN HTTP/1.1" 207 689
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "OPTIONS /subversion/Modernizacao_COFIN HTTP/1.1" 200 209
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "MKACTIVITY /subversion/Modernizacao_COFIN/!svn/act/5b85e95d-9240-854f-b6df-8787b1b11022 HTTP/1.1" 201 248
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "PROPFIND /subversion/Modernizacao_COFIN/!svn/vcc/default HTTP/1.1" 207 443
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "CHECKOUT /subversion/Modernizacao_COFIN/!svn/bln/1738 HTTP/1.1" 201 265
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "PROPPATCH /subversion/Modernizacao_COFIN/!svn/wbl/5b85e95d-9240-854f-b6df-8787b1b11022/1738 HTTP/1.1" 207 484
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "PROPFIND /subversion/Modernizacao_COFIN HTTP/1.1" 207 428
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "CHECKOUT /subversion/Modernizacao_COFIN/!svn/ver/1738/ HTTP/1.1" 201 261
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "PROPFIND /subversion/Modernizacao_COFIN/!svn/wrk/5b85e95d-9240-854f-b6df-8787b1b11022/Latex.pdf HTTP/1.1" 404 283
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "PUT /subversion/Modernizacao_COFIN/!svn/wrk/5b85e95d-9240-854f-b6df-8787b1b11022/Latex.pdf HTTP/1.1" 201 258
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:39 -0300] "MERGE /subversion/Modernizacao_COFIN HTTP/1.1" 409 355
10.229.10.100 - ikami.castilho [10/Aug/2009:15:27:40 -0300] "DELETE /subversion/Modernizacao_COFIN/!svn/act/5b85e95d-9240-854f-b6df-8787b1b11022 HTTP/1.1" 204 -

Apache_conf:
<Location /subversion>
  DAV svn
  SVNParentPath /subversion/svn/repos
  AuthType Basic
  AuthName "Acesso ao Subversion"
  AuthUserFile /subversion/svn/auth-file
  AuthzSVNAccessFile /subversion/svn/svnpolicy
#  AuthGroupFile /subversion/svn/grupos
  Require valid-user
</Location>

svnpolicy:
[Modernizacao_COFIN:/]
ikami.castilho = rw
marcio.brown = r
jonh.coelho = rw
tony.yoshida = rw

Version of the install program:
1- Old server - In this server all the repos are working
svnadmin, version 1.5.1 (r32289)
Server version: Apache/2.2.9 (Unix)
Python 2.5.2
ruby 1.8.7 (2008-06-20 patchlevel 22) [x86_64-linux]
SWIG Version 1.3.36
neon 0.28.1
mod_python-3.3.1

2- New server - In this server I have the problem with 1 repo
svnadmin, version 1.5.6 (r36142)
Server version: Apache/2.2.9 (Unix)
Python 2.6.2
ruby 1.8.7 (2008-06-20 patchlevel 22) [x86_64-linux]
SWIG Version 1.3.39
neon 0.28.5
mod_python-3.3.1 


Any help would be great.

Íkami


      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2382166

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Res: Erro when commit

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 11, 2009, at 08:01, ikami wrote:

>> Have you checked the permissions of /subversion/svn/repos/
>> Modernizacao_COFIN/db and its subdirectories? It sounds like Apache
>> does not have permission to write to the revs directory. Compare the
>> permissions of the directories here with the permissions of those
>> repositories that are working correctly.
>
> Thanks Ryan, you are right!
> The permission of the /db/revs/1 and /db/txn-protorevs/1  
> directories were wrong.
> I don't know why but when I migrate the repos the permission of  
> those directories changed. They were "wwwrun" (apache's user) and  
> change for root's user.

Oh good. I'm glad you got it working.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2382477

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Erro when commit

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 10, 2009, at 13:45, ikami garajau de castilho wrote:

> Commit failed (details follow):
> Can't move
> '/subversion/svn/repos/Modernizacao_COFIN/db/txn-protorevs/ 
> 1738-1cm.rev' to
> '/subversion/svn/repos/Modernizacao_COFIN/db/revs/1/1739':  
> Permission denied
>
> APACHE_ERRO_LOG:
> [error] [client 10.229.10.100] Could not MERGE resource "/ 
> subversion/Modernizacao_COFIN/!svn/act/4d07846f-77e7-b04b-a972- 
> f1fdb28407e6" into "/subversion/Modernizacao_COFIN".  [409, #0]
> [error] [client 10.229.10.100] An error occurred while committing  
> the transaction.  [409, #13]
> [error] [client 10.229.10.100] Can't move '/subversion/svn/repos/ 
> Modernizacao_COFIN/db/txn-protorevs/1738-1cn.rev' to '/subversion/ 
> svn/repos/Modernizacao_COFIN/db/revs/1/1739': Permission denied   
> [409, #13]

Have you checked the permissions of /subversion/svn/repos/ 
Modernizacao_COFIN/db and its subdirectories? It sounds like Apache  
does not have permission to write to the revs directory. Compare the  
permissions of the directories here with the permissions of those  
repositories that are working correctly.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2382266

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].