branching from Launchpad behind a proxy

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Jan 21 10:00:33 GMT 2010


>>>>> Tim Michelsen <timmichelsen at gmx-topmail.de> writes:

<snip/>

    > bzr xmlrpc client doesn't use http proxy, causing network errors trying to
    > resolve lp: urls
    > https://bugs.launchpad.net/python/+bug/186920

As this URL mentions, this is fixed in 2.1.0b2, previous versions
of bzr didn't include the fix.

The bug was that xmlrpc *python* library had to be used in a
specific way to handle proxies.

If you use a previous version, try upgrading. If you don't, file
a new bug with details about your proxy settings and the relevant
part of your .bzr.log after issuing a failing command where you
will specify -Dhttp (and even -Derror) so we get the needed
details to make a diagnosis.

  bzr branch -Dhttp -Derror info lp:bzr
  bzr branch -Dhhtp -Derror info http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/

Make sure to replace your password with xxx if it appears. Be
aware that Authorization HTTP headers may also contain your
password slightly encrypted, you can replace the encrypted string
by xxx there.

But don't modify anything else, as mentioned in
https://answers.launchpad.net/bzr/+question/60728, setting a
proxy can go wrong very easily, if you don't tell us *exactly*
what you used, we can't understand what is going wrong for you.

A proxy can be set under Unix with:

 export HTTP_PROXY=http://proxy.example.com:1234
 export HTTP_PROXY= http://user:password@proxy.example.com:1234

On windows you need to replace export by set:

  set HTTP_PROXY=http://proxy.example.com:1234

    > Error while using "bzr branch" through proxy
    > https://bugs.launchpad.net/bzr/+bug/83954

Fixed in 0.15.

    > no able to branch from launchpad behind proxy (squid)
    > https://bugs.launchpad.net/bzr/+bug/509543

This is a duplicate of #186920, same comments apply.

    > how to branch from launchpad behind squid?
    > https://answers.launchpad.net/bzr/+question/60728

I answered you there asking for details, can you provide them so
we can find a solution to your problem ?

    > For comparison, in TortoiseSVN, I just edit the 
    > corresponding setting and it works.

Example ?

    > 
    > For Mercurial I could use a global setting or run hg
    > --config http_proxy.host=proxy.example.com:8000 clone
    > http://hg.example.com/repo which works with bitbucket,
    > their major hosting site using http and not https.

The proxy syntax is not standardized, bzr requires a leading
'http://' in front of the host name. One reason for this is that
you can have:

  HTTP_PROXY=https://proxy.example.com:1443
  HTTPS_PROXY=http://proxy.example.com:1080

i.e. use a different protocol than the one used for the
end-to-end communication.

Proxying http through https is a bit silly, but using the simpler
http on an intranet while still using https for encrypting the
end-to-end communication fully makes sense.

    > So if there is something obvious that I and others are 
    > overlooking here, please point us to the 
    > documentation.

Until we understand what is *not* working for you, we can't tell
you what needs to be fixed.

Shooting in the dark I can think of only two possibles causes:

- bzr doesn't recognize your proxy settings due to some
  as-yet-to-be-understood reason,
- your proxy use a protocol that bzr doesn't support.

Both requires more details only available to you so far.

    Vincent




More information about the bazaar mailing list