traceback and poor error message for "network unreachable" in ftp

Bug #402168 reported by AscentBuildMaster
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned
Breezy
Won't Fix
Low
Unassigned

Bug Description

Bazaar should give a better message in this situation:

C:\BazaarTest>bzr branch ftp://herbie:herbie@10.102.142.77

bzr: ERROR: socket.error: (10051, 'Network is unreachable')

Traceback (most recent call last):

  File "bzrlib\commands.pyo", line 729, in exception_to_return_code

  File "bzrlib\commands.pyo", line 924, in run_bzr

  File "bzrlib\commands.pyo", line 560, in run_argv_aliases

  File "bzrlib\builtins.pyo", line 1114, in run

  File "bzrlib\bzrdir.pyo", line 952, in open_tree_or_branch

  File "bzrlib\bzrdir.pyo", line 837, in open

  File "bzrlib\bzrdir.pyo", line 867, in open_from_transport

  File "bzrlib\lazy_import.pyo", line 125, in __call__

  File "bzrlib\transport\__init__.pyo", line 1642, in do_catching_redirections

  File "bzrlib\bzrdir.pyo", line 854, in find_format

  File "bzrlib\bzrdir.pyo", line 1785, in find_format

  File "bzrlib\bzrdir.pyo", line 1795, in probe_transport

  File "bzrlib\transport\ftp\__init__.pyo", line 252, in get

  File "ftplib.pyo", line 390, in retrbinary

  File "ftplib.pyo", line 356, in transfercmd

  File "ftplib.pyo", line 324, in ntransfercmd

  File "<string>", line 1, in connect

error: (10051, 'Network is unreachable')

bzr 1.16.1 on python 2.5.4 (win32)

arguments: ['bzr', 'branch', 'ftp://herbie:herbie@10.102.142.77']

encoding: 'cp1252', fsenc: 'mbcs', lang: None

plugins:

  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [1.16]

  launchpad C:\Program Files\Bazaar\plugins\launchpad [1.16.1]

  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store

[1.16.1]

  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.11]

  rebase C:\Program Files\Bazaar\plugins\rebase [0.5.1]

  svn C:\Program Files\Bazaar\plugins\svn [0.6.3dev]

*** Bazaar has encountered an internal error.

    Please report a bug at https://bugs.launchpad.net/bzr/+filebug

    including this traceback, and a description of what you

    were doing when the error occurred.

--------------------------------------------------------------------------------------------------------------------------------------------------------

File Zilla Output

(000025) 21/07/2009 11:43:25 - (not logged in) (10.102.142.126)> Connected, sending welcome message...

(000025) 21/07/2009 11:43:25 - (not logged in) (10.102.142.126)> 220-FileZilla Server version 0.9.32 beta

(000025) 21/07/2009 11:43:25 - (not logged in) (10.102.142.126)> 220-written by Tim Kosse (<email address hidden>)

(000025) 21/07/2009 11:43:25 - (not logged in) (10.102.142.126)> 220 Please visit http://sourceforge.net/projects/filezilla/

(000025) 21/07/2009 11:43:25 - (not logged in) (10.102.142.126)> USER herbie

(000025) 21/07/2009 11:43:25 - (not logged in) (10.102.142.126)> 331 Password required for herbie

(000025) 21/07/2009 11:43:25 - (not logged in) (10.102.142.126)> PASS ******

(000025) 21/07/2009 11:43:25 - herbie (10.102.142.126)> 230 Logged on

(000025) 21/07/2009 11:43:25 - herbie (10.102.142.126)> TYPE I

(000025) 21/07/2009 11:43:25 - herbie (10.102.142.126)> 200 Type set to I

(000025) 21/07/2009 11:43:25 - herbie (10.102.142.126)> TYPE I

(000025) 21/07/2009 11:43:25 - herbie (10.102.142.126)> 200 Type set to I

(000025) 21/07/2009 11:43:25 - herbie (10.102.142.126)> PASV

(000025) 21/07/2009 11:43:25 - herbie (10.102.142.126)> 227 Entering Passive Mode (10,102,142,77,4,58)

(000025) 21/07/2009 11:43:46 - herbie (10.102.142.126)> disconnected.

Tags: ftp

Related branches

Revision history for this message
Martin Pool (mbp) wrote :

Is this problem reproducible?

Thanks for including the traceback and server log.

Can you use another ftp client from the same machine to connect to the same server and read a file? If so, what does the log show?

Changed in bzr:
status: New → Incomplete
Revision history for this message
AscentBuildMaster (neil-patrick) wrote : RE: [Bug 402168] Re: 10051 socket error when using ftp:// protocol with FileZilla
Download full text (4.9 KiB)

Hi Martin,

This was due to a firewall restricting the dynamically allocated data return port

of a passive ftp login for bazaar. The simple solution of restricting the range from which

fileZilla allocates data return ports and allowing ip traffic on this port range through

the firewall solved the problem.

Unfortnunate error msg but then a google on the socket error no. does suggest

faulty router / network configuration as being the source of the error.

Regards,

Patrick.

> Date: Wed, 22 Jul 2009 05:01:21 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 402168] Re: 10051 socket error when using ftp:// protocol with FileZilla
>
> Is this problem reproducible?
>
> Thanks for including the traceback and server log.
>
> Can you use another ftp client from the same machine to connect to the
> same server and read a file? If so, what does the log show?
>
> ** Changed in: bzr
> Status: New => Incomplete
>
> --
> 10051 socket error when using ftp:// protocol with FileZilla
> https://bugs.launchpad.net/bugs/402168
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bazaar Version Control System: Incomplete
>
> Bug description:
> C:\BazaarTest>bzr branch ftp://herbie:herbie@10.102.142.77
>
> bzr: ERROR: socket.error: (10051, 'Network is unreachable')
>
>
>
> Traceback (most recent call last):
>
> File "bzrlib\commands.pyo", line 729, in exception_to_return_code
>
> File "bzrlib\commands.pyo", line 924, in run_bzr
>
> File "bzrlib\commands.pyo", line 560, in run_argv_aliases
>
> File "bzrlib\builtins.pyo", line 1114, in run
>
> File "bzrlib\bzrdir.pyo", line 952, in open_tree_or_branch
>
> File "bzrlib\bzrdir.pyo", line 837, in open
>
> File "bzrlib\bzrdir.pyo", line 867, in open_from_transport
>
> File "bzrlib\lazy_import.pyo", line 125, in __call__
>
> File "bzrlib\transport\__init__.pyo", line 1642, in do_catching_redirections
>
> File "bzrlib\bzrdir.pyo", line 854, in find_format
>
> File "bzrlib\bzrdir.pyo", line 1785, in find_format
>
> File "bzrlib\bzrdir.pyo", line 1795, in probe_transport
>
> File "bzrlib\transport\ftp\__init__.pyo", line 252, in get
>
> File "ftplib.pyo", line 390, in retrbinary
>
> File "ftplib.pyo", line 356, in transfercmd
>
> File "ftplib.pyo", line 324, in ntransfercmd
>
> File "<string>", line 1, in connect
>
> error: (10051, 'Network is unreachable')
>
>
>
> bzr 1.16.1 on python 2.5.4 (win32)
>
> arguments: ['bzr', 'branch', 'ftp://herbie:herbie@10.102.142.77']
>
> encoding: 'cp1252', fsenc: 'mbcs', lang: None
>
> plugins:
>
> bzrtools C:\Program Files\Bazaar\plugins\bzrtools [1.16]
>
> launchpad C:\Program Files\Bazaar\plugins\launchpad [1.16.1]
>
> netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store
>
> [1.16.1]
>
> qbzr C:\Program Files\Bazaar\plugins\qbzr [0.11]
>
> rebase C:\Program Files\Bazaar\plugins\rebase [0.5.1]
>
> svn C:\Program Files\Bazaar\plugins\svn [0.6.3dev]
>
> *** Bazaar has encountered an internal error.
>
> Please report a bug at https://bugs.launchpad.net/bzr/+filebug
>
> including this traceback, and a description of what you...

Read more...

Martin Pool (mbp)
Changed in bzr:
status: Incomplete → Invalid
summary: - 10051 socket error when using ftp:// protocol with FileZilla
+ traceback and poor error message for "network unreachable" in ftp
Changed in bzr:
status: Invalid → Confirmed
importance: Undecided → Low
description: updated
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Low
tags: added: ftp
removed: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.