bzr problems, connection refused

Asked by Johannes Ring

Since last Sunday (2012-09-02), I receive errors like the following when running bzr commands that connects to Launchpad, like branch or pull:

  $ bzr branch lp:bzr
  ssh: connect to host bazaar.launchpad.net port 22: Connection refused
  ConnectionReset reading response for 'BzrDir.open_2.1', retrying
  ssh: connect to host bazaar.launchpad.net port 22: Connection refused
  bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.

  $ bzr branch http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev
  bzr: ERROR: Connection error: while sending POST /~bzr-pqm/bzr/bzr.dev/.bzr/smart: [Errno 111] Connection refused

This happens only on one of my machines, which is on its separate network. None of my other machines has any problems with bzr.

Any idea why it suddenly stopped working?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Johannes Ring
Solved:
Last query:
Last reply:
Revision history for this message
Laura Czajkowski (czajkowski) said :
#1

hi we weren't having any issues at that time, perhaps you could try it again?

Revision history for this message
Johannes Ring (johannr) said :
#2

Hi Laura,

Thanks for the reply. I have tried many times since Sunday, but the issue is still there. Any idea what I can try?

Revision history for this message
Johannes Ring (johannr) said :
#3

Hi again,

I'm wondering if the issue could be that this machine has been banned? The machine is running Buildbot and it was polling for changes in several projects every five minutes. Could this be the reason the connection is refused? How can I find out if the machine has been banned?

Revision history for this message
Anders Logg (logg) said :
#4

It looks like the IP (fenicsproject.org, 82.118.24.73) is banned for some reason. Here's output from nmap with two different IPs from the same machine:

[scanning from 82.118.24.73]
$ nmap 91.189.95.84
   Nmap scan report for taotie.canonical.com (91.189.95.84)
   Host is up (0.028s latency).
   All 1000 scanned ports on taotie.canonical.com (91.189.95.84) are filtered

[scanning from other IP]
$ nmap -S 82.118.24.74 91.189.95.84
   Nmap scan report for taotie.canonical.com (91.189.95.84)
   Host is up (0.028s latency).
   Not shown: 997 filtered ports
   PORT STATE SERVICE
   22/tcp open ssh
   80/tcp open http
   443/tcp open https

Can you please unblock us? We mean no harm!

Revision history for this message
Anders Logg (logg) said :
#5

Works now, thanks!

Revision history for this message
Johannes Ring (johannr) said :
#6

It seems that this was resolved during the night. Were we unbanned?

The question now is if we can turn on polling on the buildbot without risking to be banned again?

Revision history for this message
Laura Czajkowski (czajkowski) said :
#7

You should be ok now.

Revision history for this message
Johannes Ring (johannr) said :
#8

Thanks! Then I'm turning on polling again on our buildbot and crossing my fingers that everything will be okay.

Revision history for this message
Rashi Karanpuria (rashi007) said :
#9

Hi I am having " ssh: connect to host bazaar.launchpad.net port 22: Connection refused
  ConnectionReset reading response for 'BzrDir.open_2.1', retrying
  ssh: connect to host bazaar.launchpad.net port 22: Connection refused
  bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist." error when trying to push my branch while it works fine if i am cloning a branch from some project. Can someone help I am clueless.

Revision history for this message
Colin Watson (cjwatson) said :
#10

Rashi, please check that you've carefully followed the instructions under "Pushing your Bazaar branch to Launchpad" in https://help.launchpad.net/Code/UploadingABranch, and make sure that the SSH key you're trying to use is the same one as is listed on https://launchpad.net/~/+sshkeys. Failing that, please ask a new question rather than piggy-backing on an existing one that was closed a few years ago, as that will make it much easier to debug and track.