You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Somashekarappa, Anup (CWM-NR)" <an...@rbc.com> on 2015/01/16 11:07:32 UTC

SVNSYNC


Hi,

We do have Master- Slave set up and slave has been initialized to Master url.

Master Url : http://svnserver.com:8080/svn
Slave Url : http://svnSlave.com:8080/svn

We have synced master and slave using the below command from master.

svnsync --non-interactive sync http://svnSlave.com/svn-proxy/repo_name --username=****** --password=*****


Now we have to change the port number of both master and slave.And sync process will fail in current setup because of wrong port number which has been used to initialize earlier.

So I tried to change the url to ne url in Repository/db/revprops/0/0 (in the unix server ) but got the below error.Should I initialze the repositoy in slave with new url and start the sync process from starting OR any other way to continue?


svnsync: E175002: DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent
svnsync: E175008: At least one property change failed; repository is unchanged
svnsync: E175002: Error setting property 'sync-lock':
Serialized hash malformed

Thanks & Regards,
Anup T S


______________________________________________________________________

This email is intended only for the use of the individual(s) to whom it is addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive this e-mail in error, please advise immediately
and delete the original message. This message may have been altered without your or our knowledge
and the sender does not accept any liability for any errors or omissions in the message.

Emails are monitored by supervisory personnel in jurisdictions where monitoring is permitted. 
Such communications are retained and may be produced to regulatory authorities or others with legal rights to the information.

Re: SVNSYNC

Posted by Mauricio Tavares <ra...@gmail.com>.
On Fri, Jan 16, 2015 at 5:07 AM, Somashekarappa, Anup (CWM-NR)
<an...@rbc.com> wrote:
>
>
> Hi,
>
> We do have Master- Slave set up and slave has been initialized to Master
> url.
>
> Master Url : http://svnserver.com:8080/svn
> Slave Url : http://svnSlave.com:8080/svn
>
> We have synced master and slave using the below command from master.
>
> svnsync --non-interactive sync http://svnSlave.com/svn-proxy/repo_name
> --username=****** --password=*****
>
      I take you are just testing and the production setup will not be
passing the password on the command line like the village bicycle.

>
> Now we have to change the port number of both master and slave.And sync
> process will fail in current setup because of wrong port number which has
> been used to initialize earlier.
>
> So I tried to change the url to ne url in Repository/db/revprops/0/0 (in the
> unix server ) but got the below error.Should I initialze the repositoy in
> slave with new url and start the sync process from starting OR any other way
> to continue?
>
>
> svnsync: E175002: DAV request failed; it's possible that the repository's
> pre-revprop-change hook either failed or is non-existent
> svnsync: E175008: At least one property change failed; repository is
> unchanged
> svnsync: E175002: Error setting property 'sync-lock':
> Serialized hash malformed
>
> Thanks & Regards,
> Anup T S
>
      Dumb question: did you verify that, say, slave is listening on
the new port?

>
> ______________________________________________________________________
>
> This email is intended only for the use of the individual(s) to whom it is
> addressed and may be privileged and confidential.
> Unauthorised use or disclosure is prohibited. If you receive this e-mail in
> error, please advise immediately
> and delete the original message. This message may have been altered without
> your or our knowledge
> and the sender does not accept any liability for any errors or omissions in
> the message.
>
> Emails are monitored by supervisory personnel in jurisdictions where
> monitoring is permitted.
> Such communications are retained and may be produced to regulatory
> authorities or others with legal rights to the information.

Re: SVNSYNC

Posted by Philip Martin <ph...@wandisco.com>.
"Somashekarappa, Anup (CWM-NR)" <an...@rbc.com> writes:

> So I tried to change the url to ne url in Repository/db/revprops/0/0
> (in the unix server )

You should use svn to change the r0 revision properties, typically with
a file:/// URL to the destination repository:

 svn proplist -v --revprop -r0 file:///...
 svn propset --revprop -r0 svn:sync-from-url NEW_SRC_URL file:///...

but those will not work now as you have corrupted the r0 revprop file.

> but got the below error.Should I initialze the
> repositoy in slave with new url and start the sync process from
> starting OR any other way to continue?
>
>
> svnsync: E175002: DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent
> svnsync: E175008: At least one property change failed; repository is unchanged
> svnsync: E175002: Error setting property 'sync-lock':
> Serialized hash malformed

You have corrupted the r0 revprop file.  Revert the edit and then you
can use propset to set the new URL.  Create/initialise a new repository
and use it's revprop file as a template.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*