使用polipo解决webrtc gclient sync失败的问题
问题
在同步webrtc代码,使用gclient sync,如下只给git配置socks5代理总会失败。 [http] proxy = socks5://127.0.0.1:22222 [https] proxy = socks5://127.0.0.1:22222 会报如下错误 ____ running 'cipd ensure -log-level error -root /home/xxx/webrtc/webrtc-checkout -ensure-file /tmp/tmpSfax2e.ensure' in '.' Errors: failed to resolve infra/tools/luci/isolate/linux-amd64@git_revision:25958d48e89e980e2a97daeddc977fb5e2e1fb8c (line 4): Post https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion: dial tcp 64.13.232.149:443: i/o timeout failed to resolve infra/tools/luci/isolated/linux-amd64@git_revision:25958d48e89e980e2a97daeddc977fb5e2e1fb8c (line 5): Post https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion: dial tcp 64.13.232.149:443: i/o timeout failed to resolve infra/tools/luci/swarming/linux-amd64@git_revision:25958d48e89e980e2a97daeddc977fb5e2e1fb8c (line 6): Post https://chrome-infra-packages.appspot.com/prpc/cipd.Repository/ResolveVersion: dial tcp 64.13.232.149:443: i/o timeout Error: Command 'cipd ensure -log-level error -root /home/xxx/webrtc/webrtc-checkout -ensure-file /tmp/tmpSfax2e.ensure' returned non-zero exit status 1
分析
发现是gclient会访问一些被墙掉的网址,需要配置http的全局代理。
解决
使用polipo,将socks5代理转换成全局的http代理。 1.安装polipo sudo apt-get install polipo 2.配置polipo, vi /etc/polipo/config 添加 socksParentProxy=127.0.0.1:22223 3.重启服务 sudo service polipo restart 4.配置全局http代理 export http_proxy=127.0.0.1:8123 export https_proxy=127.0.0.1:8123 5.这时gclient sync就能成功了
- 分享
- 举报

-
浏览量:555次2019-08-21 17:25:46
-
浏览量:799次2017-10-21 22:23:16
-
浏览量:292次2020-03-12 10:36:28
-
浏览量:391次2020-04-07 11:13:18
-
浏览量:359次2019-06-21 13:51:01
-
浏览量:447次2020-03-03 22:19:33
-
浏览量:254次2018-08-16 11:32:59
-
浏览量:313次2018-01-03 22:57:35
-
浏览量:461次2020-02-24 11:24:31
-
浏览量:349次2020-03-25 20:08:11
-
浏览量:270次2020-03-20 15:21:46
-
浏览量:389次2019-08-27 15:57:36
-
浏览量:353次2018-03-26 12:17:48
-
浏览量:302次2020-05-14 10:30:47
-
浏览量:267次2020-03-19 16:15:11
-
浏览量:266次2019-11-11 14:28:44
-
浏览量:267次2018-02-23 19:48:42
-
浏览量:378次2018-09-20 13:50:12
-
浏览量:388次2018-11-04 11:11:54
-
广告/SPAM
-
恶意灌水
-
违规内容
-
文不对题
-
重复发帖

494816491







举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明