【背景】
之前用goagent用的好好的:
现在最近正在用的是v3.0.5
结果无法使用了:
都是timeout:
—————————————————— GoAgent Version : 3.0.5 (python/2.7.5 gevent/1.0dev pyopenssl/0.13) Listen Address : 127.0.0.1:8087 GAE Mode : https GAE Profile : google_hk GAE APPID : xxx|xxx Pac Server : http://127.0.0.1:8086/proxy.pac Pac File : file://D:/soft/windows/goagent/goagent-65b9542b98d2/goagent-65b9542b98d2/local/proxy.pac —————————————————— INFO – [Jun 09 11:30:42] resolve common.GOOGLE_HOSTS domain=[‘www.google.com’, ‘mail.google.com’, ‘www.l.google.com’, ‘m ail.l.google.com’, ‘www.google.com.hk’] to iplist INFO – [Jun 09 11:30:42] resolve common.GOOGLE_HOSTS domain to iplist=[‘74.125.31.18’, ‘74.125.31.19’, ‘74.125.31.17’, ‘ 173.194.78.83′, ‘74.125.128.103’, ‘74.125.128.105’, ‘74.125.128.104’, ‘74.125.128.106’, ‘74.125.235.85’, ‘74.125.128.147 ‘, ‘74.125.31.83’, ‘173.194.72.83’, ‘74.125.135.83’, ‘173.194.127.244’, ‘173.194.127.242’, ‘173.194.127.243’, ‘173.194.1 27.240′, ‘173.194.127.241’, ‘173.194.117.22’, ‘173.194.117.21’, ‘173.194.72.18’, ‘173.194.72.19’, ‘74.125.135.18’, ‘74.1 25.135.19′, ‘74.125.135.17’, ‘173.194.72.17’, ‘173.194.78.18’, ‘173.194.78.19’, ‘173.194.78.17’, ‘74.125.128.99’, ‘74.12 5.235.86′] INFO – [Jun 09 11:30:42] 127.0.0.1:30070 "FWD CONNECT www.google.com:443 HTTP/1.1" – – WARNING – [Jun 09 11:30:46] create_connection to [(‘74.125.31.18’, 443), (‘74.125.31.19’, 443), (‘173.194.72.83’, 443), (‘74.125.135.83’, 443)] return timeout(‘timed out’,), try again. WARNING – [Jun 09 11:30:50] create_connection to [(‘74.125.31.17’, 443), (‘173.194.78.83’, 443), (‘74.125.128.103’, 443) , (‘173.194.78.19’, 443), (‘74.125.128.104’, 443), (‘173.194.72.19’, 443)] return timeout(‘timed out’,), try again. WARNING – [Jun 09 11:30:54] create_connection to [(‘74.125.128.105’, 443), (‘74.125.128.106’, 443), (‘74.125.235.85’, 44 3), (‘74.125.128.147’, 443), (‘173.194.72.17’, 443), (‘74.125.235.86’, 443), (‘173.194.78.17’, 443), (‘173.194.78.19’, 4 43)] return timeout(‘timed out’,), try again. WARNING – [Jun 09 11:30:58] create_connection to [(‘74.125.31.83’, 443), (‘173.194.127.244’, 443), (‘173.194.127.242’, 4 43), (‘173.194.127.243’, 443), (‘173.194.127.240’, 443), (‘74.125.128.99’, 443), (‘74.125.31.18’, 443), (‘173.194.78.19’ , 443), (‘173.194.78.83’, 443), (‘74.125.135.18’, 443)] return timeout(‘timed out’,), try again. ERROR – [Jun 09 11:30:58] http_util.create_connection((host=’www.google.com’, port=443), 4) timeout |
如图:
后来又出现其他错误:
INFO – [Jun 09 11:41:41] 127.0.0.1:31373 "GAE GET https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt HTTP/1. 1" 200 134993 INFO – [Jun 09 11:41:50] ‘https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt’ downloaded, try convert it wit h autoproxy2pac Traceback (most recent call last): File "D:\soft\windows\goagent\goagent-65b9542b98d2\goagent-65b9542b98d2\local\python27.zip\gevent\threadpool.py", line 193, in _worker File "proxy.py", line 528, in autoproxy2pac IndexError: list index out of range (<ThreadPool at 0x24878d0 0/1/10>, <function autoproxy2pac at 0x02480D70>) failed with IndexError ERROR – [Jun 09 11:41:50] update_pacfile failed: TypeError("cannot concatenate ‘str’ and ‘NoneType’ objects",) Traceback (most recent call last): File "proxy.py", line 503, in update_pacfile TypeError: cannot concatenate ‘str’ and ‘NoneType’ objects |
如图:
所以,需要想办法解决。
【解决过程】
1.网上搜了一圈,也没找到有价值的参考资料。
2.网上搜goagent,找到之前的那个页面,但是已经改版:
出现可供下载安装版的:
而之前该网站是:
各个平台下面的使用介绍。
3.不过,也找到github的官网了:
https://github.com/goagent/goagent
所以:
可以下载最新的源码版本的
然后再去试试,更新GAE服务器上面和本地的goagent,看看能否解决问题。
还是去下载最新版本的goagent再说:
下载到:
goagent-3.0.zip
解压,然后去运行:
D:\soft\windows\goagent\goagent-3.0\goagent-3.0\server\uploader.bat
结果出错:
Host: appengine.google.com Rolling back the update. Traceback (most recent call last): File "python27.py", line 82, in <module> File "uploader.zip\__main__.py", line 34, in <module> File "uploader.zip\__main__.py", line 29, in main File "uploader.zip\appcfg.py", line 105, in main File "uploader.zip\appcfg.py", line 93, in upload File "uploader.zip\google\appengine\tools\appcfg.py", line 3873, in main File "uploader.zip\google\appengine\tools\appcfg.py", line 2443, in Run File "uploader.zip\google\appengine\tools\appcfg.py", line 3638, in __call__ File "uploader.zip\google\appengine\tools\appcfg.py", line 3141, in Rollback File "uploader.zip\google\appengine\tools\appcfg.py", line 3158, in _Rollback File "uploader.zip\google\appengine\tools\appcfg.py", line 2018, in Rollback File "uploader.zip\google\appengine\tools\appcfg.py", line 1698, in Send File "uploader.zip\google\appengine\tools\appengine_rpc.py", line 365, in Send File "D:\soft\windows\goagent\goagent-3.0\goagent-3.0\local\python27.zip\urllib2.py", line 404, in open File "D:\soft\windows\goagent\goagent-3.0\goagent-3.0\local\python27.zip\urllib2.py", line 422, in _open File "D:\soft\windows\goagent\goagent-3.0\goagent-3.0\local\python27.zip\urllib2.py", line 382, in _call_chain File "D:\soft\windows\goagent\goagent-3.0\goagent-3.0\local\python27.zip\urllib2.py", line 1222, in https_open File "D:\soft\windows\goagent\goagent-3.0\goagent-3.0\local\python27.zip\urllib2.py", line 1184, in do_open urllib2.URLError: <urlopen error [Errno timed out] counld not connect to ‘appengine.google.com’> 请按任意键继续. . . |
如图:
看起来像是:
GAE暂时访问不了了。。。
另外:
(1)官网:
https://code.google.com/p/goagent/
也还是打不开。。。
(2)本地的goagent还是用不了。
4.去试试把:
profile = google_hk
换成cn:
然后看看是否有效。
结果直接出错:
“Your client does not have permission to get URL /adsense/app
from this server. That’s all we know.”
然后访问别的网站也是出404错:
所以,还是去改回:
profile = google_hk
5.结果还是不行,还是一堆timeout的问题:
WARNING – [Jun 13 23:07:38] create_ssl_connection to [(‘74.125.128.103’, 443), (‘74.125.128.83’, 443), (‘74.125.128.104’ , 443), (‘173.194.127.240’, 443)] return timeout(‘timed out’,), try again. WARNING – [Jun 13 23:07:38] create_ssl_connection to [(‘74.125.128.103’, 443), (‘74.125.128.83’, 443), (‘173.194.117.22’ , 443), (‘173.194.127.240’, 443)] return timeout(‘timed out’,), try again. WARNING – [Jun 13 23:07:38] create_connection to [(‘173.194.117.21’, 443), (‘173.194.72.19’, 443), (‘74.125.128.105’, 44 3), (‘74.125.128.99’, 443), (‘74.125.128.17’, 443), (‘74.125.128.17’, 443), (‘74.125.128.104’, 443), (‘74.125.135.17’, 4 43), (‘74.125.235.86’, 443), (‘74.125.128.18’, 443)] return timeout(‘timed out’,), try again. ERROR – [Jun 13 23:07:38] http_util.create_connection((host=’www.google.com’, port=443), 4) timeout WARNING – [Jun 13 23:07:38] create_ssl_connection to [(‘74.125.128.103’, 443), (‘74.125.128.83’, 443), (‘173.194.72.17’, 443), (‘173.194.117.22’, 443)] return timeout(‘timed out’,), try again. WARNING – [Jun 13 23:07:42] create_ssl_connection to [(‘74.125.128.103’, 443), (‘74.125.128.83’, 443), (‘173.194.78.83’, 443), (‘173.194.127.244’, 443)] return timeout(‘timed out’,), try again. WARNING – [Jun 13 23:07:42] create_ssl_connection to [(‘74.125.128.103’, 443), (‘74.125.128.83’, 443), (‘74.125.128.147’ , 443), (‘173.194.72.83’, 443)] return timeout(‘timed out’,), try again. WARNING – [Jun 13 23:07:44] create_ssl_connection to [(‘74.125.128.103’, 443), (‘74.125.128.83’, 443), (‘74.125.128.104’ , 443), (‘74.125.135.83’, 443), (‘173.194.78.19’, 443), (‘74.125.128.103’, 443)] return timeout(‘timed out’,), try again |
6.不过后来的后来,经过多次尝试,结果goagent又可以用了:
所以赶紧去:
https://code.google.com/p/goagent/
下载最新版:
goagent 3.1.18
解压后得到:
goagent-goagent-e1cd2b5
然后去:
D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\proxy.ini
把自己的appid加上。
然后再去运行:
D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\server\uploader.bat
然后去上传:
结果又出错了:
Scanning files on local disk. Cloning 1 static file. 2014-06-13 23:13:53,130 ERROR __init__.py:1586 An unexpected error occurred. Aborting. Traceback (most recent call last): File "uploader.zip\google\appengine\tools\appcfg.py", line 2070, in DoUpload File "uploader.zip\google\appengine\tools\appcfg.py", line 1793, in Begin File "uploader.zip\google\appengine\tools\appcfg.py", line 1788, in CloneFiles File "uploader.zip\google\appengine\tools\appcfg.py", line 1698, in Send File "uploader.zip\google\appengine\tools\appengine_rpc.py", line 365, in Send File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\urllib2.py", line 404, in open File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\urllib2.py", line 422, in _open File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\urllib2.py", line 382, in _call_chain File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\urllib2.py", line 1222, in https_open File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\urllib2.py", line 1187, in do_open File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\httplib.py", line 1045, in getresponse File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\httplib.py", line 409, in begin File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\httplib.py", line 365, in _read_status File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\socket.py", line 476, in readline File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\ssl.py", line 241, in recv File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\ssl.py", line 160, in read error: [Errno 10053] Rolling back the update. Traceback (most recent call last): File "python27.py", line 82, in <module> File "uploader.zip\__main__.py", line 34, in <module> File "uploader.zip\__main__.py", line 29, in main File "uploader.zip\appcfg.py", line 105, in main File "uploader.zip\appcfg.py", line 94, in upload File "uploader.zip\google\appengine\tools\appcfg.py", line 3873, in main File "uploader.zip\google\appengine\tools\appcfg.py", line 2443, in Run File "uploader.zip\google\appengine\tools\appcfg.py", line 3638, in __call__ File "uploader.zip\google\appengine\tools\appcfg.py", line 2865, in Update File "uploader.zip\google\appengine\tools\appcfg.py", line 2854, in UpdateVersion File "uploader.zip\google\appengine\tools\appcfg.py", line 2070, in DoUpload File "uploader.zip\google\appengine\tools\appcfg.py", line 1793, in Begin File "uploader.zip\google\appengine\tools\appcfg.py", line 1788, in CloneFiles File "uploader.zip\google\appengine\tools\appcfg.py", line 1698, in Send File "uploader.zip\google\appengine\tools\appengine_rpc.py", line 365, in Send File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\urllib2.py", line 404, in open File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\urllib2.py", line 422, in _open File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\urllib2.py", line 382, in _call_chain File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\urllib2.py", line 1222, in https_open File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\urllib2.py", line 1187, in do_open File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\httplib.py", line 1045, in getresponse File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\httplib.py", line 409, in begin File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\httplib.py", line 365, in _read_status File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\socket.py", line 476, in readline File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\ssl.py", line 241, in recv File "D:\soft\windows\goagent\goagent 3.1.18\goagent-goagent-e1cd2b5\local\python27.zip\ssl.py", line 160, in read socket.error: [Errno 10053] 请按任意键继续. . . |
不过,后来再去试试几次,就可以了:
==================================== GoAgent服务端部署程序, 开始上传 gae 应用文件夹 Linux/Mac 用户, 请使用 python uploader.zip 来上传应用 ==================================== 请输入您的appid, 多个appid请用|号隔开 注意:appid 请勿包含 android/ios 字样,否则可能被某些网站识别成移动设备。 APPID:xxx|yyyy Application: xxx Host: appengine.google.com Rolling back the update. Application: xxx; version: 1 Host: appengine.google.com Starting update of app: xxx, version: 1 Scanning files on local disk. Cloning 1 static file. Cloning 2 application files. Compilation starting. Compilation completed. Starting deployment. Checking if deployment succeeded. Deployment successful. Checking if updated app version is serving. Completed update of app: xxx, version: 1 Application: yyyy Host: appengine.google.com Rolling back the update. Application: yyyy; version: 1 Host: appengine.google.com Starting update of app: yyyy, version: 1 Scanning files on local disk. Cloning 1 static file. Cloning 2 application files. Uploading 1 files and blobs. Uploaded 1 files and blobs Compilation starting. Compilation completed. Starting deployment. Checking if deployment succeeded. Deployment successful. Checking if updated app version is serving. Completed update of app: yyyy, version: 1 上传成功,请不要忘记编辑proxy.ini把你的appid填进去,谢谢。按回车键退出程序。 |
并且,参考:
“注意: 请清空 hosts 再使用 goagent ! 如果出现 404, 更新到最新版 ”
去看看本地的hosts文件:
127.0.0.1 localhost 127.0.0.1 localhost |
所以没啥要清空的。
现在,虽然goagent使用期间,也还是会出现一些错误信息:
但是,打开网页,比之前好多了。
比如现在也可以打开youtube了:
【总结】
暂时,就凑合用这个最新的3.1.18的goagent吧。
希望以后goagent可以继续稳定的使用。
不要再被党干掉了。。。
转载请注明:在路上 » 【暂时解决】goagent用不了出错了:WARNING create_connection to return timeout(‘timed out’,), try again