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

Re: Svnsync with changed url and ssl certificate?

From: Ryan Schmidt <subversion-2019_at_ryandesign.com>
Date: Sun, 11 Aug 2019 22:21:24 -0500

On Aug 11, 2019, at 03:30, Bo Berglund wrote:

> H:\>svnsync synchronize https://svn.xxxxxxxx.com/svn/bosse https://engineering/svn/bosse
> Authentication realm: <https://svn.xxxxxxxx.com:443> Subversion Repository
> Password for 'Bosse': *********
> Authentication realm: <https://svn.xxxxxxxx.com:443> Subversion Repository
> Username: bosse
> Password for 'bosse': *********
> svnsync: E175008: While handling the 'svn:sync-lock' property on '/svn/bosse/!svn/bln/0':
> svnsync: E175008: Revprop change blocked by pre-revprop-change hook (exit code 1) with output:
> Only the syncuser user may change revision properties
>
> "syncuser" is the synchronization user I have created on the backup server to write to the repo (it is otherwise read only).
> It has been put into the master server as the sync user during initialization of svnsync.
> It is the only backup server user with write permissions.
>
> So I tried to repeat the command and planned to enter "syncuser" at the second login prompt,
> but this time the prompts did not re-appear so I got the error message directly:
>
> svnsync synchronize https://svn.xxxxxxxx.com/svn/bosse https://engineering/svn/bosse
> svnsync: E175008: While handling the 'svn:sync-lock' property on '/svn/bosse/!svn/bln/0':
> svnsync: E175008: Revprop change blocked by pre-revprop-change hook (exit code 1) with output:
> Only the syncuser user may change revision properties
>
> How can I force a different svnsync user than the one apparently erroneously cached somewhere when I test svnsync on the command line?

Ah yes. You must've told Subversion to save the username and password when you first set it up. Saved passwords are saved not by UUID but by URL, since it is possible for an administrator to set up different authentication for different URLs, even if they go to the same repository.

So, on the repository server where you run the batch script, you need to log in as (or use whatever the Windows equivalent of "sudo" is to temporarily become) whatever operating system user runs your svnsync batch script, and then, as that user, run svnsync or the batch script. It should prompt you for the password and maybe the username, which you can enter, and tell it to save, which it should then save, and which svnsync, when run automatically via the batch script as that user in the future, should be able to read and use.
Received on 2019-08-12 05:21:45 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.