Push command fails with "Garbage packet received" error

Bug #647916 reported by Michael Ferrier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Expired
Undecided
Unassigned

Bug Description

Hello,

I'm trying to push my repository via sftp to a new domain, hosted on a server that I previously succeeded in doing this with.

The push command fails, and provides the following bug report information:

--------------------------------
Run command: bzr push sftp://<email address hidden>/home/gamedev/gamedev.co/html/spacegame/vcs/client/.bzr --remember
Connected (version 1.99, client OpenSSH_3.6.1p2)
Authentication (password) successful!
Secsh channel 1 opened.
bzr: ERROR: paramiko.SFTPError: Garbage packet received

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 911, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1111, in run_bzr
  File "bzrlib\commands.pyo", line 689, in run_argv_aliases
  File "bzrlib\commands.pyo", line 704, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\commands.py", line 767, in run
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\subprocess.py", line 869, in run_subprocess_command
  File "bzrlib\commands.pyo", line 1111, in run_bzr
  File "bzrlib\commands.pyo", line 689, in run_argv_aliases
  File "bzrlib\commands.pyo", line 704, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1161, in run
  File "bzrlib\push.pyo", line 81, in _show_push_branch
  File "bzrlib\bzrdir.pyo", line 941, in open_from_transport
  File "bzrlib\transport\__init__.pyo", line 1657, in do_catching_redirections
  File "bzrlib\bzrdir.pyo", line 928, in find_format
  File "bzrlib\bzrdir.pyo", line 1949, in find_format
  File "bzrlib\bzrdir.pyo", line 1959, in probe_transport
  File "bzrlib\transport\sftp.pyo", line 435, in get_bytes
  File "bzrlib\transport\sftp.pyo", line 425, in get
  File "bzrlib\transport\sftp.pyo", line 397, in _get_sftp
  File "bzrlib\transport\sftp.pyo", line 389, in _create_connection
  File "bzrlib\transport\ssh.pyo", line 323, in connect_sftp
  File "paramiko\transport.pyo", line 825, in open_sftp_client
  File "paramiko\sftp_client.pyo", line 106, in from_transport
  File "paramiko\sftp_client.pyo", line 87, in __init__
  File "paramiko\sftp.pyo", line 108, in _send_version
  File "paramiko\sftp.pyo", line 179, in _read_packet
SFTPError: Garbage packet received

bzr 2.2.0 on python 2.6.4 (Windows-Vista-6.0.6001-SP1)
arguments: ['C:\\Program Files\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode', 'l4:push98:sftp://<email address hidden>/home/gamedev/gamedev.co/html/spacegame/vcs/client/.bzr10:--remembere']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.2.0]
  colo C:\Program Files\Bazaar\plugins\colo [0.1.0]
  explorer C:\Program Files\Bazaar\plugins\explorer [1.1b1]
  fastimport C:\Program Files\Bazaar\plugins\fastimport [0.9.0dev]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.2.0]
  loom C:\Program Files\Bazaar\plugins\loom [2.2.1dev]
  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store [2.2.0]
  news_merge C:\Program Files\Bazaar\plugins\news_merge [2.2.0]
  pipeline C:\Program Files\Bazaar\plugins\pipeline [unknown]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.19.0]
  rewrite C:\Program Files\Bazaar\plugins\rewrite [0.6.0]
  svn C:\Program Files\Bazaar\plugins\svn [1.0.3]
  upload C:\Program Files\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\Program Files\Bazaar\plugins\xmloutput [0.8.6]

*** 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.
-----------------------------

I've tried it repeatedly with the same results. I tried different combinations of Push command options and it made no difference.

Thank you,

-Michael

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 647916] [NEW] Push command fails with "Garbage packet received" error

Michael Ferrier пишет:
> Public bug reported:
>
> Hello,
>
> I'm trying to push my repository via sftp to a new domain, hosted on a
> server that I previously succeeded in doing this with.
>
> The push command fails, and provides the following bug report
> information:
>
> --------------------------------
> Run command: bzr push sftp://<email address hidden>/home/gamedev/gamedev.co/html/spacegame/vcs/client/.bzr --remember

I suspect the right URL should be
sftp://<email address hidden>/home/gamedev/gamedev.co/html/spacegame/vcs/client/

Can you try with the URL above?

Can you also show us the relevant part of .bzr.log file?

Vincent Ladeuil (vila)
Changed in bzr:
status: New → Incomplete
Revision history for this message
Michael Ferrier (mike-ironzog) wrote : Re: [Bug 647916] Re: Push command fails with "Garbage packet received" error
Download full text (5.1 KiB)

Hello,

Thank you for your help.

It turns out that the problem was that the FTP user was set to "noshell"
which prevented it from using SFTP. So the problem was not with Bazaar
(though it would be handy if Bazaar were able to provide better feedback in
a case like this, maybe printing in the error message the text of the data
it received back from the server for example).

Thanks again,

-Michael
_____________
Michael Ferrier
IronZog

On Sun, Sep 26, 2010 at 4:07 PM, Vincent Ladeuil
<email address hidden>wrote:

> ** Changed in: bzr
> Status: New => Incomplete
>
> --
> Push command fails with "Garbage packet received" error
> https://bugs.launchpad.net/bugs/647916
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bazaar Version Control System: Incomplete
>
> Bug description:
> Hello,
>
> I'm trying to push my repository via sftp to a new domain, hosted on a
> server that I previously succeeded in doing this with.
>
> The push command fails, and provides the following bug report information:
>
> --------------------------------
> Run command: bzr push sftp://
> <email address hidden>/home/gamedev/gamedev.co/html/spacegame/vcs/client/.bzr--remember
> Connected (version 1.99, client OpenSSH_3.6.1p2)
> Authentication (password) successful!
> Secsh channel 1 opened.
> bzr: ERROR: paramiko.SFTPError: Garbage packet received
>
> Traceback (most recent call last):
> File "bzrlib\commands.pyo", line 911, in exception_to_return_code
> File "bzrlib\commands.pyo", line 1111, in run_bzr
> File "bzrlib\commands.pyo", line 689, in run_argv_aliases
> File "bzrlib\commands.pyo", line 704, in run
> File "bzrlib\cleanup.pyo", line 135, in run_simple
> File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
> File "C:/Program Files/Bazaar/plugins\qbzr\lib\commands.py", line 767, in
> run
> File "C:/Program Files/Bazaar/plugins\qbzr\lib\subprocess.py", line 869,
> in run_subprocess_command
> File "bzrlib\commands.pyo", line 1111, in run_bzr
> File "bzrlib\commands.pyo", line 689, in run_argv_aliases
> File "bzrlib\commands.pyo", line 704, in run
> File "bzrlib\cleanup.pyo", line 135, in run_simple
> File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
> File "bzrlib\builtins.pyo", line 1161, in run
> File "bzrlib\push.pyo", line 81, in _show_push_branch
> File "bzrlib\bzrdir.pyo", line 941, in open_from_transport
> File "bzrlib\transport\__init__.pyo", line 1657, in
> do_catching_redirections
> File "bzrlib\bzrdir.pyo", line 928, in find_format
> File "bzrlib\bzrdir.pyo", line 1949, in find_format
> File "bzrlib\bzrdir.pyo", line 1959, in probe_transport
> File "bzrlib\transport\sftp.pyo", line 435, in get_bytes
> File "bzrlib\transport\sftp.pyo", line 425, in get
> File "bzrlib\transport\sftp.pyo", line 397, in _get_sftp
> File "bzrlib\transport\sftp.pyo", line 389, in _create_connection
> File "bzrlib\transport\ssh.pyo", line 323, in connect_sftp
> File "paramiko\transport.pyo", line 825, in open_sftp_client
> File "paramiko\sftp_client.pyo", line 106, in from_transport
> File "paramiko\sftp_client.pyo", line 87, in __init__
> File "paramiko\sftp.py...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Bazaar because there has been no activity for 60 days.]

Changed in bzr:
status: Incomplete → Expired
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.