Re: [viewvc-users] Using viewvc with remote Subversion
Michael Schwager <[email protected]> Thu, 9 Jun 2016 13:37:05 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <CAPm3rnZFu2n77yqbdY2R11ex2vC84GJnTtLGXsnDDGB-BqwvTw__14064.7753993564$1465497488$gmane$org@mail.gmail.com> |
------=_Part_8075_2114309647.1465497430789 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Yes, I explicitly set it to be httpd's home directory (/usr/share/httpd/.subversion). On Thu, Jun 9, 2016 at 7:54 AM, C. Michael Pilato <[email protected]> wrote: > On 06/08/2016 06:03 PM, Michael Schwager wrote: > > I get a ViewVC page up and can see the "svnrepos" link, but when I click > on it I get > > File "/usr/lib64/python2.7/site-packages/libsvn/ra.py", line 533, in svn_ra_open > return _ra.svn_ra_open(*args) > SubversionException: 170001 - Unable to connect to a repository at URL 'http://subversion/svn/repos3/configuration/trunk/it/rancid/ch1' > 170001 - OPTIONS of 'http://subversion/svn/repos3/configuration/trunk/it/rancid/ch1': authorization failed: Could not authenticate to server: rejected Basic challenge (http://subversion) > > > ...but I'm sure apache can run svn commands because if I change its shell > in /etc/passwd from /sbin/nologin to /bin/bash and try some svn commands > such as svn log > http://subversion/svn/repos3/configuration/trunk/it/rancid/ch1 it > works without requiring any credentials. This is because I copied the > .subversion directory from the "rancid" user, which is authorized to my > svn. I changed ownership of the entire .subversion heirarchy to the apache > user. > > Is there something I missed? > > > Did you set the svn_config_dir option to point to that .subversion > directory? By default, Subversion assumes that the configuration directory > lives in $HOME/.subversion, but maybe something about your configuration is > causing that calculation to go awry. > -- -Mike Schwager ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3174726 To unsubscribe from this discussion, e-mail: [[email protected]]. ------=_Part_8075_2114309647.1465497430789 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Yes, I explicitly set it to be httpd's home directory = (/usr/share/httpd/.subversion).<div><br></div></div><div class=3D"gmail_ext= ra"><br><div class=3D"gmail_quote">On Thu, Jun 9, 2016 at 7:54 AM, C. Micha= el Pilato <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a>></span> wrote:<br><blockquote clas= s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad= ding-left:1ex"> =20 =20 =20 <div bgcolor=3D"#FFFFFF" text=3D"#000000"><span class=3D""> On 06/08/2016 06:03 PM, Michael Schwager wrote:<br> <blockquote type=3D"cite"> =20 <div dir=3D"ltr">I get a ViewVC page up and can see the "svnrepo= s" link, but when I click on it I get <div> <div> <pre style=3D"color:rgb(0,0,0)">File "/usr/lib64/python2.7= /site-packages/libsvn/ra.py", line 533, in svn_ra_open return _ra.svn_ra_open(*args) SubversionException: 170001 - Unable to connect to a repository at URL '= ;<a href=3D"http://subversion/svn/repos3/configuration/trunk/it/rancid/ch1"= target=3D"_blank">http://subversion/svn/repos3/configuration/trunk/it/ranc= id/ch1</a>' 170001 - OPTIONS of '<a href=3D"http://subversion/svn/repos3/configurat= ion/trunk/it/rancid/ch1" target=3D"_blank">http://subversion/svn/repos3/con= figuration/trunk/it/rancid/ch1</a>': authorization failed: Could not au= thenticate to server: rejected Basic challenge (<a href=3D"http://subversio= n" target=3D"_blank">http://subversion</a>) </pre> </div> <div><br> </div> <div>...but I'm sure apache can run svn commands because if I change its shell in /etc/passwd from /sbin/nologin to /bin/bash and try some svn commands such as svn log=C2=A0<span = style=3D"color:rgb(0,0,0)"><a href=3D"http://subversion/svn/repos3/configur= ation/trunk/it/rancid/ch1" target=3D"_blank">http://subversion/svn/repos3/c= onfiguration/trunk/it/rancid/ch1</a> =C2=A0 =C2=A0it works without requiring any credentials. This= is because I copied the .subversion directory from the "rancid" user, which is authorized to my svn. I cha= nged ownership of the entire .subversion heirarchy to the apache user.</span></div> <div><br> </div> <div>Is there something I missed?</div> </div> </div> </blockquote> <br></span> Did you set the svn_config_dir option to point to that .subversion directory?=C2=A0 By default, Subversion assumes that the configuration directory lives in $HOME/.subversion, but maybe something about your configuration is causing that calculation to go awry.<br> </div> </blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class= =3D"gmail_signature" data-smartmail=3D"gmail_signature">-Mike Schwager</div= > </div> ------=_Part_8075_2114309647.1465497430789--