"necessary data rewind wasn't possible" using pycurl against https

Bug #722001 reported by James Ebentier
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

I ran the command:
bzr co https://....

and this is what was spit out

bzr: failed to report crash using apport:
     OSError(13, 'Permission denied')
bzr: ERROR: pycurl.error: (65, "necessary data rewind wasn't possible")

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, 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 1321, in run
    branch_location)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1032, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 911, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  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/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  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 3292, in probe_transport
    server_version = medium.protocol_version()
  File "/usr/lib/python2.6/dist-packages/bzrlib/smart/medium.py", line 632, in protocol_version
    client_protocol.query_version()
  File "/usr/lib/python2.6/dist-packages/bzrlib/smart/protocol.py", line 791, in query_version
    self.call('hello')
  File "/usr/lib/python2.6/dist-packages/bzrlib/smart/protocol.py", line 631, in call
    self._request.finished_writing()
  File "/usr/lib/python2.6/dist-packages/bzrlib/smart/medium.py", line 439, in finished_writing
    self._finished_writing()
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/__init__.py", line 646, in _finished_writing
    data = self._medium.send_http_smart_request(self._buffer)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/__init__.py", line 615, in send_http_smart_request
    code, body_filelike = t._post(bytes)
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 265, in _post
    self._curl_perform(curl, header, ['Expect: '])
  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 353, in _curl_perform
    curl.perform()
error: (65, "necessary data rewind wasn't possible")

bzr 2.2.1 on python 2.6.6 (Linux-2.6.35-25-generic-i686-with-Ubuntu-10.10-maverick)
arguments: ['/usr/bin/bzr', 'co', 'https://<email address hidden>/teamstella/trunk']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.utf8'
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.1]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.1]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.1]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.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.

Revision history for this message
Andrew Bennetts (spiv) wrote :

Two workarounds you can try:

 * change the URL to nosmart+https://...
 * change the URL to https+urllib://...

(rather than https://...)

I wonder why trying a POST over HTTPS is causing that error... if you can, try installing bzr 2.3 (there's a PPA with debs for maverick) and see if it helps, I think there's been some small changes to the pycurl support in 2.3 that might help.

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

This looks like bug 682904 and bug 365874, which claim to have been fixed.

James, is this actually a bzr repository (the name certainly suggests so) or svn? The other occurrences seem associated with https.

  File "/usr/lib/python2.6/dist-packages/bzrlib/transport/http/_pycurl.py", line 265, in _post
    self._curl_perform(curl, header, ['Expect: '])

This makes me suspect it is a problem with 100-continue handling in bzr, the server, or elsewhere.

summary: - Bazaar checkout crash
+ "necessary data rewind wasn't possible" using pycurl against https
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.