EOFError traceback when ftp server refuses connection

Bug #662042 reported by Franco
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Won't Fix
Low
Unassigned

Bug Description

when i try to create a proyect in a FTP, i get:
(username and pass are removed)

Run command: bzr push ftp://(username):(pass)@ftp.drivehq.com/proyectos/ --overwrite --remember --create-prefix --use-existing-dir
FTP control connection closed. Trying to reopen.
bzr: failed to report crash using apport:
     OSError(13, 'Permiso denegado')
bzr: ERROR: exceptions.EOFError:

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1111, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/commands.py", line 767, in run
    return run_subprocess_command(cmd, bencoded)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/subprocess.py", line 870, in run_subprocess_command
    return commands.run_bzr(argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1111, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1161, in run
    use_existing_dir=use_existing_dir)
  File "/usr/lib/python2.6/dist-packages/bzrlib/push.py", line 81, in _show_push_branch
    dir_to = bzrdir.BzrDir.open_from_transport(to_transport)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 941, in open_from_transport
    redirected)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 1657, in do_catching_redirections
    return action(transport)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 928, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1949, in find_format
    return format.probe_transport(transport)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1959, in probe_transport
    format_string = transport.get_bytes(".bzr/branch-format")
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 610, in get_bytes
    f = self.get(relpath)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/ftp/__init__.py", line 272, in get
    self._reconnect()
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/ftp/__init__.py", line 164, in _reconnect
    connection, credentials = self._create_connection(credentials)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/ftp/__init__.py", line 140, in _create_connection
    connection.connect(host=self._host, port=self._port)
  File "/usr/lib/python2.6/ftplib.py", line 134, in connect
    self.welcome = self.getresp()
  File "/usr/lib/python2.6/ftplib.py", line 209, in getresp
    resp = self.getmultiline()
  File "/usr/lib/python2.6/ftplib.py", line 195, in getmultiline
    line = self.getline()
  File "/usr/lib/python2.6/ftplib.py", line 185, in getline
    if not line: raise EOFError
EOFError

bzr 2.2.0 on python 2.6.6 (Linux-2.6.35-22-generic-x86_64-with-Ubuntu-10.10-maverick)
arguments: ['/usr/bin/bzr', 'qsubprocess', '--bencode', 'l4:push51:ftp://(user):(pass)@ftp.drivehq.com/proyectos/11:--overwrite10:--remember15:--create-prefix18:--use-existing-dire']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'es_AR.utf8'
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.0]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  explorer /usr/lib/python2.6/dist-packages/bzrlib/plugins/explorer [1.1.0]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.0]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.0]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.0]
  qbzr /usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr [0.19.1]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

when i acces the ftp via nautilus, it works fine

Related branches

description: updated
Revision history for this message
Alexander Belchenko (bialix) wrote :

based on traceback the problem is in the bzr core.

affects: bzr-explorer → bzr
Revision history for this message
Vincent Ladeuil (vila) wrote :

The traceback suggest that the server fails to return *anything* at the connection phase where it should be at least send a welcome message.

Changed in bzr:
status: New → Incomplete
Revision history for this message
Martin Pool (mbp) wrote : Re: EOFError while connecting to ftp server

This might be due to a firewall forcing the connection closed?

summary: - submit in ftp
+ EOFError while connecting to ftp server
tags: added: ftp
Revision history for this message
Vincent Ladeuil (vila) wrote :

@Martin: good point.

It may also be that you're using a proxy requiring you to connect by using user@real-server as the user name and the original password.

bzr uses the ftplib python library and AFAIK the above trick is the only proxy support that exists there.

Martin Pool (mbp)
tags: added: easy error-reporting traceback
Changed in bzr:
status: Incomplete → Confirmed
importance: Undecided → Medium
summary: - EOFError while connecting to ftp server
+ EOFError traceback when ftp server refuses connection
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Low
tags: 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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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