trouble configuring Mercurial on 2019OS server

Matt Millard MMillard at trinisys.com
Wed Jan 13 14:41:20 UTC 2021


We were able to resolve the issues by downgrading to python 2.7

From: Matt Harbison <mharbison72 at gmail.com>
Sent: Tuesday, January 12, 2021 10:39 PM
To: Augie Fackler <raf at durin42.com>
Cc: Matt Millard <MMillard at trinisys.com>; mercurial at mercurial-scm.org
Subject: Re: trouble configuring Mercurial on 2019OS server


On Mon, Jan 11, 2021 at 2:36 PM Augie Fackler <raf at durin42.com<mailto:raf at durin42.com>> wrote:
(+mharbison, who might have seen something like this ever. I've got nothing.)

I've never tried to run a server on Windows, and I don't have server 2019 handy to try this.  Is this something that can be reproduced on Windows 10?  Have you tried python 2 (I know it's EOL, but that would maybe help narrow down if this is a Windows specific py3 issue).

On Jan 2, 2021, at 14:40, Matt Millard <MMillard at trinisys.com<mailto:MMillard at trinisys.com>> wrote:

3.9.7 was a mistype, we have tried 3.9.1 and 3.8.7
Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: mmillard at trinisys.com<mailto:mmillard at trinisys.com> <mmillard at trinisys.com<mailto:mmillard at trinisys.com>>
Sent: Saturday, January 2, 2021 1:37:11 PM
To: Augie Fackler <raf at durin42.com<mailto:raf at durin42.com>>
Cc: mercurial at mercurial-scm.org<mailto:mercurial at mercurial-scm.org> <mercurial at mercurial-scm.org<mailto:mercurial at mercurial-scm.org>>
Subject: Re: trouble configuring Mercurial on 2019OS server

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\wwwhgweb\hgweb.cgi", line 20, in <module> application = hgweb(config.encode('utf-8')) File "C:\Program Files\Python39\lib\site-packages\mercurial\hgweb\__init__.py", line 50, in hgweb return hgwebdir_mod.hgwebdir(config, baseui=baseui) File "C:\Program Files\Python39\lib\importlib\util.py<http://util.py/>", line 245, in __getattribute__ self.__spec__.loader.exec_module(self) File "<frozen importlib._bootstrap_external>", line 790, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "C:\Program Files\Python39\lib\site-packages\mercurial\hgweb\hgwebdir_mod.py<http://hgwebdir_mod.py/>", line 17, in <module> from .common import ( ImportError: cannot import name 'ErrorResponse' from 'mercurial.hgweb.common' (C:\Program Files\Python39\lib\site-packages\mercurial\hgweb\common.py<http://common.py/>) ".
Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: Augie Fackler <raf at durin42.com<mailto:raf at durin42.com>>
Sent: Saturday, January 2, 2021 1:12:01 PM
To: Matt Millard <MMillard at trinisys.com<mailto:MMillard at trinisys.com>>
Cc: mercurial at mercurial-scm.org<mailto:mercurial at mercurial-scm.org> <mercurial at mercurial-scm.org<mailto:mercurial at mercurial-scm.org>>
Subject: Re: trouble configuring Mercurial on 2019OS server

Given that Python 3.9.7 isn't released (3.9.1 is the most recent), what version of Python do you actually have in play here?

Can we get a copy/paste of the text of that traceback, instead of a screenshot? it's just too hard to read in the screenshot.

Thanks!

On Sat, Jan 2, 2021 at 1:22 PM Matt Millard <MMillard at trinisys.com<mailto:MMillard at trinisys.com>> wrote:

Hello!



I am working with our developers to migrate our Mercurial application from a 2008OS server to a 2019OS server. We are working through the configuration steps, but are having some issues. Any help you can offer would be appreciated.



We are using this guide: https://www.mercurial-scm.org/wiki/HgWebInIisOnWindows



We are on Step 2, “Open hgweb.cgi and change the value of the config variable to point to the hgweb.config file you created earlier:”



We can not get the hgweb.cgi to populate in multiple browsers locally on the server.



Test.cgi and test.html will populate.



Python version installed: 3.9.7

Mercurial version installed : 5.6.1



<image005.png>



<image006.gif><http://www.trinisys.com/>




Matt Millard

Network & System Administrator

<image007.gif><https://twitter.com/Trinisys>  <image008.gif><https://www.facebook.com/Trinisys>  <image009.gif><https://www.linkedin.com/company/trinisys>





Email:


mmillard at trinisys.com <mailto:mmillard at trinisys.com>





Office:


629.702.6270



NTC 2019 Technology Company of the Year.
_______________________________________________
Mercurial mailing list
Mercurial at mercurial-scm.org<mailto:Mercurial at mercurial-scm.org>
https://www.mercurial-scm.org/mailman/listinfo/mercurial

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20210113/f7f4c337/attachment-0002.html>


More information about the Mercurial mailing list