pycurl timeout gives traceback

Bug #545776 reported by Nick
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned
Breezy
Fix Released
Low
Jelmer Vernooij

Bug Description

Bzr proxy server problems.

Doing this bzr pull https://code.launchpad.net/gcodetools gave pycurl.error and bzr crash. Crash report attached.

Bzr behaves strange with proxies. Usually if proxy is not configured it hangs for about two or more minutes and does not show any activity. It'll be better if bzr will comment what is it doing at the moment.

Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 853, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
     return self.run_direct(**all_cmd_args)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 966, in run
     possible_transports=possible_transports)
   File "/usr/lib/python2.6/dist-packages/bzrlib/bundle/__init__.py", line 52, in read_mergeable_from_url
     _do_directive)
   File "/usr/lib/python2.6/dist-packages/bzrlib/bundle/__init__.py", line 70, in read_mergeable_from_transport
     redirected_transport)
   File "/usr/lib/python2.6/dist-packages/bzrlib/lazy_import.py", line 125, in __call__
     return obj(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 1644, in do_catching_redirections
     return action(transport)
   File "/usr/lib/python2.6/dist-packages/bzrlib/bundle/__init__.py", line 58, in get_bundle
     return StringIO(transport.get_bytes(filename)), transport
   File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 609, in get_bytes
     f = self.get(relpath)
   File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/__init__.py", line 126, in get
     code, response_file = self._get(relpath, None)
   File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 169, in _get
     return self._get_full(relpath)
   File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 204, in _get_full
     self._curl_perform(curl, header)
   File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 357, in _curl_perform
     curl.perform()
 error: (28, 'connect() timed out!')

Related branches

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

Your network firewall is apparently just dropping outbound connections that don't go through the proxy, so it's hard for bzr to tell the difference between this and a very slow network.

Still, we could:

1- give a better message rather than a traceback
2- show that we're trying to connect to the host, so that you have a clue why it's blocking

description: updated
summary: - pycurl.error causes bzr crash if proxy is not configured
+ pycurl timeout gives traceback
tags: added: http progress pycurl traceback transport
Martin Pool (mbp)
Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Critical
importance: Critical → Low
milestone: none → 3.0.0
Jelmer Vernooij (jelmer)
Changed in brz:
status: Triaged → Fix Released
assignee: nobody → Jelmer Vernooij (jelmer)
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.