[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Help Needed regarding svn master-slave configuration

From: Ulrich Eckhardt <ulrich.eckhardt_at_dominolaser.com>
Date: Wed, 10 Aug 2011 09:40:30 +0200

On Wednesday 10 August 2011, Sharma, Gaurav wrote:
> I have a task in hand to setup a master-slave svn repository configuration
> so that master will synchronize its repositories with slave. I searched a
> lot on web and found many links telling about how to set it up. Following
> those links I started using "svnsync" for this purpose. But some how after
> spending many days I am not able it to work as desired.
[...]
> I have two objectives for this setup-
>
> 1- End user should be able to perform both check-out and check-in to
> the slave repository.
> 2- Master should synchronize all its repository with slave

There are basically three steps involved with this:
1. set up a secondary repository
This involves creating it and initialising it with svnsync. After this step,
you should be able to pull changes from the primary repository by invoking
svnsync locally.
2. provide access to the secondary repository
This then allows you to push (as opposed to pull) changes from the primary to
the secondary repository. Further, it allows you to check out from the
secondary repository. You should disallow checkins and revprop changes except
for the dedicated svnsync user though, as documented. This seems to be set up
correctly already.
3. connect the repositories
This involves creating a post-commit hook that svnsyncs the changes to the
secondary repository and one for the rev-prop changes, but you seem to have
these set up already.
4. create a transparent write-proxy
This requires Apache (the rest could be dove with svnserve, too) and should
also be documented. I never made this step though but only the former three,
since the write-proxy wasn't my requirement.

In what stage are you, what works, what are the errors otherwise?

> From the very start I have not able to perform commit on the slave. I got
> different errors time to time and I am really got tired of these errors.

I understand that you are tired of them, but people here haven't seen them
even once, so they can't give any suggestions how to fix them...

> If I commit on the master then master itself synchronizes with the slave
> but sometime even this part doesn't work.

This sounds strange, what exactly fails, what are the errors?

Uli

-- 
ML: http://subversion.apache.org/docs/community-guide/mailing-lists.html
FAQ: http://subversion.apache.org/faq.html
Docs: http://svnbook.red-bean.com/
**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
Received on 2011-08-10 09:32:38 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.