Issue2066

Title hg serve on OS X fails the second time
Priority bug Status resolved
Superseder Nosy List amw, danchr, djc, kiilerix, lcantey, tonfa
Assigned To Topics

Created on 2010-03-01.13:54:01 by djc, last changed 2012-02-01.00:11:15 by mpm.

Messages
msg12013 (view) Author: djc Date: 2010-03-11.07:30:03
Heh, that's useful. Thanks!
msg12009 (view) Author: amw Date: 2010-03-11.02:07:57
I've had this happen too.  There's something wrong with the zeroconf
extension.  If you turn that off the server runs fine.
msg11950 (view) Author: lcantey Date: 2010-03-08.00:45:29
As a note, I don't see this with an installed 1.5 or 1.4.3 run from a local 
build.
msg11903 (view) Author: tonfa Date: 2010-03-01.14:36:49
Can you change server.py to raise the initial exception?
msg11900 (view) Author: djc Date: 2010-03-01.13:54:17
This was with 1.4.3, by the way.
msg11899 (view) Author: djc Date: 2010-03-01.13:54:00
- hg serve
- SIGINT it after a few requests
- hg serve again

djc@djc-mbp jython-hg $ hg serve --traceback
Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 46,
in _runcatch
    return _dispatch(ui, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 454,
in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 324,
in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 505,
in _runcommand
    return checkargs()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 459,
in checkargs
    return cmdfunc()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 453,
in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 386, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/commands.py", line 2830,
in serve
    cmdutil.service(opts, initfn=service.init, runfn=service.run)
  File "/Library/Python/2.6/site-packages/mercurial/cmdutil.py", line 582,
in service
    initfn()
  File "/Library/Python/2.6/site-packages/mercurial/commands.py", line 2800,
in init
    self.httpd = server.create_server(baseui, repo)
  File "/Library/Python/2.6/site-packages/mercurial/hgweb/server.py", line
298, in create_server
    % (address, port, inst.args[1]))
Abort: cannot start server at ':8000': Unknown host
History
Date User Action Args
2012-02-01 00:11:15mpmsetstatus: chatting -> resolved
nosy: tonfa, lcantey, kiilerix, djc, danchr, amw
2010-03-11 07:30:03djcsetnosy: tonfa, lcantey, kiilerix, djc, danchr, amw
messages: + msg12013
2010-03-11 02:07:57amwsetnosy: + amw
messages: + msg12009
2010-03-08 00:45:29lcanteysetnosy: + lcantey
messages: + msg11950
2010-03-01 20:09:45kiilerixsetnosy: + kiilerix
2010-03-01 14:49:00danchrsetnosy: + danchr
2010-03-01 14:36:49tonfasetmessages: + msg11903
2010-03-01 14:35:27tonfasetnosy: + tonfa
2010-03-01 13:54:17djcsetstatus: unread -> chatting
messages: + msg11900
2010-03-01 13:54:01djccreate