Enabling verbose to on in the /etc/mercurial/hgrc file breaks the cloning functionality via the http interface. I am running the hgwebdir.cgi script on Opensuse 11 with Apache 2.2.6, Python 2.5.2 and mercurial 1.0.1. Viewing the repository through a browser works fine. Cloning any repo (hg clone http://repo.domain.com/test) leads to following error of mercurial: abort: HTTP Error 500: Internal Server Error The apache logs following message: [Sat Aug 02 04:05:09 2008] [error] [client 192.168.21.45] malformed header from script. Bad header=1 changesets found: hgwebdir.cgi The virtual host config: <VirtualHost *:80> ServerName repo-browser.domain.de ServerAlias repo-browser.domain ServerAdmin webmaster@domain.de DocumentRoot /www/repository-browser/htdocs ErrorLog /www/repository-browser/logs/error.log RewriteEngine on RewriteRule (.*) /www/repository-browser/htdocs/hgwebdir.cgi$1 <Directory "/www/repository-browser/htdocs"> Options +ExecCGI +FollowSymLinks </Directory> </VirtualHost> And the used hgrc config (hgwebdir.cgi also points to this file): [ui] username = "Servername" <om@viazenetti.de> #uncommenting following line breaks the clonining functionality via the http interface #verbose = true slash = true [extensions] mq= gpg= hgk= acl= purge= fetch= transplant= [email] from = "Repository Managment" <om@viazenetti.de> method = /usr/sbin/sendmail -t -i [web] allow_archive = bz2 gz zip contact = "Ota Mares" <om@viazenetti.de> description = No description given encoding = UTF-8 stripes = 1 style = gitweb baseurl = [paths] test = /www/_mercurial-test-repo/
Hmm, that's bad. I should look into this. Though an easy workaround should be to just disable verbose in the server hgrc.
Sure, its no big issue turning verbose off, if you know the problem ;) I, for one, searched about two hours until i found the cause and allmost went crazy.
Isn't that related to the redirection of stdin/stderr ?
Yes. stderr, probably.
I'm going to make this the canonical bug for problems in this class.
Ah, issue1095 is better for this. Superseding.
--- Bug imported by bugzilla@serpentine.com 2012-05-12 08:52 EDT --- This bug was previously known as _bug_ 1250 at http://mercurial.selenic.com/bts/issue1250