Whenever I try to push to a Mercurial repository in Phabricator via SSH, the remote end aborts the transaction:
# hg push --debug Übertrage nach ssh://phab@... running ssh phab@... 'hg -R diffusion/... serve --stdio' sending hello command sending between command remote: 145 remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 remote: 1 query 1; heads sending batch command Suche nach Änderungen all remote heads known locally preparing listkeys for "phases" sending listkeys command received listkey for "phases": 15 bytes checking for updated bookmarks preparing listkeys for "bookmarks" sending listkeys command received listkey for "bookmarks": 0 bytes sending branchmap command sending branchmap command preparing listkeys for "bookmarks" sending listkeys command received listkey for "bookmarks": 0 bytes 10 Änderungssätze gefunden list of changesets: ... sending unbundle command Gegenseite: adding changesets Gegenseite: adding manifests Gegenseite: adding file changes Gegenseite: transaction abort! Gegenseite: rollback completed Gegenseite: abort: stream ended unexpectedly (got 13645 bytes, expected 363789) Gegenseite: Exception: Writing to a closed pipe!
Pushing to a freshly created repository works without any issues.
Is there any way I can figure out why Phabricator/Mercurial aborts the transaction?
sshd logs:
sshd[5199]: Accepted publickey for phab from ... port ... ssh2: ECDSA ... sudo[5212]: phab : TTY=unknown ; PWD=/home/phab ; USER=phd ; COMMAND=/usr/bin/hg -R /var/repo/.../ serve --stdio sudo[5212]: pam_unix(sudo:session): session opened for user phd by (uid=0) sudo[5212]: pam_unix(sudo:session): session closed for user phd sshd[5205]: Received disconnect from ...: 11: disconnected by user
The issue happens with Mercurial 3.6.3 and 3.7.1 locally and 3.1.2 (Debian Jessie) on the Phabricator machine.
I am running current stable Phabricator:
phabricator d51001a4d208d4ad5b30e353e99f3f9d69c4a57b (Tue, Feb 16) arcanist ed476cf8489c4bf41b7a0075f15d40820d640fe4 (Sat, Feb 13) phutil c0cf996fe3119d6c158586b2a959e57401daf212 (Tue, Feb 9) libphremoteuser 53b5b5064ff787802a4180ca47b5d135d937a265 (Aug 19 2015) sprint 1ddd5084a80d6a2aa239670c1a6557f800eb553d (Sun, Feb 14)
With minor and likely unrelated patches mostly to the server default language and login, but also adding a few images:
https://github.com/phacility/libphutil/compare/stable...uhd-urz:urz/stable
https://github.com/phacility/phabricator/compare/stable...uhd-urz:urz/stable