openssl_context = OpenSSL.SSL.Context(OpenSSL.SSL.TLSv1_METHOD)

版本:goagent最新版 3.1.18
系统:CentOS 6.5 虚拟机

Python code ?
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行开始

Python code ?
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 

Python code ?
1
yum install pyOpenSSL



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值