Setting up Mercurial gives "getaddrinfo failed" error

When trying to setup a Mercurial VCS I get errors like this...

'hg clone --pull -U https://ademiller:*****@ademiller@bitbucket.org/####/#####/ hg_5610229546277975108' command failed.
stderr: abort: error: getaddrinfo failed

stdout: using https://ademiller@bitbucket.org/####/####/
http auth: user ademiller, password *******
sending between command
(this is output with HG's verbose and debug flags turned on. I added a INI file to the user profile of the TeamCity account)
I get a similar error if I use the "test setup" option  when creating the VCS provider. In both cases I can execute the same HG command running from a CMD Shell running as the same user ID as the TeamCity server. Which suggests that my HG install is good and that there is something different about the environment for the TeamCity service.
Any suggestions gratefully received.
5 comments
Comment actions Permalink

Can you provide a screenshot of your VCS root settings?

0
Comment actions Permalink

Pavel,

Here's a grab of the VCS config page. Is there any additional logging I should turn on. It seems like Python is unable to resolve the IP name, I've tried replacing this with an IP address but I get the same error.


Ade



Attachment(s):
teamcity.png
0
Comment actions Permalink

Please try to remove ademiller@ from the pull changes url, does it help?

0
Comment actions Permalink

That fixed the issue just fine. Seems like Hg isn't giving good errors for this although I'm unclear why it works from the command line.

Thanks for the quick response! You guys do a fantastic job with support.

Ade

0
Comment actions Permalink

Actually this looks like a bug in TeamCity Mercurial plugin - it should not append username@ to the URL if URL already contains it.

0

Please sign in to leave a comment.