Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F1FEFD2B3 for ; Wed, 1 Aug 2012 12:25:52 +0000 (UTC) Received: (qmail 54126 invoked by uid 500); 1 Aug 2012 12:25:52 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 54067 invoked by uid 500); 1 Aug 2012 12:25:52 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 54059 invoked by uid 99); 1 Aug 2012 12:25:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2012 12:25:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of honeylyn@menue.com designates 209.85.161.171 as permitted sender) Received: from [209.85.161.171] (HELO mail-gg0-f171.google.com) (209.85.161.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2012 12:25:47 +0000 Received: by ggmi1 with SMTP id i1so13168331ggm.16 for ; Wed, 01 Aug 2012 05:25:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=Aar+1+lRyADh8JOdQpcFCvn2U/PMdpwnQAXatUPCyYg=; b=ZHlHhdTQUceGUoqo4nrNqn/CvIybZYVV/baq+bgFJRMAvPnYI1F6U0O5sgSQTIga1x Jf7KhiQy8Y5Q/711hSu224G8H4W5xaNL5tnzBPUJxZ5feLIuF11buJKaE9rfwgF2owzU 5Kj4B0Sr4+xatyvXz2ixybD2evfUIxI6o0CfGh9TgQk6G+R1wJCWlrOD0Ov03xd1l0Xa QRuFyRofl9CZ8chg2E4D5+m1uD4E+amvwTfpS9MZ8s8+G0KPabcNqWj9ZX6s+4ZanNyX EVkSEj3h4bdxG8eyv8FIK+BCuMNp5k6azakWAuLRZSB84d9wFoa9A5tH41WBr023mRwG nrIg== MIME-Version: 1.0 Received: by 10.50.184.227 with SMTP id ex3mr2114444igc.26.1343823926137; Wed, 01 Aug 2012 05:25:26 -0700 (PDT) Received: by 10.64.39.207 with HTTP; Wed, 1 Aug 2012 05:25:25 -0700 (PDT) X-Originating-IP: [122.52.15.35] In-Reply-To: References: <5018C7EE.9030709@acm.org> <5018CE88.5060003@acm.org> <20120801085149.GA26012@ted.stsp.name> Date: Wed, 1 Aug 2012 20:25:25 +0800 Message-ID: Subject: Re: SVNSYNC Error From: "Honeylyn O. Fukuoka" To: Andy Levy Cc: users@subversion.apache.org Content-Type: multipart/alternative; boundary=14dae9340d81c211fa04c63363fa X-Gm-Message-State: ALoCoQnbm/PcHvzGQJVnh6rqV8iWTHCF8t06TsazJI/Pkmi5DUqxvEdp+QEX77Bfqyun+RjLuZdi X-Virus-Checked: Checked by ClamAV on apache.org --14dae9340d81c211fa04c63363fa Content-Type: text/plain; charset=ISO-8859-1 Hi, I tried the one in your link under repository replication and followed what was instructed there. I also changed the pre-revprop-change hook script based on the example given there and so as the start-commit hook. But when I performed the 'svnsync initialize' command, I got this error: svnsync: E170001: Authorization Failed Here are the scripts I put in the pre-revprop-change hook #!/bin/sh USER="$3" if [ "$USER" = "syncuser" ]; then exit 0; fi echo "Only the syncuser user may change revision properties" >&2 exit 1 And for the start-commit hook: #!/bin/sh USER="$2" if [ "$USER" = "syncuser" ]; then exit 0; fi echo "Only the syncuser user may commit new revisions" >&2 exit 1 Those are exactly the same scripts that was on the book. I also did what David told me to do, to create another pre-revprop-change hook script with 'exit 0' and save it in .bat but also received the same error. Can anyone tell me what should I do to succesfuly erform the initialize command? Thanks so much, Honey On Wed, Aug 1, 2012 at 5:59 PM, Andy Levy wrote: > On Wed, Aug 1, 2012 at 4:57 AM, Honeylyn O. Fukuoka > wrote: > > Hi, > > > > Thanks for this. > > We are using snserve not Apache... > > Will this link still work with us? > > Yes (please read the links to the documentation you've been provided). > But not with an HTTP URL for your source repository. If you're using > svnserve, your URL should be svn:// > > > > > On Wed, Aug 1, 2012 at 4:51 PM, Stefan Sperling wrote: > >> > >> On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O. Fukuoka wrote: > >> > Thanks so much for this info, Will try this and will let you know it > it > >> > is > >> > successful... > >> > >> There are quite a lot of posts in this thread already, and I'm surprised > >> that nobody seems to have pointed Honeylyn to the relevant section of > the > >> svnbook: > >> > http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.replication.svnsync > >> > >> Please read this page first, and if you have any further questions, > >> *then* ask on this list. > >> > >> If you're also going to set up a write-through proxy see > >> > >> > http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.writethruproxy > >> > >> Good luck! > > > > > > > > > > -- > > HONEYLYN O. FUKUOKA > > System Administrator > > Menue Philippines, Inc. > > > > > -- *HONEYLYN O. FUKUOKA* System Administrator Menue Philippines, Inc. * * --14dae9340d81c211fa04c63363fa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
=A0
I tried the one in your link under reposi= tory replication and followed what was instructed there.
I also changed = the pre-revprop-change hook script based on the example given there and so = as the start-commit hook.
But when I performed the 'svnsync initialize' command, I got t= his error:
=A0=A0=A0=A0 svnsync: E170001: Authorization Failed
=A0
Here are the scripts I put in the pre-revprop-change = hook
#!/bin/sh

USER=3D"$3"

if [ &= quot;$USER" =3D "syncuser" ]; then exit 0; fi

echo &q= uot;Only the syncuser user may change revision properties" >&2<= br> exit 1
And for the start-commit hook:
#!/bin/sh

USER=3D"$2"

if [ "$USER&= quot; =3D "syncuser" ]; then exit 0; fi

echo "Only th= e syncuser user may commit new revisions" >&2
exit 1

Those are exactly the same scripts that was on the boo= k.
I also did what David told me to do, to create another pre-rev= prop-change hook script with 'exit 0' and save it in .bat but also = received the same error.
=A0
Can anyone tell me what should I do to succesfuly erform= the initialize command?
=A0
=A0
=A0
Thanks so much,
=A0
=A0
Honey
=A0=
On Wed, Aug 1, 2012 at 5:59 PM, Andy Levy <andy.levy@gmail.com> wrote:
On Wed, Aug 1, 2012 at 4:57 AM, Honeylyn O. Fukuoka <<= a href=3D"mailto:honeylyn@menue.com">honeylyn@menue.com> wrote:
> Hi,
>
> Thanks for this.
> We are using snserve not Apache...
> Will this link still work with us?

Yes (please read the links to the documentation you've been provi= ded).
But not with an HTTP URL for your source repository. If you're using svnserve, your URL should be svn://

>
> On Wed, Aug 1, 2012 at 4:51 PM, Stefan Sperling <stsp@elego.de> wrote:
>>
>> On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O. Fukuoka wrot= e:
>> > Thanks so much for this info, Will try this and will let you = know it it
>> > is
>> > successful...
>>
>> There are quite a lot of posts in this thread already, and I'm= surprised
>> that nobody seems to have pointed Honeylyn to the relevant section= of the
>> svnbook:
>> http://sv= nbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.re= plication.svnsync
>>
>> Please read this page first, and if you have any further questions= ,
>> *then* ask on this list.
>>
>> If you're also going to set up a write-through proxy see
>>
>> http= ://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html#svn.serverconfig= .httpd.extra.writethruproxy
>>
>> Good luck!
>
>
>
>
> --
> HONEYLYN O. FUKUOKA
> System Administrator
> Menue Philippines, Inc.
>
>



--
HONEYLYN O. FUKUOKA
System Administrator
Menue Phi= lippines, Inc.


--14dae9340d81c211fa04c63363fa--