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

RE: svnsync: Authorization failed

From: Li, Hubert <Hubert.Li_at_arris.com>
Date: Tue, 15 Sep 2015 02:03:57 +0000

Yes, I tried --sync-username and --sync-password:
subversion/svnserve/serve.c:167: (apr_err=170001)
svnsync: Authorization failed

Hubert Li

o: +86 571-2811-7111
c: +86 130-1890-4390

From: Eric Johnson [mailto:eric_at_tibco.com]
Sent: Tuesday, September 15, 2015 12:16 AM
To: Li, Hubert <Hubert.Li_at_arris.com>
Cc: users_at_subversion.apache.org
Subject: Re: svnsync: Authorization failed

Hi Hubert,

There should be two sets of credentials you can pass to svnsync. I don't remember what they're called for 1.6. Did you try passing the --sync-username and --sync-password?


On Sun, Sep 13, 2015 at 11:59 PM, Li, Hubert <Hubert.Li_at_arris.com<mailto:Hubert.Li_at_arris.com>> wrote:
Thanks, Eric. I tried to add –username and –password in svnsync, and got the same error messages. Yes, 1.6.6 is old, but we have to use it for some reasons.

Hubert Li

From: Eric Johnson [mailto:eric_at_tibco.com<mailto:eric_at_tibco.com>]
Sent: Monday, September 14, 2015 2:43 PM
To: Li, Hubert <Hubert.Li_at_arris.com<mailto:Hubert.Li_at_arris.com>>
Cc: users_at_subversion.apache.org<mailto:users_at_subversion.apache.org>
Subject: Re: svnsync: Authorization failed

Two quick thoughts (I'm not a developer, just a user of Subversion):

1) 1.6.6 is old. If you can upgrade, you might get easier to understand error messages.

2) The sync operation is trying to sync from some other place. Given that your credentials to access the zch124... repository may be fine, the likely culprit is the credentials to access the source of the sync request data. In any case, "svnsync help sync" will give you the command line options you can pass to set the creds.


On Sun, Sep 13, 2015 at 8:02 PM, Li, Hubert <Hubert.Li_at_arris.com<mailto:Hubert.Li_at_arris.com>> wrote:

I got the following error when I ran svnsync:
[root@zch124svn01 conf]# svnsync sync svn://zch124svn01.ap.mot-mobility.com/miracle3<http://zch124svn01.ap.mot-mobility.com/miracle3>

subversion/svnserve/serve.c:167: (apr_err=170001)
svnsync: Authorization failed

but I can co or export it with the same user, e.g.
[/dept/stb/...67/svn/test]$ svn export svn://zch124svn01.ap.mot-mobility.com/miracle3<http://zch124svn01.ap.mot-mobility.com/miracle3>
A miracle3

Below is my system info:
[root_at_zch124svn01 conf]# cat /etc/issue
CentOS release 6.4 (Final)
Kernel \r on an \m

[root_at_zch124svn01 conf]# svnsync --version
svnsync, version 1.6.6 (r40053)
   compiled Oct 24 2013, 13:59:58

BTW, we can sync it before rebooting the system, but after reboot it, we got this error. I start the service with this command:
svnserve -d -r /svn_files/svn/

Hubert Li

Received on 2015-09-15 04:30:49 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.