2010-01-23 13 views
5

Quiero configurar un servidor Mercurial SC y he seguido las instrucciones que se encuentran aquí: http // stackoverflow.com/questions/818571/how-to-setup-mercurial-and- hgwebdir-on-iisError al configurar Mercurial en Windows Server 2008

He comprobado todas mis configuraciones varias veces y parece que no se puede pasar este error después de completar la configuración. Cualquier consejo sería útil. Gracias.

Server Error in Application "DEFAULT WEB SITE/HG"Internet Information Services 7.5 

Error Summary 
HTTP Error 502.2 - Bad Gateway 
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "Traceback (most recent call last): File "C:\inetpub\hgcgi\hgwebdir.cgi", line 12, in <module> from mercurial import demandimport; demandimport.enable() ImportError: No module named mercurial ". Detailed Error InformationModule CgiModule 
Notification ExecuteRequestHandler 
Handler Python 2.5 
**Error Code 0x00000001** 
Requested URL http://localhost:80/hg/hgwebdir.cgi 
Physical Path C:\inetpub\hgcgi\hgwebdir.cgi 
Logon Method Anonymous 
Logon User Anonymous 
Most likely causes: 
The CGI process was shut down or terminated unexpectedly before it finished processing the request. 
The CGI process has a flaw and does not return a complete set of HTTP headers. 
Things you can try: 
Check the event logs on the system to see whether the CGI process is shutting down unexpectedly. 
Troubleshoot the CGI application to determine why it is not sending a complete set of HTTP headers. 

Respuesta

6

El rastreo, en línea muy larga dice que mercurial no se encuentra en su PYTHON_PATH. Intente hacer la edición hgwebdir.cgi como se ve en el paso 5.1 de la página HgWebDirStopByStep.

# adjust python path if not a system-wide install: 
import sys 
sys.path.insert(0, "c:/dev/Mercurial/lib") 

donde, por supuesto, el elemento de la ruta que está siendo insertado se ajusta para hacer referencia a dondequiera que sus archivos de la biblioteca son mercuriales.

+0

Tengo Mercurail 1.4.2 instalado y puedo ejecutarlo desde mi línea de comandos. Tengo el cgi y el directorio virtual registrados en IIS y seguí las instrucciones a fondo ... ¿Alguna otra sugerencia? – amadib

+0

Ajusté la respuesta para incluir explícitamente agregar la ruta a los archivos de la biblioteca mercurial a .cgi. –

+0

Gracias. Eso lo solucionó :) – amadib

Cuestiones relacionadas