socket.gaierror: (11001, 'getaddrinfo failed')

John Arbash Meinel john at arbash-meinel.com
Tue Aug 21 16:55:26 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kevin N. Murphy wrote:
>  U:\WLW-LIVE>bzr push ftp://username:pass@**.**.**.**/httpdocs/wilsonlearning.c
> om
> bzr: ERROR: socket.gaierror: (11001, 'getaddrinfo failed')
> 
> Traceback (most recent call last):
>   File "bzrlib\commands.pyc", line 650, in run_bzr_catch_errors
>   File "bzrlib\commands.pyc", line 612, in run_bzr
>   File "bzrlib\commands.pyc", line 304, in run_argv_aliases
>   File "bzrlib\builtins.pyc", line 699, in run
>   File "bzrlib\bzrdir.pyc", line 580, in open_from_transport
>   File "bzrlib\transport\__init__.pyc", line 1074, in do_catching_redirections
>   File "bzrlib\bzrdir.pyc", line 557, in find_format
>   File "bzrlib\bzrdir.pyc", line 1235, in find_format
>   File "bzrlib\bzrdir.pyc", line 1245, in probe_transport
>   File "bzrlib\transport\ftp.pyc", line 269, in get
>   File "bzrlib\transport\ftp.pyc", line 141, in _get_FTP
>   File "bzrlib\transport\ftp.pyc", line 68, in _find_FTP
>   File "ftplib.pyc", line 117, in connect
> gaierror: (11001, 'getaddrinfo failed')
> 
> bzr 0.15.0 on python 2.5.0.final.0 (win32)
> arguments: ['bzr', 'push', 'ftp://username:pass@**.**.**.**/httpdocs/wilsonlea
> rning.com']
> 
> ** please send this report to bazaar at lists.ubuntu.com

Well, this is just saying that there was a failure to resolve the DNS address.
Certainly it seems like we should have a clearer error (single line saying
"unable to find host" or something like that).

I think we just need the FTP transport to have more try/except around the
connection attempt, and raise SocketConnectionError to give better error reporting.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGywrtJdeBCYSNAAMRAh11AJkBgSyAEqTFWma2uQ4tFjPNWknaIACfcjmn
VZhbBP2I3cgLRerP+mFzGCU=
=cG8f
-----END PGP SIGNATURE-----




More information about the bazaar mailing list