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

Re: svnsync URL error

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-10-25 00:17:01 CEST

On Oct 24, 2006, at 08:37, Monzalvo, Leopoldo [CIB-IT] wrote:

>>> I am trying to sync my repos using svnsync.
>>>
>>> I followed the instructions showed in http://
>>> journal.paul.querna.org/articles/2006/09/14/using-svnsync and
>>> http://svn.collab.net/repos/svn/trunk/notes/svnsync.txt and was
>>> able to sync my repo using the following command:
>>>
>>> svnsync init file:///export3/svnrep-bak/repos/svnsync/test file:///
>>> export3/svnrep/repos/svnsync/test
>>>
>>> BUT, whenever I use URLs instead of file locations I get the error:
>>>
>>> svnsync init http://ny390-sf01a:9050/svn/svnsync-bak/test http://
>>> ny390-sf01a:9050/svn/svnsync/test
>>>
>>> svnsync: DAV request failed; it's possible that the repository's
>>> pre-revprop-change hook either failed or is non-existent
>>> svnsync: At least one property change failed; repository is
>>> unchanged
>>>
>>> My apache installations works fine since I am able to do normal
>>> repo operations (checkout, commit, update, etc) using URLs.
>>>
>>> Does somebody have any clue on what's wrong ?
>>
>> Have you installed a pre-revprop-change hook as described here?
>>
>> http://svn.collab.net/repos/svn/trunk/notes/svnsync.txt
>
> Yes I did, actually, I could sync my repo using svnsync init
> file:///torepo file:///fromrepo
>
> But as soon as I use URLs, I got the error message shown below.

Well, hooks work rather differently under file:/// access than under
any other protocol, because with file:/// access there is no server
process, and with the other protocols, there is.

Can the web server user read and execute the hook script?

Are you running any commands or accessing any files within the hook
script? If so, have you remembered to define all executable and file
locations using absolute paths, or else define the PATH variable to
something appropriate beforehand, since when running as a hook, the
path is empty?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 25 00:18:13 2006

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.