[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2017-06-24 Thread Jelmer Vernooij
** Changed in: brz
   Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

To manage notifications about this bug go to:
https://bugs.launchpad.net/brz/+bug/365874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2017-06-22 Thread Jelmer Vernooij
** Also affects: brz
   Importance: Undecided
   Status: New

** Changed in: brz
   Status: New => Triaged

** Changed in: brz
   Importance: Undecided => Medium

** Changed in: brz
 Assignee: (unassigned) => Jelmer Vernooij (jelmer)

** Changed in: brz
Milestone: None => 3.0.0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

To manage notifications about this bug go to:
https://bugs.launchpad.net/brz/+bug/365874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2014-10-10 Thread cicuclaudiu
** Changed in: bzr (Ubuntu)
   Status: Triaged = Confirmed

** Changed in: bzr
 Assignee: (unassigned) = cicuclaudiu (cicuclaudiu)

** Changed in: bzr (Ubuntu)
 Assignee: (unassigned) = cicuclaudiu (cicuclaudiu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/365874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2013-05-29 Thread Wim Lewis
FWIW, I think this can happen any time you set curl's READFUNCTION but
do not set its SEEKFUNCTION.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/365874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2013-02-27 Thread Vincent Ladeuil
@Callum: Please read the comments on this bug and follow the
instructions there. Telling us which bzr version you're using is also
needed to diagnose what is happening in your case.

Also, from your comment, it's a bit unclear what your context is, you
say: my host does not support the plain HTTPS protocol. and I receive
this error when pushing to a bzr+https:// repository. Either you expect
https to work or you don't.

What do you mean ?

Note that in almost all cases where we got this error message from
pycurl, it was tracked down as a bug in pycurl or one of its
dependencies, so please make sure you're using an up-to-date system and
tell us which versions you're using.

Finally, as recommended in some earlier comment, what happens if you
uninstall pycurl ? Recent versions of bzr's urllib implementation
support https.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/365874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2013-02-26 Thread Callum Macdonald
I receive this error when pushing to a bzr+https:// repository since
installing pycurl. Prior to pycurl's installation, the push command
worked. Since I installed pycurl, it now throws the necessary data
rewind wasn't possible error. In my case, using https+urllib:// is not
an option as my host does not support the plain HTTPS protocol.

Is there a way to force bzr to use urllib insteasd of pycurl while also
using the bzr+https:// protocol? I tried bzr+https+urllib:// for
example, but that does not work.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/365874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2012-12-10 Thread Jaap Karssenberg
Got the same error while trying to set up bzr access through corporate
proxy server with authentication.

I set the http_proxy environment to include user and password, this
gives the following error:


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

Traceback (most recent call last):
  File bzrlib\commands.pyc, line 846, in run_bzr_catch_errors
  File bzrlib\commands.pyc, line 797, in run_bzr
  File bzrlib\commands.pyc, line 499, in run_argv_aliases
  File bzrlib\builtins.pyc, line 916, in run
  File bzrlib\bzrdir.pyc, line 789, in open_tree_or_branch
  File bzrlib\bzrdir.pyc, line 667, in open
  File bzrlib\bzrdir.pyc, line 704, in open_from_transport
  File bzrlib\lazy_import.pyc, line 125, in __call__
  File bzrlib\transport\__init__.pyc, line 1616, in do_catching_redirections
  File bzrlib\bzrdir.pyc, line 681, in find_format
  File bzrlib\bzrdir.pyc, line 1440, in find_format
  File bzrlib\bzrdir.pyc, line 2398, in probe_transport
  File bzrlib\smart\medium.pyc, line 421, in protocol_version
  File bzrlib\smart\protocol.pyc, line 620, in query_version
  File bzrlib\smart\protocol.pyc, line 488, in call
  File bzrlib\smart\medium.pyc, line 348, in finished_writing
  File bzrlib\transport\http\__init__.pyc, line 539, in _finished_writing
  File bzrlib\transport\http\__init__.pyc, line 518, in send_http_smart_reques
t
  File bzrlib\transport\http\_pycurl.pyc, line 268, in _post
  File bzrlib\transport\http\_pycurl.pyc, line 325, in _curl_perform
error: (65, necessary data rewind wasn't possible\n)

bzr 1.5 on python 2.5.2 (win32)
arguments: ['C:\\localdata\\Bazaar\\bzr.exe', 'branch', 'http://xxx']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  launchpadC:\localdata\Bazaar\plugins\launchpad [unknown]
*** Bazaar has encountered an internal error.
Please report a bug at https://bugs.launchpad.net/bzr/+filebug
including this traceback, and a description of what you
were doing when the error occurred.


Using http+urllib instead results in
bzr: ERROR: Invalid http response for http://xxx: Unable to handle http code 
407: Proxy Authentication Required

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/365874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2012-12-10 Thread Vincent Ladeuil
@jaap: You're using bzr-1.5 which was released more than 4 years ago and
is not maintained any more (but newer versions are backward compatible).

Can you try again with a more recent version (see
https://launchpad.net/bzr/+download)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/365874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2012-02-27 Thread LluĂ­s Vilanova
I tried these two commands in the recent bazaar 2.5.0, resulting in the
attached failure log:

bzr co https://code.server/bzr/project
bzr co https://user@code.server/bzr/project

As others said, using https+urllib works around the problem, but it is
still a hassle to have it failing by default.

** Attachment added: log
   https://bugs.launchpad.net/bzr/+bug/365874/+attachment/2788658/+files/log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/365874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2011-05-12 Thread Marius Kruger
Failing log as requested. I did not see any headers content, maybe I'm running 
the wrong thing. Let me know if you need me to run/test anything else.
(This is on natty with a fairly recent bzr.dev)

** Attachment added: bzr_pycurl_cert_fail.bzr.log
   
https://bugs.launchpad.net/bzr/+bug/365874/+attachment/2126244/+files/bzr_pycurl_cert_fail.bzr.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2011-05-12 Thread Marius Kruger
I have this problem with bzr and bzr-svn to the same server, here is a log when 
trying with svn.
With bzr branches I can work arround it with https+urllib:// , but with bzr-svn 
I get another error:
$ bzr push https+urllib://svn branch
bzr: ERROR: Transport operation not possible: http does not support mkdir() 

** Attachment added: bzrsvn_pycurl_cert_fail.bzr.log
   
https://bugs.launchpad.net/bzr/+bug/365874/+attachment/2126245/+files/bzrsvn_pycurl_cert_fail.bzr.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2011-05-12 Thread Marius Kruger
Ok now https://svn branch and https+urllib://svn branch works for me
again (that error was just a bad way of saying bzr-svn is not installed)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2011-04-28 Thread Jelmer Vernooij
** Changed in: bzr (Ubuntu)
   Importance: Undecided = Medium

** Changed in: bzr (Ubuntu)
   Status: Confirmed = Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2011-02-22 Thread Vincent Ladeuil
I never thought about http 100-continue (and my gut feeling/confused
memories on the topic is that the client initiates the 100-continue and
we explicitly don't do that), but I may be wrong.

I thought this bug was triggered by some 401 error requiring resending
the request (hence the rewind).

In both cases, a .bzr.log file for the failing command with -Dhttp added
is the best way to gather the data needed for the diagnosis.

So if the failing command is:

   bzr pull url

do

  bzr pull -Dhttp url

and attach the relevant part of ~/.bzr.log (bzr version will tell you
where it's located).

Make sure there is no sensitive header contents in the excerpt (any
header with auth in its name is potentially leaking credentials). If
there are such headers, edit their *value* only. We don't need the value
for the diagnosis, but *not* having the header at *all* will led us to
wrong conclusions.

I filed bug #723074 about credentials in .bzr.log.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2011-02-20 Thread Martin Pool
Given the recent apparent dupe bug 722001 I think this is not actually
fixed.

I think this is something do do with http 100-continue.  It may be
specific to servers (or proxies) that either do send it or don't send
it, or perhaps send it even when they're not asked to.

** Changed in: bzr
   Status: Fix Released = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2011-02-01 Thread Jelmer Vernooij
** Tags added: pycurl

** Tags added: http

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2011-02-01 Thread Vincent Ladeuil
I'm pretty sure this has been fixed with recent versions of
bzr/pycurl/gnutls, re-open and attach your log file as explained above
if you run into this bug again.

** Changed in: bzr
   Status: Confirmed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/365874

Title:
  curl error: necessary data rewind wasn't possible

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2010-03-10 Thread Khairul Aizat Kamarudzzaman
cannot remove python-pycurl because ... some other application depend on
it such as gwibber-services

-- 
curl error: necessary data rewind wasn't possible
https://bugs.launchpad.net/bugs/365874
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2009-11-18 Thread unchiujar
Log after running:

 bzr info -Dhttp
bzr+https://vasi...@rares.cs.ubbcluj.ro/project/aport/master/trunk

is attached.

Hope this helps :)

** Attachment added: bzr_https_fail.log
   http://launchpadlibrarian.net/35819208/bzr_https_fail.log

-- 
curl error: necessary data rewind wasn't possible
https://bugs.launchpad.net/bugs/365874
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2009-11-17 Thread Vincent Ladeuil
Could you attach the relevant part of your .bzr.log ('bzr version' will tell 
you where it is) after issuing
the failing command adding '-Dhttp' in the parameters ?

That will provide more information about how the bug occurs.
As mentioned in previous comments, this behavior is rare and hard to reproduce, 
so while the workaround is perfectly
valid, it will be good to better understand the issue.

-- 
curl error: necessary data rewind wasn't possible
https://bugs.launchpad.net/bugs/365874
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 365874] Re: curl error: necessary data rewind wasn't possible

2009-11-16 Thread John A Meinel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

unchiujar wrote:
 An alternative method of hacking around this problem is to install
 virtualenv http://pypi.python.org/pypi/virtualenv
 
 Create virtual environment:
 virtualenv -p python2.4 /usr/share/virtual_python2.4
 
 Edit the bazaar executable:
 
 nano -w $(which bzr)
 
 and replace  #!/usr/bin/python with
 #!/usr/share/virtual_python2.4/bin/python
 
 Also run export PYTHONPATH=/usr/share/pyshared  to give the path to
 bzrlib
 
 This keeps the current version of python while running bzr with python
 2.4
 

My guess is that it isn't python2.5 or 2.6 but that you don't have
pycurl installed in python2.4.

You can directly work around it with http+urllib:// style urls, or
disable/uninstall pycurl.

John
=:-

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

iEYEARECAAYFAksBhG0ACgkQJdeBCYSNAAPWEgCePR17WjQNmS1CEgrYwQh9ztsy
OQAAoJoccsa1YSOHP4WpvDAeAzqUDlS2
=Rsnp
-END PGP SIGNATURE-

-- 
curl error: necessary data rewind wasn't possible
https://bugs.launchpad.net/bugs/365874
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2009-11-16 Thread unchiujar
The issue appears when I specifically use https (I am forced to use
https by the way the repository I work with is configured).

My guess is that it isn't python2.5 or 2.6 but that you don't have
pycurl installed in python2.4.

I just checked and after removing pycurl bzr works with python 2.6 so I
you are right.

http+urllib://  also works :)

Thanks :D

-- 
curl error: necessary data rewind wasn't possible
https://bugs.launchpad.net/bugs/365874
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2009-11-15 Thread unchiujar
An alternative method of hacking around this problem is to install
virtualenv http://pypi.python.org/pypi/virtualenv

Create virtual environment:
virtualenv -p python2.4 /usr/share/virtual_python2.4

Edit the bazaar executable:

nano -w $(which bzr)

and replace  #!/usr/bin/python with
#!/usr/share/virtual_python2.4/bin/python

Also run export PYTHONPATH=/usr/share/pyshared  to give the path to
bzrlib

This keeps the current version of python while running bzr with python
2.4

-- 
curl error: necessary data rewind wasn't possible
https://bugs.launchpad.net/bugs/365874
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2009-11-14 Thread unchiujar
Found and the problem and hacked around it.

It seems bazaar doesn't like python2.5 and  2.6. Changing the system
version to 2.4 fixed the problem.

These are the steps I did to fix it on my system. 
 #  Install python2.4  
 # edit: /usr/share/python/debian_defaults
   and change 
   default-version=python2.4
 # Change the /usr/bin/python symlink from /usr/bin/python2.6 or 2.5 to 
/usr/bin/python2.4 
   rm /usr/bin/python
   ln -s /usr/bin/python2.4 /usr/bin/python
 # Add to $PYTHONPATH the path to bzrlin. I did export 
PYTHONPATH=/usr/share/pyshared:$PYTHONPATH

Do this only if you really need bazaar because this is certain to break
programs that need 2.5 or 2.6

If someone from the bazaar team that actually knows how to fix this
problem  would get around to it, it would be nice.

Thanks :)

** Changed in: bzr (Ubuntu)
   Status: New = Confirmed

-- 
curl error: necessary data rewind wasn't possible
https://bugs.launchpad.net/bugs/365874
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 365874] Re: curl error: necessary data rewind wasn't possible

2009-11-13 Thread unchiujar
Installing the latest version from the nightly build gives the same
error.

** Also affects: bzr (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: bzr
   Status: Incomplete = Confirmed

-- 
curl error: necessary data rewind wasn't possible
https://bugs.launchpad.net/bugs/365874
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs