It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Why would executing "hg push" be failing as shown below?

My hgrc file contains the following information:

default.prefix =
default.username = stephen-paul-chappell
default.password = ******************************
default.schemes = http https
proxy.prefix =
proxy.username = 116042
proxy.password = ********
proxy.schemes = http https
host =
user = 116042
passwd = ********
default =
username = Stephen Chappell <>

The information that shows up on standard output is as follows:

C:\Users\Zero\PycharmProjects\praecipuas-tournament>hg push --verbose --debug --traceback
pushing to
proxying through
sending capabilities command
using auth.default.* for authentication certificate successfully verified
query 1; heads
sending batch command
using auth.default.* for authentication
searching for changes
taking quick initial sample
searching: 2 queries
query 2; still undecided: 3, sample size is: 3
sending known command
using auth.default.* for authentication
2 total queries
preparing listkeys for "phases"
sending listkeys command
using auth.default.* for authentication
checking for updated bookmarks
preparing listkeys for "bookmarks"
sending listkeys command
using auth.default.* for authentication
4 changesets found
list of changesets:
bundling: 1/4 changesets (25.00%)
bundling: 2/4 changesets (50.00%)
bundling: 3/4 changesets (75.00%)
bundling: 4/4 changesets (100.00%)
bundling: 1/4 manifests (25.00%)
bundling: 2/4 manifests (50.00%)
bundling: 3/4 manifests (75.00%)
bundling: 4/4 manifests (100.00%)
bundling: source/ 1/19 files (5.26%)
bundling: source/controller/ 2/19 files (10.53%)
bundling: source/controller/ 3/19 files (15.79%)
bundling: source/ 4/19 files (21.05%)
bundling: source/model/ 5/19 files (26.32%)
bundling: source/model/ 6/19 files (31.58%)
bundling: source/model/ 7/19 files (36.84%)
bundling: source/model/ 8/19 files (42.11%)
bundling: source/model/ 9/19 files (47.37%)
bundling: source/model/ 10/19 files (52.63%)
bundling: source/model/ 11/19 files (57.89%)
bundling: source/model/ 12/19 files (63.16%)
bundling: source/model/ 13/19 files (68.42%)
bundling: source/model/ 14/19 files (73.68%)
bundling: source/model/ 15/19 files (78.95%)
bundling: source/model/ 16/19 files (84.21%)
bundling: source/model/ 17/19 files (89.47%)
bundling: source/view/ 18/19 files (94.74%)
bundling: source/view/ 19/19 files (100.00%)
sending unbundle command
sending 7540 bytes
using auth.default.* for authentication
sending: 7/14 kb (50.00%)
sending: 7/14 kb (50.00%)
using auth.default.* for authentication
http auth: user stephen-paul-chappell, password ******************************
using auth.default.* for authentication certificate successfully verified
sending: 14/14 kb (100.00%)
sending: 14/14 kb (100.00%)
Traceback (most recent call last):
File "mercurial\dispatch.pyo", line 160, in _runcatch
File "mercurial\dispatch.pyo", line 885, in _dispatch
File "mercurial\dispatch.pyo", line 646, in runcommand
File "mercurial\dispatch.pyo", line 976, in _runcommand
File "mercurial\dispatch.pyo", line 947, in checkargs
File "mercurial\dispatch.pyo", line 882, in <lambda>
File "mercurial\util.pyo", line 716, in check
File "mercurial\commands.pyo", line 5228, in push
File "mercurial\exchange.pyo", line 236, in push
File "mercurial\exchange.pyo", line 664, in _pushchangeset
File "mercurial\wireproto.pyo", line 391, in unbundle
File "mercurial\httppeer.pyo", line 202, in _callpush
File "mercurial\httppeer.pyo", line 172, in _call
File "mercurial\httppeer.pyo", line 119, in _callstream
File "urllib2.pyo", line 437, in open
File "urllib2.pyo", line 550, in http_response
File "urllib2.pyo", line 469, in error
File "urllib2.pyo", line 409, in _call_chain
File "urllib2.pyo", line 911, in http_error_401
File "mercurial\url.pyo", line 453, in http_error_auth_reqed
File "urllib2.pyo", line 889, in http_error_auth_reqed
File "mercurial\url.pyo", line 464, in retry_http_basic_auth
File "urllib2.pyo", line 431, in open
File "urllib2.pyo", line 449, in _open
File "urllib2.pyo", line 409, in _call_chain
File "mercurial\url.pyo", line 372, in https_open
File "mercurial\keepalive.pyo", line 255, in do_open
URLError: <urlopen error ''>
abort: error: ''

I am not sure what is going wrong exactly or how to fix the problem.

1 answer

0 votes
Jesse Yowell Atlassian Team Jun 29, 2015

Hi Stephen,

Thanks for this information! In a previous support ticket you explained that prefixing the username with the domain is a good way to get around this issue. When a domain isn't provided, the service assumes the local user. Hoping this information will help others when trying to connect via a proxy. Thanks!



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Bitbucket

Contest: Share your custom Bitbucket Pipe and win

Announced in this blog, this holiday season we’re celebrating all things CI/CD and between now and the end of 2019 we’ll be showcasing content, use cases, feature announcements and more. One featur...

1,033 views 4 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you