Open hzdlive opened 8 years ago
sudo apt-get install libnss3-tools python-openssl sudo apt-get install -y python-gtk2 这些都安装了
日志报错的是ip的证书无效,可以检查 gae_proxy/local/cacert.pem 文件是否正常
如果文件正常,那就是环境问题,怀疑OpenSSL模块问题,能否升级这个模块的版本? 看日志只支持TLSv1,目前重点怀疑对象
我是在windows环境下运行无错后, 复制进lubuntu的 看了gae_proxy/local/cacert.pem文件,正常 OpenSSL模块我用sudo apt-get update和sudo apt-get upgrade命令都运行过了,应该是最新的。
原因找到了,我的lubuntu系统时间没有设置成当前时间 执行date -s 后就运行正常了
好的,看来SSL协议还是会受系统时间影响的
root@cubieboard4:~# cd ./XX-Net-2.8.5 root@cubieboard4:~/XX-Net-2.8.5# sudo ./start.sh /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning) Jan 01 01:59:41.381 - [INFO] start XX-Net 2.8.9 Jan 01 01:59:41.381 - [DEBUG] start confirm_xxnet_exit Jan 01 01:59:41.384 - [DEBUG] good, xxnet:8087 cleared! Jan 01 01:59:41.386 - [DEBUG] good, xxnet:8085 clear! Jan 01 01:59:41.386 - [DEBUG] finished confirm_xxnet_exit Jan 01 01:59:41.398 - [INFO] load manual.ini success Jan 01 01:59:41.459 - [DEBUG] network is ok, cost:19 ms Jan 01 01:59:41.460 - [INFO] SSL use version:TLSv1 Jan 01 01:59:41.462 - [INFO] load ip range file:/root/XX-Net-2.8.5/gae_proxy/local/ip_range.txt Jan 01 01:59:41.592 - [INFO] load google ip_list num:3000, gws num:3000 Jan 01 01:59:41.638 - [INFO] load manual.ini success Jan 01 01:59:41.639 - [DEBUG] ## GAEProxy set keep_running: True Jan 01 01:59:41.641 - [INFO] ------------------------------------------------------ Jan 01 01:59:41.642 - [INFO] Python Version : 2.7.6 Jan 01 01:59:41.642 - [INFO] OS : Dist:Linaro; Version:14.04; ID:trusty Jan 01 01:59:41.642 - [INFO] Listen Address : 0.0.0.0:8087 Jan 01 01:59:41.642 - [INFO] GAE APPID : gicoer|goagen201201|goagen201202|goagen201203|goagen201204|goagen201205|goagen201206|goagen201207|goagen201208|goagen201209|goagen201210 Jan 01 01:59:41.642 - [INFO] Pac Server : http://0.0.0.0:8086/proxy.pac Jan 01 01:59:41.643 - [INFO] ------------------------------------------------------ Jan 01 01:59:41.645 - [INFO] server 0.0.0.0:8087 started. Jan 01 01:59:41.646 - [INFO] server 0.0.0.0:8086 started. Jan 01 01:59:41.734 - [INFO] module gae_proxy started Jan 01 01:59:41.735 - [INFO] start gae_proxy time cost 348 Jan 01 01:59:41.735 - [INFO] begin to start web control Jan 01 01:59:41.735 - [INFO] server 127.0.0.1:8085 started. Jan 01 01:59:41.736 - [INFO] launcher web control started. Jan 01 01:59:42.741 - [INFO] get uuid:b1727f4b-ffcb-4d69-8f02-8d99e4665565 Jan 01 01:59:42.782 - [INFO] GAE CONNECT xxnet-update.appspot.com:443 Jan 01 01:59:42.827 - [DEBUG] GAE CONNECT GET https://xxnet-update.appspot.com/update.json?uuid=b1727f4b-ffcb-4d69-8f02-8d99e4665565&version=2.8.9&platform=Linux-3.4.39-armv7l-with-Linaro-14.04-trusty Jan 01 01:59:42.829 - [DEBUG] get ip:202.248.248.159 t:108 Jan 01 01:59:42.833 - [DEBUG] get ip:202.248.151.246 t:108 Jan 01 01:59:42.935 - [DEBUG] get ip:1.255.22.203 t:109 Jan 01 01:59:42.939 - [DEBUG] connect 202.248.248.159 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:109 h:0 Jan 01 01:59:42.944 - [DEBUG] connect 202.248.151.246 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:111 h:0 Jan 01 01:59:42.947 - [DEBUG] report_connect_fail:202.248.248.159 Jan 01 01:59:42.952 - [DEBUG] report_connect_fail:202.248.151.246 Jan 01 01:59:43.036 - [DEBUG] get ip:202.248.248.221 t:109 Jan 01 01:59:43.049 - [DEBUG] connect 1.255.22.203 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:113 h:0 Jan 01 01:59:43.052 - [DEBUG] report_connect_fail:1.255.22.203 Jan 01 01:59:43.130 - [DEBUG] get ip:202.248.248.241 t:125 Jan 01 01:59:43.138 - [DEBUG] get ip:202.248.151.39 t:125 Jan 01 01:59:43.150 - [DEBUG] connect 202.248.248.221 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:113 h:0 Jan 01 01:59:43.153 - [DEBUG] report_connect_fail:202.248.248.221 Jan 01 01:59:43.239 - [DEBUG] get ip:202.216.0.85 t:125 Jan 01 01:59:43.255 - [DEBUG] connect 202.248.151.39 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:116 h:0 Jan 01 01:59:43.258 - [DEBUG] report_connect_fail:202.248.151.39 Jan 01 01:59:43.341 - [DEBUG] get ip:202.248.151.144 t:125 Jan 01 01:59:43.387 - [DEBUG] connect 202.216.0.85 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:146 h:0 Jan 01 01:59:43.390 - [DEBUG] report_connect_fail:202.216.0.85 Jan 01 01:59:43.432 - [DEBUG] get ip:202.248.151.25 t:125 Jan 01 01:59:43.443 - [DEBUG] get ip:202.248.151.107 t:140 Jan 01 01:59:43.449 - [DEBUG] connect 202.248.151.144 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:106 h:0 Jan 01 01:59:43.451 - [DEBUG] report_connect_fail:202.248.151.144 Jan 01 01:59:43.545 - [DEBUG] get ip:202.248.248.236 t:140 Jan 01 01:59:43.551 - [DEBUG] connect 202.248.151.107 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:107 h:0 Jan 01 01:59:43.559 - [DEBUG] report_connect_fail:202.248.151.107 Jan 01 01:59:43.556 - [DEBUG] connect 202.248.151.25 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:123 h:0 Jan 01 01:59:43.564 - [DEBUG] report_connect_fail:202.248.151.25 Jan 01 01:59:43.646 - [DEBUG] get ip:202.248.248.238 t:140 Jan 01 01:59:43.700 - [DEBUG] connect 202.248.248.236 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:154 h:0 Jan 01 01:59:43.703 - [DEBUG] report_connect_fail:202.248.248.236 Jan 01 01:59:43.734 - [DEBUG] get ip:111.168.255.215 t:140 Jan 01 01:59:43.748 - [DEBUG] get ip:202.248.248.231 t:140 Jan 01 01:59:43.763 - [DEBUG] connect 202.248.248.238 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:115 h:0 Jan 01 01:59:43.765 - [DEBUG] report_connect_fail continue_fail_count:11 Jan 01 01:59:43.850 - [DEBUG] get ip:202.216.0.69 t:140 Jan 01 01:59:43.872 - [DEBUG] connect 202.248.248.231 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:123 h:0 Jan 01 01:59:43.875 - [DEBUG] report_connect_fail continue_fail_count:12 Jan 01 01:59:43.885 - [DEBUG] connect 111.168.255.215 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:150 h:0 Jan 01 01:59:43.888 - [DEBUG] report_connect_fail continue_fail_count:13 Jan 01 01:59:43.954 - [DEBUG] get ip:202.248.248.218 t:141 Jan 01 01:59:43.997 - [DEBUG] connect 202.216.0.69 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:145 h:0 Jan 01 01:59:43.999 - [DEBUG] report_connect_fail continue_fail_count:14 Jan 01 01:59:44.036 - [DEBUG] get ip:203.66.124.176 t:141 ^CJan 01 01:59:44.043 - [DEBUG] start to terminate gae_proxy module Jan 01 01:59:44.044 - [INFO] start to terminate GAE_Proxy Jan 01 01:59:44.044 - [DEBUG] ## Set keep_running: False Jan 01 01:59:44.044 - [DEBUG] module gae_proxy stopping Jan 01 01:59:44.295 - [INFO] scan_ip_worker exit Jan 01 01:59:44.568 - [DEBUG] get ip:202.248.248.198 t:141 Jan 01 01:59:44.669 - [INFO] Exiting gae_proxy module... Jan 01 01:59:44.825 - [DEBUG] connect 202.248.248.198 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:256 h:0 Jan 01 01:59:44.828 - [DEBUG] report_connect_fail continue_fail_count:15 Jan 01 01:59:44.869 - [DEBUG] network is ok, cost:37 ms Jan 01 01:59:44.892 - [DEBUG] get ip:202.248.248.232 t:141 Jan 01 01:59:44.998 - [DEBUG] connect 202.248.248.232 fail:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] cost:105 h:0 Jan 01 01:59:45.015 - [DEBUG] report_connect_fail:202.248.248.232 Jan 01 01:59:45.672 - [DEBUG] ## GAEProxy set keep_running: False Jan 01 01:59:45.748 - [INFO] module gae_proxy stopped root@cubieboard4:~/XX-Net-2.8.5#