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

Re: Errors running svnsync

From: Marc Girod <marc.girod_at_iona.com>
Date: 2007-09-05 17:50:36 CEST

Hello Matthew,

> We have a large repository that we'd like to mirror.

I made myself questions related to yours in a separate thread:

  Running svnsync from post-commit hook

There are some differences in our setups, at least
- you support only svn+ssh, whereas I have the option to use http
  in addition.
- I believe I am a step further, since I have my mirrors in sync.
  My remaining problem is to achieve the synching via the post-commit
  and post-revpropchange (I don't check the exact name) hooks,
  instead of as so far via crontabs.
- For the crontab synchronization, I do use svn+ssh
- What I have is that I use the same account for owning the
  repositories on both sides, and for the synchronization.

> * Created a pre-revprop-change hook script. Originally, I did as the
> manual suggests, having the script exit with status 0 if the user is
> our syncuser, and with status 1 for other users. However, this
> failed every single time, so it is now simply an empty script.

I am confronted to the same kind of problem (from the hooks),
but I have so far attempted to obey the instructions nevertheless.

This means that when using crontabs, I do not get these errors!

My understanding is that it is dangerous to let users make
modifications to the mirror, and that this is the role of this
hook (and of its counterpart below).

The risk is corrupting the mirror in an irreversible way.

> * Created a start-commit hook script that exits with status 0 if the
> user is our syncuser, and status 1 for all others.

Ahum. I understand that the two scripts behave differently...
Thanks for this insight.

> This started out fine. However, when we get to revision 2959 (of around
> 6100), it fails. At that time, I get the following:
>
> Committed revision 2958.
> Copied properties for revision 2958.
> svnsync: Path 'XXXX' not present
>
> and svnsync silently fails. Any attempt to restart the sync results in
> the same 'path not present' message, and it never completes.

Could it be that your mirror is corrupted as I feared aboved?
You'd have to compare the revprops...

Marc

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 5 17:48:05 2007

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.