HG 4.4.1 in Ubuntu 14.04 notify does not work

Marcin Kasperski Marcin.Kasperski at mekk.waw.pl
Thu Oct 3 10:47:14 UTC 2019


>   File "/usr/lib/python2.7/socket.py", line 553, in create_connection
>     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
> gaierror: [Errno -2] Name or service not known

Looks like some DNS problem outside of Mercurial scope. 

Most obvious reason: wi-fi down, local DNS daemon down,
dnsmasq/systemd-resolved/whatever you use in some trouble…
I'd start from checking whether 

   host smtp.gmail.com

works from shell, if so, whether python is able to resolve names
(if you don't have any script handy, even stupid  command
like

    hg clone http://smtp.gmail.com/nosuchrepo

will fail differently when name doesn't resolve)

Note: various apps can approach DNS differently, there are a few
competing APIs nowadays which are based on different files/sources (and
which various tools try to keep in sync but fail from time to time), so
for example it is possible that host works while nslookup fails or the
other way around.


{ The only mercurial-related problem I can imagine here is that 
  something spoils some name, so sth wrong is being resolved.
  Adding --verbose and --debug may show sth more… }




More information about the Mercurial mailing list