Page MenuHomePhabricator

Problem with Mercurial 3.1.2
Closed, InvalidPublic

Description

Hi,

I'm testing phabricator for my private projects but i have a problem with phabricator and mercurial.

I have installed phabricator on my dedicated server (on debian stable). I use Mercurial 3.1.2-2 from backport. I can clone the project from phabricator, but on my local repo (debian testing with Mercurial 3.1.2-2 too), i don't bookmarks.

Next if i want to pull new change from the repo i have the following error :

using https://projects.shadoware.org/diffusion/L/liste-de-diffusion/
sending capabilities command
projects.shadoware.org certificate matched fingerprint 9d:74:47:e7:b3:a9:a7:18:13:32:b4:b7:e5:1f:8b:b5:6c:58:c3:7e
http authorization required for https://projects.shadoware.org/diffusion/L/liste-de-diffusion/
realm: Phabricator Repositories
user: xxxxxxx
password: 
http auth: user xxxxxxxx, password *******
projects.shadoware.org certificate matched fingerprint 9d:74:47:e7:b3:a9:a7:18:13:32:b4:b7:e5:1f:8b:b5:6c:58:c3:7e
pulling from https://projects.shadoware.org/diffusion/L/liste-de-diffusion/
preparing listkeys for "bookmarks"
sending listkeys command
query 1; heads
sending batch command
searching for changes
all remote heads known locally
aucun changement trouvé
preparing listkeys for "phases"
sending listkeys command
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 138, in _runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 839, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 600, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 196, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/color.py", line 433, in colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 930, in _runcommand
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 901, in checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 836, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 151, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/mq.py", line 3391, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 151, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/rebase.py", line 941, in pullrebase
    orig(ui, repo, *args, **opts)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 4700, in pull
    modheads = repo.pull(other, heads=revs, force=opts.get('force'))
  File "/usr/lib/python2.7/dist-packages/mercurial/localrepo.py", line 1578, in pull
    return exchange.pull (self, remote, heads, force)
  File "/usr/lib/python2.7/dist-packages/mercurial/exchange.py", line 568, in pull
    _pullphase(pullop)
  File "/usr/lib/python2.7/dist-packages/mercurial/exchange.py", line 665, in _pullphase
    _pullapplyphases(pullop, remotephases)
  File "/usr/lib/python2.7/dist-packages/mercurial/exchange.py", line 675, in _pullapplyphases
    remotephases)
  File "/usr/lib/python2.7/dist-packages/mercurial/phases.py", line 365, in analyzeremotephases
    node = bin(nhex)
TypeError: Odd-length string
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.8 (default, Oct 18 2014, 12:50:18) [GCC 4.9.1]
** Mercurial version 3.1.2, système de gestion de sources distribué
** Extensions chargées : color, strip, mq, rebase
Traceback (most recent call last):
  File "/usr/bin/hg", line 43, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 69, in dispatch
    ret = _runcatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 138, in _runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 839, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 600, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 196, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/color.py", line 433, in colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 930, in _runcommand
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 901, in checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 836, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 151, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/mq.py", line 3391, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 151, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/rebase.py", line 941, in pullrebase
    orig(ui, repo, *args, **opts)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 4700, in pull
    modheads = repo.pull(other, heads=revs, force=opts.get('force'))
  File "/usr/lib/python2.7/dist-packages/mercurial/localrepo.py", line 1578, in pull
    return exchange.pull (self, remote, heads, force)
  File "/usr/lib/python2.7/dist-packages/mercurial/exchange.py", line 568, in pull
    _pullphase(pullop)
  File "/usr/lib/python2.7/dist-packages/mercurial/exchange.py", line 665, in _pullphase
    _pullapplyphases(pullop, remotephases)
  File "/usr/lib/python2.7/dist-packages/mercurial/exchange.py", line 675, in _pullapplyphases
    remotephases)
  File "/usr/lib/python2.7/dist-packages/mercurial/phases.py", line 365, in analyzeremotephases
    node = bin(nhex)
TypeError: Odd-length string

I don't have any special extention activated on my repository.

I have also try to push modification with bookmark (hg push -B mybookmark) and i have the following error:

pushing to https://phoenix@projects.shadoware.org/diffusion/L/liste-de-diffusion/
using https://projects.shadoware.org/diffusion/L/liste-de-diffusion/
http auth: user phoenix, password not set
sending capabilities command
projects.shadoware.org certificate matched fingerprint 9d:74:47:e7:b3:a9:a7:18:13:32:b4:b7:e5:1f:8b:b5:6c:58:c3:7e
http authorization required for https://projects.shadoware.org/diffusion/L/liste-de-diffusion/
realm: Phabricator Repositories
user: xxxxxx
password: 
http auth: user xxxxxx, password *******
projects.shadoware.org certificate matched fingerprint 9d:74:47:e7:b3:a9:a7:18:13:32:b4:b7:e5:1f:8b:b5:6c:58:c3:7e
query 1; heads
sending batch command
searching for changes
all remote heads known locally
aucun changement trouvé
preparing listkeys for "phases"
sending listkeys command
try to push obsolete markers to remote
checking for updated bookmarks
preparing listkeys for "bookmarks"
sending listkeys command
preparing listkeys for "bookmarks"
sending listkeys command
exporting bookmark mybookmark
preparing pushkey for "bookmarks:mybookmark"
sending pushkey command
sending 0 bytes
updating bookmark mybookmark failed!

I have tested using my personnal account with ssh or by using hg web and i have no problem with this two method, i only have the problem when i'm using phabricator.

I have search in the daemon log file, in the log file of php5-fpm, and can't found any error.

How can i search where the problem come from ?

Thanks in advance.

Event Timeline

phoenix741 raised the priority of this task from to Needs Triage.
phoenix741 updated the task description. (Show Details)
phoenix741 added a project: Mercurial.
phoenix741 added a subscriber: phoenix741.
epriestley added a subscriber: epriestley.

We can't reproduce this, and can't fix issues we can't reproduce.