bazaar behind a firewall is so slow
I am behind a corporate firewall. So I set http_proxy environment. Then I used
"bzr branch http://
mysql-6.0" to download mysql 6.0 source code. However it has not been
finished yet for three days!!! So slow.
I am wondering if it is bazaar problem or my proxy server problem.
Thanks,
Xuekun
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Martin Pool
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
On Wed, Jun 25, 2008 at 11:18 AM, xuekun
<email address hidden> wrote:
> New question #37308 on Bazaar:
> https:/
>
> I am behind a corporate firewall. So I set http_proxy environment. Then I used
> "bzr branch http://
> mysql-6.0" to download mysql 6.0 source code. However it has not been
> finished yet for three days!!! So slow.
>
> I am wondering if it is bazaar problem or my proxy server problem.
That does sound pretty slow unless your network is extremely
high-latency. It would be useful if you could either run with -Dhpss
(case sensitive) and send part of that log, or record a network trace
using eg
tcpdump -p -w bzr.pcap -s0 tcp port 80
Change 80 to whatever is your proxy server port.
This will include any other http traffic so you might want to avoid
including any sensitive traffic. Let that run for a while. Then
please attach the capture to this ticket.
--
Martin <http://
Revision history for this message
|
#2 |
Thanks. I used -Dhpss and below was the log.
From the log, I found some things.
1. "failed to import pycurl". Is pycurl necessary needed?
2. The time stamp looks slow, but should be ok. The problem maybe is after some times, time out happened, then quit.
3. Then I retry. And bzr seems to retrieve from the repository begining, instead of from the breaking point. So I wonder if bzr support "resume broken download"?
0.043 encoding stdout as sys.stdout encoding 'UTF-8'
0.043 bzr arguments: [u'branch', u'http://
0.043 looking for plugins in /root/.
0.043 looking for plugins in /usr/lib64/
0.043 Plugin name __init__ already loaded
0.043 Plugin name __init__ already loaded
0.046 looking for plugins in /usr/lib/
0.053 encoding stdout as sys.stdout encoding 'UTF-8'
0.072 failed to import pycurl: No module named pycurl
0.072 failed to instantiate transport <bzrlib.
96.203 Using fetch logic to copy between KnitPackReposit
96.204 http readv of ffe7ea0245adbf3
1666.489 http readv of bdc6e0637a4fb2d
1694.377 http readv of 4811c954b92388f
1696.081 http readv of 35e689f26129697
1697.793 http readv of 2b47f16144cbb06
1718.946 http readv of ffe7ea0245adbf3
1725.727 http readv of ffe7ea0245adbf3
1764.035 http readv of ffe7ea0245adbf3
1801.148 http readv of ffe7ea0245adbf3
1880.286 http readv of ffe7ea0245adbf3
1933.278 http readv of ffe7ea0245adbf3
2007.933 http readv of ffe7ea0245adbf3
2024.159 http readv of ffe7ea0245adbf3
2068.556 http readv of ffe7ea0245adbf3
2178.563 http readv of ffe7ea0245adbf3
2278.438 http readv of ffe7ea0245adbf3
2320.014 http readv of ffe7ea0245adbf3
2475.164 http readv of ffe7ea0245adbf3
2523.279 http readv of ffe7ea0245adbf3
2591.572 http readv of ffe7ea0245adbf3
2726.370 http readv of ffe7ea0245adbf3
2796.388 http readv of ffe7ea0245adbf3
2875.238 http readv of ffe7ea0245adbf3
3079.222 http readv of ffe7ea0245adbf3
3130.691 http readv of ffe7ea0245adbf3
3211.115 http readv of ffe7ea0245adbf3
3245.180 http readv of ffe7ea0245adbf3
3315.571 http readv of ffe7ea0245adbf3
3369.849 http readv of ffe7ea0245adbf3
3440.412 http readv of ffe7ea0245adbf3
3533.140 http readv of ffe7ea0245adbf3
3637.010 http readv of ffe7ea0245adbf3
3639.674 http readv of ffe7ea0245adbf3
3769.350 http readv of ffe7ea0245adbf3
3910.958 http readv of ffe7ea0245adbf3
4004.701 http readv of ffe7ea0245adbf3
4162.795 http readv of ffe7ea0245adbf3
4344.323 http readv of ffe7ea0245adbf3
4429.438 http readv of ffe7ea0245adbf3
4576.718 http readv of ffe7ea0245adbf3
4618.725 http readv of ffe7ea0245adbf3
4696.807 http readv of ffe7ea0245adbf3
4838.298 http readv of ffe7ea0245adbf3
4858.370 http readv of ffe7ea0245adbf3
4937.672 http readv of ffe7ea0245adbf3
4997.801 http readv of ffe7ea0245adbf3
5053.498 http readv of ffe7ea0245adbf3
5152.279 http readv of ffe7ea0245adbf3
5196.432 http readv of ffe7ea0245adbf3
5244.908 http readv of ffe7ea0245adbf3
5302.949 http readv of ffe7ea0245adbf3
5350.593 http readv of ffe7ea0245adbf3
6251.494 Traceback (most recent call last):
File "/usr/lib64/
return run_bzr(argv)
File "/usr/lib64/
ret = run(*run_argv)
File "/usr/lib64/
return self.run(
File "/usr/lib64/
hardlink=
File "/usr/lib64/
result_
File "/usr/lib64/
return inter.fetch(
File "/usr/lib64/
return unbound(self, *args, **kwargs)
File "/usr/lib64/
find_
File "/usr/lib64/
return unbound(self, *args, **kwargs)
File "/usr/lib64/
return self._walk_
File "/usr/lib64/
next_revs, ghosts = searcher.
File "/usr/lib64/
self._advance()
File "/usr/lib64/
found, ghosts, next, parents = self._do_
File "/usr/lib64/
parent_map = self._parents_
File "/usr/lib64/
new_parents = self._real_
File "/usr/lib64/
for index, key, value, refs in index.iter_
File "/usr/lib64/
for node in index.iter_
File "/usr/lib64/
return (result[1] for result in bisect_multi_bytes(
File "/usr/lib64/
search_results = content_
File "/usr/lib64/
self.
File "/usr/lib64/
for offset, data in readv_data:
File "/usr/lib64/
for cur_coal, rfile in self._coalesce_
File "/usr/lib64/
for c, rfile in get_and_
File "/usr/lib64/
code, rfile = self._get(relpath, coalesced)
File "/usr/lib64/
response = self._perform(
File "/usr/lib64/
response = self._opener.
File "/usr/lib64/
response = meth(req, response)
File "/usr/lib64/
code, msg, hdrs)
File "/usr/lib64/
return self._call_
File "/usr/lib64/
result = func(*args)
File "/usr/lib64/
'Unable to handle http code %d: %s'
InvalidHttpResp
Revision history for this message
|
#3 |
Thanks for the details.
As a workaround, you can try accessing the branch using bzr+ssh:
Revision history for this message
|
#4 |
Could you give me more info how to use "bzr+ssh"? Is it possible to
bypass the corporate firewall?
It failed with "bzr branch
bzr+ssh:
The error are:
ssh: connect to host bazaar.
bzr: ERROR: Connection closed: please check connectivity and permissions
I also noticed that "bzr+ssh" doesn't support "~" in URL scheme
(https:/
Thx, Xuekun
Revision history for this message
|
#5 |
On Thu, Jun 26, 2008 at 12:17 PM, xuekun
<email address hidden> wrote:
> Question #37308 on Bazaar changed:
> https:/
>
> Status: Answered => Open
>
> xuekun is still having a problem:
> Could you give me more info how to use "bzr+ssh"? Is it possible to
> bypass the corporate firewall?
>
> It failed with "bzr branch
> bzr+ssh:
>
> The error are:
> ssh: connect to host bazaar.
> bzr: ERROR: Connection closed: please check connectivity and permissions
It looks like your firewall does not by default allow outgoing
connections to port 22. You'll need to check with your administrator
whether there is any way to make outgoing ssh connections. You may be
able to put something in ~/.ssh/config
--
Martin <http://
Revision history for this message
|
#6 |
Finally I downloaded the files from a US machine. I'm in China, far from Europe. :-)
However I still need to say: Thank you!
BTW. One suggestion is I hope bazaar support such "resume broken download" feature. :-)