[Bug 6255] New: Internal server error (HTTP 500) when cloning from "hg serve"

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Thu Jan 16 04:36:51 EST 2020


https://bz.mercurial-scm.org/show_bug.cgi?id=6255

            Bug ID: 6255
           Summary: Internal server error (HTTP 500) when cloning from "hg
                    serve"
           Product: Mercurial
           Version: 4.5.3
          Hardware: PC
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: dheinric at opentext.com
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

After updating Mercurial on Windows machines to the same version as our main
server (4.5.3, as delivered with Ubuntu 18.04), we see lots of "Internal Server
Errors" when cloning from a repository that is served via "hg serve" from
another Windows machine.

Background: We have a Jenkins setup where one Job (on a Windows machine)
clones/pulls from the main Linux repo server (Apache with hgweb), merges a
branch and starts a local server using "hg serve" from which subjobs can then
clone the merge result to build/test it on different platforms. Only if all
those subjobs finish w/o failure the merge result will be pushed back to the
main server.

Now after said update that local server on Windows doesn't work reliably
anymore. We get an "Internal Server Error" when cloning every now and then,
with the following stack trace in the error log:

10.88.2.40 - - [15/Jan/2020 13:51:56] Exception happened during processing
request '/?cmd=stream_out':
Traceback (most recent call last):
  File "mercurial\hgweb\server.pyo", line 101, in do_POST
  File "mercurial\hgweb\server.pyo", line 94, in do_write
  File "mercurial\hgweb\server.pyo", line 181, in do_hgweb
  File "mercurial\hgweb\hgweb_mod.pyo", line 318, in run_wsgi
  File "mercurial\streamclone.pyo", line 255, in generatev1wireproto
  File "mercurial\streamclone.pyo", line 209, in generatev1
  File "mercurial\localrepo.pyo", line 1628, in lock
  File "mercurial\localrepo.pyo", line 1599, in _lock
  File "mercurial\lock.pyo", line 79, in trylock
  File "mercurial\lock.pyo", line 59, in printwarning
  File "mercurial\ui.pyo", line 1381, in warn
  File "mercurial\ui.pyo", line 940, in write_err
  File "mercurial\ui.pyo", line 955, in _write_err
StdioError: [Errno 22] Invalid argument

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list