hgweb Odd-string length error
Matt Mackall
mpm at selenic.com
Thu Jul 10 17:20:47 UTC 2014
On Thu, 2014-07-10 at 10:59 -0400, Jérôme Godbout wrote:
> I tried without the proxy by using the document root directly pointing on
> cgi-bin
> DocumentRoot "${SRVROOT}/cgi-bin/"
> <Directory "${SRVROOT}/cgi-bin/">
> Require all granted
> Options ExecCGI FollowSymLinks
> AddHandler cgi-script .cgi
> </Directory>
>
> Changed the baseurl and staticurl into the web section of hgweb.config:
> baseurl = /hgweb.cgi/
> staticurl = /hgweb.cgi/static/
>
> Accessing website with web browser
> http://myserver/hgweb.cgi/ see the list ok
> http://myserver/hgweb.cgi/MyRepos see the repos info ok
>
> I still can browse the content with the web browser, but still got the
> Odd-length string error when cloning repos. (Apache 2.4, Python 2.7.8,
> Mercurial 3.0.2 python). Tested with 32 and 64 bits of Python/Apache. I
> also created a new repos to serve (making sure a comment encoding was not a
> problems), only have a single commit from repos default encoding (cp1252 on
> Windows).
>
> This is bare bone hgweb setup, cannot go with less to serve it. Is the .cgi
> script still supported??? should I move to the .fcgi directly? would it
> make any difference?
The CGI script is fine.
Turn off stack traces: the client is choking on the trace and the server
is not logging the error because it's sending it to the client. Then
maybe you'll get to actually see the error.
If that doesn't work, use wireshark to capture the connection.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list