2010-01-23 9 views
5

मैं एक Mercurial एससी सर्वर स्थापित करना चाहता हूं और यहां मिले निर्देशों का पालन कर रहा हूं: http // stackoverflow.com/प्रश्न/818571/कैसे-टू-सेटअप-Mercurial-and- hgwebdir-on-iisविंडोज सर्वर 2008 पर Mercurial स्थापित करने में त्रुटि

मैंने अपनी सभी सेटिंग्स को कई बार चेक किया है और कॉन्फ़िगरेशन को पूरा करने के बाद यह त्रुटि पारित नहीं कर पाती है। कोई सलाह सहायक होगी। धन्यवाद।

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. 

उत्तर

6

बहुत लंबी लाइन में ट्रैस बैक का कहना है कि तेज अपने PYTHON_PATH में नहीं मिला है। HgWebDirStopByStep पृष्ठ से चरण 5.1 में देखा गया hgwebdir.cgi संपादन करने का प्रयास करें।

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

कहाँ जाहिर है, पथ तत्व यह है कि डाला जा रहा है के संदर्भ के लिए जहाँ कहीं भी अपने तेज पुस्तकालय फ़ाइलें हैं निकाला जाता है।

+0

मेरे पास Mercurail 1.4.2 स्थापित है और इसे मेरी कमांड लाइन से चला सकता है। मेरे पास आईआईएस में पंजीकृत सीजीआई और आभासी निर्देशिका है और निर्देशों का पालन किया है ... कोई अन्य सुझाव? – amadib

+0

मैंने .cgi में Mercurial लाइब्रेरी फ़ाइलों को स्पष्ट रूप से पथ जोड़ने के लिए उत्तर समायोजित किया। –

+0

धन्यवाद। यह तय है :) – amadib

संबंधित मुद्दे