You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Maciej Ochalek <ma...@nisus.com> on 2005/09/27 13:50:56 UTC

SVN Mirroring problems

Hello all,
I need to set up a mirror of SVN repository. There are several 
developers in our office in Poland while the main division is in USA 
(and they don't really understand that our connection is very poor 
quality) so we decided to mirror the remote SVN located on the US 
server, which we normally accessed via svn+ssh://.
The simplest solution seems to be SVN::Mirror. I have set it up (version 
0.67 downloaded from CPAN) and run it the following way:

$ svnadmin create --fs-type fsfs /repository
$ export SVMREPOS=/repository
$ svm init mirror svn+ssh://user@remote.svn.host/remote_repository 
(public key authentication)
$ svm sync mirror

Here is where the first problem appears. When something breaks the 
connection (and as I said the link is very poor quality) and I try to 
resume it svm keeps displaying:
Waiting for sync lock on /mirror: host:1629.
How can I disable the lock? Deleting anything in repository/locks 
results in breaking the repository down and I cannot do anything with it 
anyway.

If everything runs fine I have a repository mirror at 
file://$SVMREPOS/mirror. I create a local branch:
$ svn cp file://$SVMREPOS/mirror file://$SVMREPOS/svn-local
Then I can check out and do some changes to the code. Then I commit it 
and get the following message:
Sending (files)
Transmitting file data .
Committed revision 8.

Now there is another problem. The svm POD says I should perform a svm 
mergeback command. What are the parameters though? I figured out that 
first parameter should be the path (here: 'mirror'), second should be 
'svn-local', but how about the required third one? A revision? Revision 
of what? I tried different values but each of them gets me an error 
message (different types though):

$ svm mergeback mirror svn-local 7
Invalid filesystem path syntax: Invalid editor anchoring; at least one 
of the input paths is not a directory and there was no source entry at 
/usr/share/perl5/SVN/Mirror.pm line 413

$ svm mergeback mirror svn-local 8
committed via RA at /usr/share/perl5/SVN/Mirror.pm line 409.

$ svm mergeback mirror svn-local 8             (one more time)
A checksum mismatch occurred: Base checksum mismatch on 
'src/scripts/ELFA/ELFA.pl':
   expected:  06499a874fc782217f1370edcd4d1ea4
     actual:  647035bd17fe330d4c474961525dfde9
 at /usr/share/perl5/SVN/Mirror.pm line 413
        
SVN::Delta::Editor::AUTOLOAD('SVN::Delta::Editor=HASH(0x85a2db8)', 
'_p_void=SCALAR(0x85a2fd4)', '06499a874        fc782217f1370edcd4d1ea4', 
'_p_apr_pool_t=SCALAR(0x85a2ea8)') called at 
/usr/share/perl5/SVN/Mirror.pm line 413
        SVN::Mirror::mergeback('SVN::Mirror::Ra=HASH(0x855afac)', 7, 
'svn-local', 8) called at /usr/bin/svm line 1        15
        main::mergeback('mirror', 'svn-local', 8) called at /usr/bin/svm 
line 124

After all this the actual revision on local (mirror) repository is 8 and 
on remote repository is 6 so nothing was merged back.

I would appreciate any help as this mirroring drives me nuts and all of 
us here really need the mirror to work.

Regards,

Maciek Ochalek



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: SVN Mirroring problems

Posted by Skillen <su...@wandisco.com>.
hi, i have seen avaya use wandisco to do this with india and it looks like it
worked pretty well. good luck

ohaleck wrote:
> 
> Hello all,
> I need to set up a mirror of SVN repository. There are several 
> developers in our office in Poland while the main division is in USA 
> (and they don't really understand that our connection is very poor 
> quality) so we decided to mirror the remote SVN located on the US 
> server, which we normally accessed via svn+ssh://.
> The simplest solution seems to be SVN::Mirror. I have set it up (version 
> 0.67 downloaded from CPAN) and run it the following way:
> 
> $ svnadmin create --fs-type fsfs /repository
> $ export SVMREPOS=/repository
> $ svm init mirror svn+ssh://user@remote.svn.host/remote_repository 
> (public key authentication)
> $ svm sync mirror
> 
> Here is where the first problem appears. When something breaks the 
> connection (and as I said the link is very poor quality) and I try to 
> resume it svm keeps displaying:
> Waiting for sync lock on /mirror: host:1629.
> How can I disable the lock? Deleting anything in repository/locks 
> results in breaking the repository down and I cannot do anything with it 
> anyway.
> 
> If everything runs fine I have a repository mirror at 
> file://$SVMREPOS/mirror. I create a local branch:
> $ svn cp file://$SVMREPOS/mirror file://$SVMREPOS/svn-local
> Then I can check out and do some changes to the code. Then I commit it 
> and get the following message:
> Sending (files)
> Transmitting file data .
> Committed revision 8.
> 
> Now there is another problem. The svm POD says I should perform a svm 
> mergeback command. What are the parameters though? I figured out that 
> first parameter should be the path (here: 'mirror'), second should be 
> 'svn-local', but how about the required third one? A revision? Revision 
> of what? I tried different values but each of them gets me an error 
> message (different types though):
> 
> $ svm mergeback mirror svn-local 7
> Invalid filesystem path syntax: Invalid editor anchoring; at least one 
> of the input paths is not a directory and there was no source entry at 
> /usr/share/perl5/SVN/Mirror.pm line 413
> 
> $ svm mergeback mirror svn-local 8
> committed via RA at /usr/share/perl5/SVN/Mirror.pm line 409.
> 
> $ svm mergeback mirror svn-local 8             (one more time)
> A checksum mismatch occurred: Base checksum mismatch on 
> 'src/scripts/ELFA/ELFA.pl':
>    expected:  06499a874fc782217f1370edcd4d1ea4
>      actual:  647035bd17fe330d4c474961525dfde9
>  at /usr/share/perl5/SVN/Mirror.pm line 413
>         
> SVN::Delta::Editor::AUTOLOAD('SVN::Delta::Editor=HASH(0x85a2db8)', 
> '_p_void=SCALAR(0x85a2fd4)', '06499a874        fc782217f1370edcd4d1ea4', 
> '_p_apr_pool_t=SCALAR(0x85a2ea8)') called at 
> /usr/share/perl5/SVN/Mirror.pm line 413
>         SVN::Mirror::mergeback('SVN::Mirror::Ra=HASH(0x855afac)', 7, 
> 'svn-local', 8) called at /usr/bin/svm line 1        15
>         main::mergeback('mirror', 'svn-local', 8) called at /usr/bin/svm 
> line 124
> 
> After all this the actual revision on local (mirror) repository is 8 and 
> on remote repository is 6 so nothing was merged back.
> 
> I would appreciate any help as this mirroring drives me nuts and all of 
> us here really need the mirror to work.
> 
> Regards,
> 
> Maciek Ochalek
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/SVN-Mirroring-problems-tf350718.html#a13061574
Sent from the Subversion Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: SVN Mirroring problems

Posted by Maciej Ochalek <ma...@nisus.com>.
Maciej Ochalek wrote:

> Hello all,
> I need to set up a mirror of SVN repository. There are several 
> developers in our office in Poland while the main division is in USA 
> (and they don't really understand that our connection is very poor 
> quality) so we decided to mirror the remote SVN located on the US 
> server, which we normally accessed via svn+ssh://.
>
Please, can anyone help?
Maciek

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org