hashdist / hashstack

Collection of software profiles for HashDist
https://hashdist.github.io/
52 stars 60 forks source link

hg clone https://... fails #170

Open certik opened 10 years ago

certik commented 10 years ago

After #169 is in, it doesn't work on https:

ondrej@kittiwake:~/repos$ hg clone https://ancho.lanl.gov/spectral/hg/proposals --traceback
Traceback (most recent call last):
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/dispatch.py", line 134, in _runcatch
    return _dispatch(req)
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/dispatch.py", line 806, in _dispatch
    cmdpats, cmdoptions)
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/dispatch.py", line 586, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/dispatch.py", line 897, in _runcommand
    return checkargs()
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/dispatch.py", line 868, in checkargs
    return cmdfunc()
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/dispatch.py", line 803, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/util.py", line 511, in check
    return func(*args, **kwargs)
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/commands.py", line 1310, in clone
    branch=opts.get('branch'))
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/hg.py", line 270, in clone
    srcpeer = peer(ui, peeropts, source)
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/hg.py", line 123, in peer
    return _peerorrepo(rui, path, create).peer()
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/hg.py", line 103, in _peerorrepo
    obj = _peerlookup(path).instance(ui, path, create)
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/httppeer.py", line 238, in instance
    inst._fetchcaps()
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/httppeer.py", line 57, in _fetchcaps
    self.caps = set(self._call('capabilities').split())
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/httppeer.py", line 171, in _call
    fp = self._callstream(cmd, **args)
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/httppeer.py", line 118, in _callstream
    resp = self.urlopener.open(req)
  File "/tmp/bld2/profile/77ssl44j52ym/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/tmp/bld2/profile/77ssl44j52ym/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/tmp/bld2/profile/77ssl44j52ym/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/url.py", line 372, in https_open
    return self.do_open(self._makeconnection, req)
  File "/tmp/bld2/mercurial/owmt24wyplrp/lib/python2.7/site-packages/mercurial/keepalive.py", line 257, in do_open
    raise urllib2.URLError(err)
URLError: <urlopen error [Errno 1] _ssl.c:507: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number>
abort: error: _ssl.c:507: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

This is the exact same problem: http://stackoverflow.com/questions/21477683/mercurial-https-clone-abort-error-wrong-version-number

It looks like some issue in Python's SSL libraries.

jcftang commented 10 years ago

Just to revisit this, the stackoverflow problem appears to relate to python+openssl on OSX, it might been related to https://github.com/hashdist/hashstack/issues/329 where openssl isn't being built correctly if it was a dependency in hashstack or the version of curl was not linked to openssl correctly.

Did you ever figure out what was wrong?

certik commented 10 years ago

I use linux. I have never figured out what is wrong. It's not a big deal, I don't use Mercurial unless I have to, but let's keep this open in case somebody else hits the same problem.