Re: [viewvc-users] Using viewvc with remote Subversion

"C. Michael Pilato" <[email protected]> Thu, 9 Jun 2016 08:54:18 -0400
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <[email protected]>
------=_Part_7576_1908263880.1465476868417
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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.

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3174695

To unsubscribe from this discussion, e-mail: [[email protected]].
------=_Part_7576_1908263880.1465476868417
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    On 06/08/2016 06:03 PM, Michael Schwager wrote:<br>
    <blockquote
cite=3D"mid:[email protected].=
com"
      type=3D"cite">
      <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=
-8">
      <div dir=3D"ltr">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 =
moz-do-not-send=3D"true" href=3D"http://subversion/svn/repos3/configuration=
/trunk/it/rancid/ch1">http://subversion/svn/repos3/configuration/trunk/it/r=
ancid/ch1</a>'
170001 - OPTIONS of '<a moz-do-not-send=3D"true" href=3D"http://subversion/=
svn/repos3/configuration/trunk/it/rancid/ch1">http://subversion/svn/repos3/=
configuration/trunk/it/rancid/ch1</a>': authorization failed: Could not aut=
henticate to server: rejected Basic challenge (<a moz-do-not-send=3D"true" =
href=3D"http://subversion">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 moz-do-not-send=3D"true"
                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
              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.</span></div>
          <div><br>
          </div>
          <div>Is there something I missed?</div>
        </div>
      </div>
    </blockquote>
    <br>
    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>
  </body>
</html>

------=_Part_7576_1908263880.1465476868417--