版本:goagent最新版 3.1.18
系统:CentOS 6.5 虚拟机
File "proxy.py", line 1505, in AdvancedProxyHandler
openssl_context = OpenSSL.SSL.Context(OpenSSL.SSL.TLSv1_METHOD)
~/goagent/local/proxy.py 文件:第1547行开始
系统:CentOS 6.5 虚拟机
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
[default7@localhost server]$ python uploader.
zip
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
GoAgent服务端部署程序, 开始上传 gae 应用文件夹
Linux
/
Mac 用户, 请使用 python uploader.
zip
来上传应用
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
请输入您的appid, 多个appid请用|号隔开
注意:appid 请勿包含 android
/
ios 字样,否则可能被某些网站识别成移动设备。
APPID:app4centos
Application: app4centos
Host: appengine.google.com
Rolling back the update.
Email: default7@zbphp.com
Password
for
default7@zbphp.com:
Application: app4centos; version:
1
Host: appengine.google.com
Starting update of app: app4centos, version:
1
Scanning files on local disk.
Email: default7@zbphp.com
Password
for
default7@zbphp.com:
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: app4centos, version:
1
上传成功,请不要忘记编辑proxy.ini把你的appid填进去,谢谢。按回车键退出程序。
[default7@localhost local]$ python proxy.py
Traceback (most recent call last):
File
"proxy.py"
, line
1490
,
in
<module>
class
AdvancedProxyHandler(SimpleProxyHandler):
File
"proxy.py"
, line
1505
,
in
AdvancedProxyHandler
openssl_context
=
OpenSSL.SSL.Context(OpenSSL.SSL.TLSv1_METHOD)
AttributeError:
'NoneType'
object
has no attribute
'SSL'
[default7@localhost local]$
|
File "proxy.py", line 1505, in AdvancedProxyHandler
openssl_context = OpenSSL.SSL.Context(OpenSSL.SSL.TLSv1_METHOD)
~/goagent/local/proxy.py 文件:第1547行开始
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
if
client_hello:
sock.sendall(client_hello)
if
gevent
and
isinstance
(sock, gevent.socket.socket):
sock.data
=
data
=
sock.recv(
4096
)
else
:
data
=
sock.recv(
4096
, socket.MSG_PEEK)
if
not
data:
logging.debug(
'create_tcp_connection %r with client_hello return NULL byte, continue %r'
, ipaddr, time.time()
-
start_time)
raise
socket.timeout(
'timed out'
)
# record TCP connection time with client hello
self
.tcp_connection_time_with_clienthello[ipaddr]
=
time.time()
-
start_time
# set timeout
sock.settimeout(timeout)
# put tcp socket object to output queobj
queobj.put(sock)
|
我现在安装goagent,上传成功,但是使用python proxy.ini却无法启动,报错。如何解决(by default7#zbphp.com)
现在终于可出来提示来,原来必须安装pyOpenSSL
1
|
yum install pyOpenSSL
|