You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by RobBooke <ro...@gmail.com> on 2009/06/30 14:45:45 UTC

Re: Problem when trying to do svnsync slave master

Yoo thanks fida! I did just that after spending hours quadruple checking my
hook scripts and httpd.conf and BOOYAH I am now svnsyncing my prod repos to
the DR site.  Next is to work out the post-commit hook, works fine when you
run it manually but I must of missed something as it does not run when
Subversion initiates the process.

fida aljounaidi wrote:
> 
> To fix that, I delete the line
> 
> *SVNMasterURI http://master.server.server/svn
> 
> *I don't think that it is a normal behaviour. Is it a bug on subversion ?
> 
> Thanks *
> *
> 2009/5/6 fida aljounaidi <fi...@gmail.com>
> 
>> Sorry
>> i've find the log in the master server:
>>
>> [Wed May 06 12:18:47 2009] [error] [client 10.0.0.1] Access denied:
>> 'user1'
>> PROPPATCH !svn:/bln/0
>> [Wed May 06 12:22:50 2009] [error] [client 10.0.0.1] could not remove a
>> property  [500, #165006]
>> [Wed May 06 12:22:50 2009] [error] [client 10.0.0.1] Repository has not
>> been enabled to accept revision propchanges;\nask the administrator to
>> create a pre-revprop-change hook  [500, #165006]
>> [Wed May 06 12:22:50 2009] [error] [client 10.0.0.1] Could not execute
>> PROPPATCH.  [500, #206]
>> [Wed May 06 12:22:50 2009] [error] [client 10.0.0.1] Repository has not
>> been enabled to accept revision propchanges;\nask the administrator to
>> create a pre-revprop-change hook  [500, #165006
>>
>> mut i create a pre-revprop hook script in the master svn ? if that what
>> can
>> i put on it to not restrict access to the other user ?
>>
>> Thanks
>>
>>
>> I'm using subversion 1.6.1
>>
>>
>> 2009/5/6 fida aljounaidi <fi...@gmail.com>
>>
>>
>>> Hello everybody
>>>
>>> I'm trying to perform a repository replication using svnsync.
>>> To do that and to limit access to the replicated repository, i
>>> configured
>>> the destination svn server to be a slave adding this directive in the
>>> apache
>>> conf file :
>>>
>>> *SVNMasterURI http://master.server.server/svn*
>>>
>>> And to restrict the write access to this only Master server with these
>>> directives:
>>>
>>>  * Order deny,allow
>>>   Deny from all
>>>   Allow from 10.0.0.1 (@IP of the master server)*
>>>
>>> I put all these directive in the same <Location>
>>> And  i restarted apache.
>>>
>>> When i tried to initialize the svnsync with this command
>>>
>>>  "*svnsync init
>>> http://slave/svn-proxy-syncfile:///svnroot/svn-master-repos/branche
>>> --sync-username=syncuser
>>> --source-username=user1 --source-password=user1Password *"
>>>
>>> i get this error:
>>>
>>> *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
>>> svnsync: Server sent unexpected return value (403 Forbidden) in response
>>> to PROPPATCH request for '/svn-proxy-sync/!svn/bln/0'*
>>>
>>> The apache Log doesn't seem to show anything. I don't have any log after
>>> this command.
>>>
>>> can someone help me to understand what is wrong with my configuration?
>>>
>>> Thanks
>>>
>>>
>>>  <us...@subversion.tigris.org>
>>
>>
>>
> 
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2081541
> 
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe@subversion.tigris.org].
> 

-- 
View this message in context: http://www.nabble.com/Problem-when-trying-to-do-svnsync-slave-master-tp23403741p24273252.html
Sent from the Subversion Users mailing list archive at Nabble.com.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2366726

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Problem when trying to do svnsync slave master

Posted by Lorenz <lo...@yahoo.com>.
RobBooke wrote:
>[...]
>Next is to work out the post-commit hook, works fine when you
>run it manually but I must of missed something as it does not run when
>Subversion initiates the process.

subversion is running the hook scripts with an empty environment, so
missing absolut paths to binaries might be the problem
-- 

Lorenz

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2366928

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].