You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Matthew Weier O'Phinney <ma...@zend.com> on 2007/09/04 08:11:38 UTC
Errors running svnsync
We have a large repository that we'd like to mirror. After reading the
documentation on repository replication using svnsync, I did the
following:
* Created 'syncuser' users on both the original system and the system
hosting the mirror, and shared public SSH keys between them (our
master repository is available via SSH only).
* Created a new repository on the mirror system:
svnadmin create /svnmirror
* 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.
* Created a start-commit hook script that exits with status 0 if the
user is our syncuser, and status 1 for all others.
* Initialized svnsync, running as user 'syncuser':
svnsync init file:///svnmirror svn+ssh://remote.server/subversion
* Begain syncing:
svnsync sync file:///svnmirror
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.
I've checked with the master repository, and it's during that revision
that the path represented by 'XXXX' is initially imported.
We're using subversion 1.4.4 RHEL4 rpms on each machine.
Any ideas?
--
Matthew Weier O'Phinney
PHP Developer | matthew@zend.com
Zend - The PHP Company | http://www.zend.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Errors running svnsync
Posted by Marc Girod <ma...@iona.com>.
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