"not allowed to execute..." message sent over ssh stdout channel

Bug #335156 reported by John A Meinel
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Michael Hudson-Doyle

Bug Description

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

With the latest bzr client (1.12 or bzr.dev) if you try to use
'bzr+ssh://' to connect to a remote host but it is either missing, or
you have BZR_REMOTE_PATH set incorrectly, you get a series of:
$ BZR_REMOTE_PATH=/home/jameinel/bzr bzr branch \
  lp:~jameinel/bzr/jam-integration
Server does not understand Bazaar network protocol 3, reconnecting.
(Upgrade the server to avoid this.)
Server does not understand Bazaar network protocol 2, reconnecting.
(Upgrade the server to avoid this.)
bzr: ERROR: Generic bzr smart protocol error: Server is not a Bazaar
server: Received bad protocol version marker: "Not allowed to execute
'/home/jameinel/bzr serve --inet --directory=/ --allow-writes
'.\r\n"

So Launchpad is refusing the connection with an error, and this is
causing the bzr client to spin repeatedly, rather than aborting.

John
=:->

 affects bzr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmnEIQACgkQJdeBCYSNAAOg6gCfbQdzTN0V7lwpwA8hc0/qYShz
KNIAnA7Qqe0sNRdP1K/tmOfDuR1NfQJb
=tvh4
-----END PGP SIGNATURE-----

Tags: lp-code qa-ok

Related branches

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

This probably means that Launchpad is sending the message to the ssh stdout channel when it should be sending it to stderr. bzr's behaviour is not ideal but not unreasonably imo.

affects: bzr → launchpad-code
summary: - Poor response when unable to connect to remote bzr
+ "not allowed to execute..." message sent over ssh stdout channel
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Thanks for the diagnosis, seems easy to fix.

Changed in launchpad-code:
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Michael Hudson (mwhudson)
milestone: none → 10.03
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
Changed in launchpad-code:
status: In Progress → Fix Committed
tags: added: qa-needstesting
tags: added: qa-ok
removed: qa-needstesting
Tim Penhey (thumper)
Changed in launchpad-code:
status: Fix Committed → Fix Released
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.