necessary data rewind wasn't possible

Bug #294984 reported by dmuir
6
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

got this while trying to branch an svn repo:
bzr branch http://<user>:<pass>@<urlToRepo> <localDir>

bzr: ERROR: pycurl.error: (65, "necessary data rewind wasn't possible")

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 849, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 795, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 495, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 878, in run
    from_location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 888, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 766, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 803, in open_from_transport
    redirected)
  File "/usr/lib/python2.5/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1621, in do_catching_redirections
    return action(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 780, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1634, in find_format
    return format.probe_transport(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 2617, in probe_transport
    server_version = medium.protocol_version()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/medium.py", line 593, in protocol_version
    client_protocol.query_version()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/protocol.py", line 769, in query_version
    self.call('hello')
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/protocol.py", line 617, in call
    self._request.finished_writing()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/medium.py", line 421, in finished_writing
    self._finished_writing()
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/http/__init__.py", line 575, in _finished_writing
    data = self._medium.send_http_smart_request(self._buffer)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/http/__init__.py", line 552, in send_http_smart_request
    code, body_filelike = t._post(bytes)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/http/_pycurl.py", line 267, in _post
    self._curl_perform(curl, header, ['Expect: '])
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/http/_pycurl.py", line 341, in _curl_perform
    curl.perform()
error: (65, "necessary data rewind wasn't possible")

bzr 1.8 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'http://<user>:<pass>@<urlToRepo>', '<localDir>']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  svn /home/dmuir/.bazaar/plugins/svn [0.4.14]
  webdav /home/dmuir/.bazaar/plugins/webdav [1.6.0]
  xmloutput /usr/lib/python2.5/site-packages/bzrlib/plugins/xmloutput [0.8.0]

Is this because bzr-svn 0.4.14 is for bzr 1.9 and not 1.8? If so, is there a version available for 1.8?

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 294984] [NEW] necessary data rewind wasn't possible

> Is this because bzr-svn 0.4.14 is for bzr 1.9 and not 1.8? If so, is there a version available for 1.8?

Is the url given here an svn url?

--
Martin <http://launchpad.net/~mbp/>

Revision history for this message
dmuir (dmuir) wrote :

Yes, it is. Am I doing something wrong? I just tried:

bzr checkout http://redmine.rubyforge.org/svn/trunk redmine

And got:

bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'require_any_api'

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 849, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 795, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 495, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 976, in run
    branch_location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 888, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 766, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 803, in open_from_transport
    redirected)
  File "/usr/lib/python2.5/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1621, in do_catching_redirections
    return action(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 780, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1634, in find_format
    return format.probe_transport(transport)
  File "/home/dmuir/.bazaar/plugins/svn/format.py", line 69, in probe_transport
    format = klass()
  File "/home/dmuir/.bazaar/plugins/svn/format.py", line 61, in __init__
    lazy_check_versions()
  File "/home/dmuir/.bazaar/plugins/svn/__init__.py", line 154, in lazy_check_versions
    bzrlib.api.require_any_api(bzrlib, COMPATIBLE_BZR_VERSIONS)
AttributeError: 'module' object has no attribute 'require_any_api'

bzr 1.8 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'checkout', 'http://redmine.rubyforge.org/svn/trunk', 'redmine']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  svn /home/dmuir/.bazaar/plugins/svn [0.4.14]
  webdav /home/dmuir/.bazaar/plugins/webdav [1.6.0]
  xmloutput /usr/lib/python2.5/site-packages/bzrlib/plugins/xmloutput [0.8.0]

I'll submit this second case as a separate bug report unless I'm doing something wrong.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

bzr-svn 0.4.14 requires bzr 1.9.

Changed in bzr-svn:
status: New → Invalid
Revision history for this message
dmuir (dmuir) wrote :

And I see that 1.9 was just released today... thanks.

Revision history for this message
dmuir (dmuir) wrote :
Download full text (4.7 KiB)

I upgraded to 1.9, but I'm still getting the same error.
checkout for redmine is working though.

Ran it with -Dhttp and got: (I think it's been sanitised...)

* About to connect() to <hostname> port 80 (#0)
* Trying <IPAddress>... * connected
* Connected to <hostname> (<IPAddress>) port 80 (#0)
> POST /<folder>/.bzr/smart HTTP/1.1
User-Agent: bzr/1.9 (pycurl: libcurl/7.18.0 GnuTLS/2.0.4 zlib/1.2.3.3 libidn/1.1)
Host: <hostname>
Accept: */*
Cache-control: max-age=0
Pragma: no-cache
Connection: Keep-Alive
Content-Length: 6
Content-Type: application/x-www-form-urlencoded

< HTTP/1.1 401 Authorization Required
< Date: Fri, 07 Nov 2008 14:22:42 GMT
< Server: Apache/2.0.61 (Unix) PHP/4.4.7 mod_ssl/2.0.61 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2
< WWW-Authenticate: Basic realm="<realm>"
< Vary: Accept-Encoding
< Content-Length: 520
< Keep-Alive: timeout=2, max=100
< Connection: Keep-Alive
< Content-Type: text/html; charset=iso-8859-1
* necessary data rewind wasn't possible
* Closing connection #0

Fri 2008-11-07 22:19:20 +0900
0.028 bzr arguments: [u'branch', u'-Dhttp', u'http://<user>:<pass>@<urlToRepo>', u'<localPath>']
0.029 looking for plugins in /home/dmuir/.bazaar/plugins
0.058 bzr-svn: using Subversion 1.5.1 ()
0.065 looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/plugins
0.094 encoding stdout as sys.stdout encoding 'UTF-8'
0.652 got pycurl error: 65, necessary data rewind wasn't possible, (65, "necessary data rewind wasn't possible"), url: http://<urlToRepo>/.bzr/smart
0.668 Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 953, in run
    from_location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 888, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 766, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 803, in open_from_transport
    redirected)
  File "/usr/lib/python2.5/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1634, in do_catching_redirections
    return action(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 780, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1634, in find_format
    return format.probe_transport(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 2617, in probe_transport
    server_version = medium.protocol_version()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/medium.py", line 593, in protocol_version
    client_protocol.query_version()
...

Read more...

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

thanks. reassigning to bzr as this error happens before bzr-svn comes into play

Changed in bzr-svn:
status: Invalid → New
Revision history for this message
dmuir (dmuir) wrote :

I've had issues with bzr.webdav in regards to the webdav folder being set up with DirectorySlash on.

If the svn repos are set up the same way, would this kill bzr?
I know there'd be a significant performance drop if bzr were to work with DirectorySlash on, due to the increase in round-trips, but wouldn't it be better to have it working, albeit slowly, than not working at all? Might be totally off the mark, and the issue might be caused by something else...

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.