Re: [viewvc-users] Problems getting ViewVC work
"C. Michael Pilato" <[email protected]> Wed, 23 Sep 2015 15:02:31 -0400
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <CAFVDjdxPc3Se_vKXNP38_B405h+Wf=XcWPSAW7-=c8R3xV6RoA__5022.58760757304$1443034968$gmane$org@mail.gmail.com> |
------=_Part_11077_2137344064.1443034956518
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I'm coming up blank here, Tom. I wonder, though, if you might learn
something by temporarily replacing your viewvc.cgi script with a simple CGI
script that prints information about the environment. Something like this,
perhaps:
#!/usr/bin/python
import os, sys
def w(s=3D''):
sys.stdout.write(s + "\n")
def pretty_list(l):
return ''.join(map(lambda x: " %s\n" % (x), l))
def pretty_hash(h):
return ''.join(map(lambda x: " %s: %s\n" % (x[0], x[1]), h.items()))
w("Content-type: text/plain")
w()
w("executable =3D %s" % (sys.executable))
w("path =3D\n%s" % (pretty_list(sys.path)))
w("environment =3D\n%s" % (pretty_hash(os.environ)))
sys.exit(0)
On Sun, Sep 6, 2015 at 9:44 AM, Pfueller, Tom <[email protected]>
wrote:
> Dear Michael,
>
>
>
> Thank you for quick answer.
>
>
>
> Regarding multiple Python installations:
>
> I think the answer is NO. There are no multiple pythons. I am using an
> older version of the LAMP stack provided by BITNAMI (https://bitnami.com/
> ).
>
> It was preconfigured and I did not change anything regarding subversion o=
r
> python or the connection of both.
>
>
>
> Regarding the mode:
>
> I tried to setup method B =E2=80=9CCGI mode in cgi-bin directory=E2=80=9D
>
> Here are the parts of my httpd.conf I have changed.
>
>
>
> <Directory "/home/bitnami/apps/viewvc-1.1.23">
>
> Order allow,deny
>
> Allow from all
>
> </Directory>
>
>
>
> <Directory "/opt/bitnami/apache2/cgi-bin">
>
> AddHandler cgi-script .cgi .pl
>
> AllowOverride None
>
> Options +ExecCGI
>
> Require all granted
>
> </Directory>
>
>
>
> Is there anything I can do to check where the problem is?
>
> Kind regards
>
>
>
> *Tom Pfueller*
>
> *From:* C. Michael Pilato [mailto:[email protected]]
> *Sent:* Saturday, September 5, 2015 2:39 AM
> *To:* Pfueller, Tom <[email protected]>
> *Cc:* [email protected]
> *Subject:* Re: [viewvc-users] Problems getting ViewVC work
>
>
>
> Tom,
>
>
>
> It's possible that ViewVC is being invoked with a different Python
> interpreter than the one you get when you manually run 'python' in a
> shell. Does your system have multiple versions of Python installed? Are
> you running ViewVC in CGI mode or via mod_wsgi or mod_python?
>
>
>
> -- Mike
>
>
>
> On Fri, Sep 4, 2015 at 12:33 AM, Pfueller, Tom <
> [email protected]> wrote:
>
> Hi,
>
>
>
> I tried to install ViewVC 1.1.23 to access our subversion repositories,
> but I am not able to display anything on the web browser.
>
>
>
> The attached screenshot shows the error message.
>
>
>
> Judging from the error message, the connection between python and
> subversion does not function proper, but I was able to perform the
> connectivity test in python as described in your installation manual.
>
>
>
> Let me also attach the conf file.
>
>
>
> Can you help me to identify the reason for this problem?
>
>
>
> Thank you in advance and kind regards.
>
>
>
> *Tom Pfueller*
>
>
>
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=3D4255&dsMessageId=3D3=
139230
To unsubscribe from this discussion, e-mail: [[email protected]=
is.org].
------=_Part_11077_2137344064.1443034956518
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">I'm coming up blank here, Tom.=C2=A0 I wonder, though,=
if you might learn something by temporarily replacing your viewvc.cgi scri=
pt with a simple CGI script that prints information about the environment.=
=C2=A0 Something like this, perhaps:<div><br></div><div><div><font face=3D"=
monospace, monospace">#!/usr/bin/python</font></div><div><font face=3D"mono=
space, monospace">import os, sys</font></div><div><font face=3D"monospace, =
monospace">def w(s=3D''):</font></div><div><font face=3D"monospace,=
monospace">=C2=A0 sys.stdout.write(s + "\n")</font></div><div><f=
ont face=3D"monospace, monospace">def pretty_list(l):</font></div><div><fon=
t face=3D"monospace, monospace">=C2=A0 return ''.join(map(lambda x:=
" =C2=A0 %s\n" % (x), l))</font></div><div><font face=3D"monospa=
ce, monospace">def pretty_hash(h):</font></div><div><font face=3D"monospace=
, monospace">=C2=A0 return ''.join(map(lambda x: " =C2=A0 %s: =
%s\n" % (x[0], x[1]), h.items()))</font></div><div><font face=3D"monos=
pace, monospace">w("Content-type: text/plain")</font></div><div><=
font face=3D"monospace, monospace">w()</font></div><div><font face=3D"monos=
pace, monospace">w("executable =3D %s" % (sys.executable))</font>=
</div><div><font face=3D"monospace, monospace">w("path =3D\n%s" %=
(pretty_list(sys.path)))</font></div><div><font face=3D"monospace, monospa=
ce">w("environment =3D\n%s" % (pretty_hash(os.environ)))</font></=
div><div><font face=3D"monospace, monospace">sys.exit(0)</font></div></div>=
<div><br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Sun, Sep 6, 2015 at 9:44 AM, Pfueller, Tom <span dir=3D"ltr"><<a =
href=3D"mailto:[email protected]" target=3D"_blank">Tom.Pfueller@=
dmh-global.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang=3D"JA" link=3D"blue" vlink=3D"purple">
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">Dear Michael,<u></u><u><=
/u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d"><u></u>=C2=A0<u></u></sp=
an></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">Thank you for quick answ=
er.
<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d"><u></u>=C2=A0<u></u></sp=
an></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">Regarding multiple Pytho=
n installations:<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">I think the answer is NO=
. There are no multiple pythons. I am using an older version of the LAMP st=
ack provided by BITNAMI (<a href=3D"https://bitnami.com/" target=3D"_blank"=
>https://bitnami.com/</a>).<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">It was preconfigured and=
I did not change anything regarding subversion or python or the connection=
of both.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d"><u></u>=C2=A0<u></u></sp=
an></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">Regarding the mode:<u></=
u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">I tried to setup method =
B =E2=80=9CCGI mode in cgi-bin directory=E2=80=9D<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">Here are the parts of my=
httpd.conf I have changed.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d"><u></u>=C2=A0<u></u></sp=
an></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d"><Directory "/hom=
e/bitnami/apps/viewvc-1.1.23"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">Order allow,deny<u></u><=
u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">Allow from all<u></u><u>=
</u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d"></Directory><u></u=
><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d"><u></u>=C2=A0<u></u></sp=
an></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d"><Directory "/opt=
/bitnami/apache2/cgi-bin"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">=C2=A0=C2=A0=C2=A0 AddHa=
ndler cgi-script .cgi .pl<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">=C2=A0=C2=A0=C2=A0 Allow=
Override None<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">=C2=A0=C2=A0=C2=A0 Optio=
ns +ExecCGI<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">=C2=A0=C2=A0=C2=A0 Requi=
re all granted<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d"></Directory><u></u=
><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d"><u></u>=C2=A0<u></u></sp=
an></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">Is there anything I can =
do to check where the problem is?<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d">Kind regards<u></u><u></=
u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-=
family:"Arial",sans-serif;color:#1f497d"><u></u>=C2=A0<u></u></sp=
an></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt;text-align:justify;tex=
t-justify:inter-ideograph">
<b><span lang=3D"NL" style=3D"font-size:10.5pt;font-family:"Gill Sans =
MT",sans-serif;color:#19227a">Tom Pfueller</span></b><span lang=3D"EN-=
US" style=3D"font-size:10.0pt;font-family:"Arial",sans-serif;colo=
r:#1f497d"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:11.0pt;fo=
nt-family:"Calibri",sans-serif">From:</span></b><span lang=3D"EN-=
US" style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif"> =
C. Michael Pilato [mailto:<a href=3D"mailto:[email protected]" target=3D"=
_blank">[email protected]</a>]
<br>
<b>Sent:</b> Saturday, September 5, 2015 2:39 AM<br>
<b>To:</b> Pfueller, Tom <<a href=3D"mailto:[email protected]"=
target=3D"_blank">[email protected]</a>><br>
<b>Cc:</b> <a href=3D"mailto:[email protected]" target=3D"_blank">use=
[email protected]</a><br>
<b>Subject:</b> Re: [viewvc-users] Problems getting ViewVC work<u></u><u></=
u></span></p><div><div class=3D"h5">
<p class=3D"MsoNormal"><span lang=3D"EN-US"><u></u>=C2=A0<u></u></span></p>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Tom,<u></u><u></u></span></p>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><u></u>=C2=A0<u></u></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US">It's possible that ViewVC i=
s being invoked with a different Python interpreter than the one you get wh=
en you manually run 'python' in a shell.=C2=A0 Does your system hav=
e multiple versions of Python installed?=C2=A0 Are you running
ViewVC in CGI mode or via mod_wsgi or mod_python?<u></u><u></u></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><u></u>=C2=A0<u></u></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US">-- Mike<u></u><u></u></span></p=
>
</div>
</div>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><u></u>=C2=A0<u></u></span></p>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US">On Fri, Sep 4, 2015 at 12:33 AM=
, Pfueller, Tom <<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>> wrote:<u></u><u></u></span>=
</p>
<blockquote style=3D"border:none;border-left:solid #cccccc 1.0pt;padding:0m=
m 0mm 0mm 6.0pt;margin-left:4.8pt;margin-right:0mm">
<div>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">Hi,<=
/span><span lang=3D"EN-US"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">=C2=
=A0</span><span lang=3D"EN-US"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">I tr=
ied to install ViewVC 1.1.23 to access our subversion repositories, but I a=
m not able to display anything on the web browser.</span><span lang=3D"EN-U=
S"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">=C2=
=A0</span><span lang=3D"EN-US"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">The =
attached screenshot shows the error message.</span><span lang=3D"EN-US"><u>=
</u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">=C2=
=A0</span><span lang=3D"EN-US"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">Judg=
ing from the error message, the connection between python and subversion do=
es not function proper, but I was able to perform the
connectivity test in python as described in your installation manual.</spa=
n><span lang=3D"EN-US"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">=C2=
=A0</span><span lang=3D"EN-US"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">Let =
me also attach the conf file.</span><span lang=3D"EN-US"><u></u><u></u></sp=
an></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">=C2=
=A0</span><span lang=3D"EN-US"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">Can =
you help me to identify the reason for this problem?</span><span lang=3D"EN=
-US"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">=C2=
=A0</span><span lang=3D"EN-US"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt">Than=
k you in advance and kind regards.</span><span lang=3D"EN-US"><u></u><u></u=
></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:10.0pt;color=
:#888888">=C2=A0</span><span lang=3D"EN-US" style=3D"color:#888888"><u></u>=
<u></u></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><b><span lang=3D"NL" =
style=3D"font-family:"Gill Sans MT",sans-serif;color:#19227a">Tom=
Pfueller</span></b><span lang=3D"EN-US" style=3D"color:#888888"><u></u><u>=
</u></span></p>
</div>
</div>
</blockquote>
</div>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><u></u>=C2=A0<u></u></span></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>
------=_Part_11077_2137344064.1443034956518--