Linux上使用goagent,出现socket.error:[error 99] cannotthinkphp assignn requested address

不知不觉 7 月就只剩下最后几天了,时间过得太快,我们忙碌得没有空闲去回味。看着熟...
对于苹果来说,本周最大的新闻应该是召开了第三季度的财报。在放暑假之前苹果向投资者...
独立游戏在中国还有很艰难的路要走,但近年来随着手游市场的兴起,很多优秀的国产独立...
毕竟是入门级的手机,总体还是不错的。
虽然现在遭到无视,但相信Apple Music日后可以给予有力的还击,毕竟还年轻。
耐克够义气!耐克和苹果同遭起诉,但费用耐克全包了,良好的关系不是一天建立起来的。
2015年已经过半,目前来看,苹果的HomeKit在年内恐怕是难有起色了。
本周推荐回归淳朴主题,妥妥的治愈和经典乐趣,有禅意十足的《Prune》,欢乐动感的《...
对于许多喜欢休闲游戏的玩家来说对于游戏开发商Ketchapp的大名早已如雷贯耳了,Ketcha...
近日,游戏开发商Upright Bear在苹果商店当中推出了他们的首部作品《熊狸狂奔(Bintu ...
对于一个陪伴我们走过童年的经典老游戏,时间越长,感情就越深,估计很多玩过《吃豆人...
每个夏天我们都需要一款消暑游戏,而这周的静心佳作非《墨染》莫属。
大人气动漫《BLEACH 死神》改编的移动游戏《死神 勇敢灵魂(BLEACH Brave Souls)》本...
游戏场景是以横版的方式展现在玩家面前,玩家需要通过消灭场景当中的怪物,并且触发相...
游戏开发商GameResort在iOS平台当中推出了射击游戏《愚蠢的僵尸(Stupid Zombies)》...
Apple Watch卖得好不好我们不知道,但是配件生产商肯定希望它卖得好,这样就可以多卖...
iPhone 没电了怎么办?我们可以找移动电源或者充电插座,但是糟糕的是,数据线偏偏在这...
PhotoFast推出了一款带USB 3.0和Lighting双接头的优盘产品,它就是i-FlashDrive MAX。
本来是为休闲娱乐而设计的,但现在摇椅也可以为iPhone充电了。一摇一摆,磨磨擦擦,这...
几千元的iPhone如果不小心摔到地上,相信大多数人还是心疼的,那如果是几千元的保护套...
车载智能手机支架种类繁多,我们挑选了其中造型时尚、安全性能极高的 10 款推荐给各位...
你想尝试将 iPad 变成 Surface Pro 3 吗?试试这个有点“胖”的罗技保护壳吧。
用手机拍电影,那还要摄影机干什么?
Ipad2ios501上goagent无法播yt视频socket.error: [Errno 48]
注册时间 最后登录
在线时间205 小时 UID
主题帖子人气
青苹果, 积分 143, 距离下一级还需 57 积分
Ipad2ios501上能看到yt页面,但无法播放视频
命令行运行python proxy.py,显示出错误所在:
socket.error: [Errno 48] Address already in use
估计就是这个原因导致的无法播放,但这个错误应该怎么纠正呢?是8087端口被别的程序占用了吗?
(186 KB, 下载次数: 0)
18:55 上传
注册时间 最后登录
在线时间205 小时 UID
主题帖子人气
截图附上。
注册时间 最后登录
在线时间744 小时 UID
主题帖子人气
注册时间 最后登录
在线时间1974 小时 UID
主题帖子人气
注册时间 最后登录
在线时间2030 小时 UID
主题帖子人气
沒遇到過~SBS那裡打開了麼?wifi的理代設置好了麼? 如果還是不行的話~換一個SBS看看
注册时间 最后登录
在线时间14 小时 UID
主题帖子人气
估计是你之前有python 进程没有关闭,我没有ipad不知道咋关,反正你关闭现有python进程之后再试一次看看。
威锋旗下产品
Hi~我是威威!
沪ICP备号-1 丨 深公安网监备案号 5
增值电信业务经营许可证:
Powered by Discuz!Error Traceback,配置linux的goagent时出现了_firefox吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:58,531贴子:
Error Traceback,配置linux的goagent时出现了收藏
Traceback (most recent call last):
File "proxy.py", line 2764, in &module&
File "proxy.py", line 2741, in main
server = LocalProxyServer((common.PAC_IP, common.PAC_PORT), PACProxyHandler)
File "/usr/lib/python2.7/SocketServer.py", line 408, in __init__
self.server_bind()
File "/usr/lib/python2.7/SocketServer.py", line 419, in server_bind
self.socket.bind(self.server_address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)socket.error: [Errno 98] Address already in use时少了什么依赖吗? ——我喂自己袋盐&&Mozilla/5.0 (X11; U Linux x86_64; rv:27.0) Gecko/ Firefox/27.0
看这 log 是端口被占用了吧。goa 的缺省端口是 8087,试下: sudo lsof -i:8087 ,若有程序占用,kill 之,再kill python ,然后重新运行。
TYPE DEVICE SIZE/OFF NODE NAMEpython
16414 root
TCP localhost.localdomain:8087 @网络孤独行客 ——我喂自己袋盐&&Mozilla/5.0 (X11; U Linux x86_64; rv:27.0) Gecko/ Firefox/27.0
登录百度帐号推荐应用
为兴趣而生,贴吧更懂你。或【暂时解决】goagent用不了出错了:WARNING create_connection to return timeout(‘timed out’,), t... - 推酷
【暂时解决】goagent用不了出错了:WARNING create_connection to return timeout(‘timed out’,), t...
之前用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-65b/goagent-65b/local/proxy.pac
——————————————————
INFO – [Jun 09 11:30:42] resolve common.GOOGLE_HOSTS domain=['', '', 'www.', 'm
ail.', '.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 :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=’’, port=443), 4) timeout
后来又出现其他错误:
INFO – [Jun 09 11:41:41] 127.0.0.1:31373 &GAE GET https://autoproxy-/svn/trunk/gfwlist.txt HTTP/1.
1& 200 134993
INFO – [Jun 09 11:41:50] ‘https://autoproxy-/svn/trunk/gfwlist.txt’ downloaded, try convert it wit
h autoproxy2pac
Traceback (most recent call last):
& File &D:\soft\windows\goagent\goagent-65b\goagent-65b\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 0x/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的官网了:
可以下载最新的源码版本的
然后再去试试,更新GAE服务器上面和本地的goagent,看看能否解决问题。
还是去下载最新版本的goagent再说:
goagent-3.0.zip
解压,然后去运行:
D:\soft\windows\goagent\goagent-3.0\goagent-3.0\server\uploader.bat
结果出错:
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 ‘’&
请按任意键继续. . .
看起来像是:
GAE暂时访问不了了。。。
(1)官网:
也还是打不开。。。
(2)本地的goagent还是用不了。
4.去试试把:
profile = google_hk
然后看看是否有效。
结果直接出错:
“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=’’, 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又可以用了:
所以赶紧去:
下载最新版:
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.
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
Rolling back the update.
Application: version: 1
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
Rolling back the update.
Application: version: 1
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可以继续稳定的使用。
不要再被党干掉了。。。
已发表评论数()
&&登&&&录&&
已收藏到推刊!
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见}

我要回帖

更多关于 freemarker assign 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信