[viewvc-users] Using viewvc with remote Subversion
Michael Schwager <[email protected]> Wed, 8 Jun 2016 17:03:29 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <CAPm3rnZCEU-UA9N3c8BY7Zen+GXZzempjwYZnyP7CjBxqJuNpw@mail.gmail.com> |
------=_Part_7570_836301322.1465476353927
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello,
I want viewvc to be able to look at my remote SVN repos. But I can't for
the life of my get it to work. The viewvc repository listing is simply
empty.
I Have the following:
/usr/local/viewvc-1.1.24/viewvc.conf contains
svn_roots = svnrepos:
http://subversion/svn/repos3/configuration/trunk/it/rancid/ch1
I'm on CentOS Linux release 7.2.1511 (Core)
/etc/httpd/conf.d/viewvc.conf contains: (Apache is 2.4 on CentOS 7)
<ifModule alias_module>
ScriptAlias /rancid/ "/usr/local/viewvc-1.1.24/bin/cgi/"
</IfModule>
<Directory /usr/local/viewvc-1.1.24/bin>
Require all granted
Options Indexes FollowSymLinks
Options All
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory>
I am navigating to:
http://myserver/rancid/viewvc.cgi
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?
Thanks.
--
-Mike Schwager
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3174649
To unsubscribe from this discussion, e-mail: [[email protected]].
------=_Part_7570_836301322.1465476353927
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hello,<div>I want viewvc to be able to look at my remote S=
VN repos. But I can't for the life of my get it to work. The viewvc rep=
ository listing is simply empty.</div><div><br></div><div>I Have the follow=
ing:<br></div><div><br></div><div>/usr/local/viewvc-1.1.24/viewvc.conf cont=
ains=C2=A0</div><div>svn_roots =3D svnrepos: <a href=3D"http://subversion/s=
vn/repos3/configuration/trunk/it/rancid/ch1">http://subversion/svn/repos3/c=
onfiguration/trunk/it/rancid/ch1</a></div><div><br></div><div>I'm on Ce=
ntOS Linux release 7.2.1511 (Core)=C2=A0</div><div><br></div><div>/etc/http=
d/conf.d/viewvc.conf contains: (Apache is 2.4 on CentOS 7)</div><div><br></=
div><div><ifModule alias_module></div><div>=C2=A0 =C2=A0 ScriptAlias =
/rancid/ "/usr/local/viewvc-1.1.24/bin/cgi/"</div><div></IfMod=
ule></div><div><br></div><div><Directory /usr/local/viewvc-1.1.24/bin=
></div><div>=C2=A0 =C2=A0 Require all granted</div><div>=C2=A0 =C2=A0 Op=
tions Indexes FollowSymLinks</div><div>=C2=A0 =C2=A0 Options All</div><div>=
=C2=A0 =C2=A0 Options +ExecCGI</div><div>=C2=A0 =C2=A0 AddHandler cgi-scrip=
t .cgi</div><div></Directory>=C2=A0</div><div><br></div><div>I am nav=
igating to:</div><div><br></div><div><a href=3D"http://myserver/rancid/view=
vc.cgi" target=3D"_blank">http://myserver/rancid/viewvc.cgi</a></div><div><=
br clear=3D"all"><div>I get a ViewVC page up and can see the "svnrepos=
" 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"=
>http://subversion/svn/repos3/configuration/trunk/it/rancid/ch1</a>'
170001 - OPTIONS of '<a href=3D"http://subversion/svn/repos3/configurat=
ion/trunk/it/rancid/ch1">http://subversion/svn/repos3/configuration/trunk/i=
t/rancid/ch1</a>': authorization failed: Could not authenticate to serv=
er: rejected Basic challenge (<a href=3D"http://subversion">http://subversi=
on</a>)
</pre></div><div><br></div><div>...but I'm sure apache can run svn comm=
ands because if I change its shell in /etc/passwd from /sbin/nologin to /bi=
n/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/configuration/trunk/it/=
rancid/ch1">http://subversion/svn/repos3/configuration/trunk/it/rancid/ch1<=
/a> =C2=A0 =C2=A0it works without requiring any credentials. This is becaus=
e I copied the .subversion directory from the "rancid" user, whic=
h is authorized to my svn. I changed ownership of the entire .subversion he=
irarchy to the apache user.</span></div><div><br></div><div>Is there someth=
ing I missed?</div><div><br></div><div>Thanks.</div>-- <br><div data-smartm=
ail=3D"gmail_signature">-Mike Schwager</div>
</div></div>
------=_Part_7570_836301322.1465476353927--