ubuntu14.04.1 chrome+goagent
来源:互联网 发布:双色球大数据 编辑:程序博客网 时间:2024/04/28 00:22
最近有更新goagent 3.18和3.22,最近网络环境有变,
今天在ubuntu14.04.1上配置goagent3.2.2:
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno timed out] counld not connect to 'appengine.google.com'>
也一直想过是不是应该开一个老版本的aogent,然后上传,但是事实是:
1. hosts里头的google的那些ip可以删掉,否则会有奇怪的报错,一般都是解析不到域名啥的.
2 .不开代理,直接上传,否则也会有报错.
3. 如果失败,反复几次就好了。
即不要怕麻烦,反复执行root@zhangbin-CW35S:/home/zhangbin/Documents/goagent-3.1.22_goagent-986b934/server#python uploader.zip 就好了.
###############
由于是在linux上,所以启动goagent的方式是:
root@zhangbin-CW35S:/home/zhangbin/Documents/goagent-3.1.22_goagent-986b934/local# python proxy.py
Traceback (most recent call last):
File "proxy.py", line 1415, in <module>
common = Common()
File "proxy.py", line 1137, in __init__
self.CONFIG.read([self.CONFIG_FILENAME, self.CONFIG_USER_FILENAME])
File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
self._read(fp, filename)
File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
raise e
ConfigParser.ParsingError: File contains parsing errors: /home/zhangbin/Documents/goagent-3.1.22_goagent-986b934/local/proxy.ini
[line 12]: 'password =密码\r\n'
原来是不需要添加密码的
删掉之后:
root@zhangbin-CW35S:/home/zhangbin/Documents/goagent-3.1.22_goagent-986b934/local# python proxy.py
WARNING - [Aug 22 14:35:35] *NOTE*, if you want to fix high cpu usage, please decrease [gae]window
------------------------------------------------------
GoAgent Version : 3.1.22 (python/2.7.6 gevent/1.0.1 pyopenssl/0.13)
Listen Address : 127.0.0.1:8087
GAE Mode : https
GAE Profile : ipv4
GAE APPID 这个要填写
Pac Server : http://192.168.1.33:8086/proxy.pac
Pac File : file:///home/zhangbin/Documents/goagent-3.1.22_goagent-986b934/local/proxy.pac
------------------------------------------------------
Updating certificates in /etc/ssl/certs... WARNING: Skipping duplicate certificate Go_Daddy_Class_2_CA.pem
WARNING: Skipping duplicate certificate Go_Daddy_Class_2_CA.pem
WARNING: Skipping duplicate certificate UbuntuOne-ValiCert_Class_2_VA.pem
WARNING: Skipping duplicate certificate UbuntuOne-ValiCert_Class_2_VA.pem
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
######################
如同 http://code.google.com/p/goagent/issues/detail?id=15371
Pac Server : http://222.20.59.209:8086/proxy.pacPac File : file:///home/xcszbdnl/NetWorkConnection/goagent-goagent-3591602/local/proxy.pac------------------------------------------------------INFO - [Jul 22 23:09:31] resolve common.IPLIST_MAP names=['google_cn', 'google_hk', 'google_talk', 'google_ipv6', 'mtalk.google.com'] to iplistERROR - [Jul 22 23:09:39] resolve google_cn host return empty! please retry!----------------------------------------Exception happened during processing of request from ('127.0.0.1', 59615)Traceback (most recent call last): File "/usr/lib64/python2.7/SocketServer.py", line 582, in process_request_thread self.finish_request(request, client_address) File "proxy.py", line 2276, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib64/python2.7/SocketServer.py", line 636, in __init__ self.setup() File "proxy.py", line 971, in setup self.first_run() File "proxy.py", line 2511, in first_run common.resolve_iplist() File "proxy.py", line 2140, in resolve_iplist sys.exit(-1)SystemExit: -1
给ubuntu的chrome加入 --ignore-certificate-errors --allow-running-insecure-content 也不行。(http://www.lijingquan.net/chrome-goagent-ssl-error.html#6380)
chrome官方 :
参考 https://support.google.com/chrome/answer/4454607?hl=zh-Hans “无法连接到真正的…”
如果您访问的是疑似不安全的网站,则Google Chrome可能会显示此警告。您需要在稍后Chrome能够进行安全连接、从其他网络重新连接或刷新该页面时尝试访问该网站。
背景信息
当您连接到某个使用SSL传输数据的网站时,托管该网站的服务器会向Google Chrome和其他浏览器提供证书以验证其身份。Chrome会检查证书中的地址,确保该地址与网站地址相匹配,以便您与证书上命名的网站(而非假冒网站)进行通信。
可能导致您看到此提醒的原因
- 网站的证书可能存在问题。证书可能丢失、无效或格式有误。
- 网络连接或防火墙可能存在问题。
- ubuntu14.04.1 chrome+goagent
- goagent linux chrome linux
- ubuntu14.04.1安装chrome 浏览器
- [转]Chrome+GoAgent+SwitchySharp教程
- 使用chrome+goagent+Proxy SwitchySharp
- ubuntu12.04配置goagent+chrome
- GoAgent + chrome 实现代理智能切换
- 在chrome使用goagent (windows/linux)
- 安装配置使用chrome+goagent登陆yutube
- 在chrome使用goagent (windows/linux)
- Ubuntu14.04安装chrome
- ubuntu14.04安装chrome
- Ubuntu14.4 安装 Chrome
- ubuntu14.04 install chrome
- Goagent
- goAgent
- goagent
- goagent
- 注册表模式
- iSCSI技术白皮书
- 机房收费系统问题集(6)——上、下机
- Hive基础知识
- Objective-C 和 Core Foundation 对象相互转换的内存管理总结
- ubuntu14.04.1 chrome+goagent
- js note
- str函数详解
- UVA - 572 Oil Deposits
- 红杏插件,红杏VIP,打开google
- Eclipse快捷键 10个最有用的快捷键
- HDU 1698 Just a Hook (线段树区间更新)
- XDOJ1121 - 排序
- 何使用派生类指针指向基类,即downcast向下转型?