XX-Net
XX-Net copied to clipboard
x-tunnel 使用有问题的可以留言,不管是linux还是windows,至少我到目前为止,2种系统下都能正常使用
x-tunnel 使用有问题的可以留言,不管是linux还是windows,至少我到目前为止,2种系统下都能正常使用
[cloudflare_front][ERROR] updated cloudflare front domains from github fail:AttributeError("'NoneType' object has no attribute 'getsockopt'")
请帖出详细的出错日志
2022-01-26 17:48:40.626 [launcher][INFO] use build-in openssl lib 2022-01-26 17:48:42.156 [launcher][INFO] start XX-Net 4.5.6 2022-01-26 17:48:42.157 [launcher][DEBUG] start confirm_xxnet_exit 2022-01-26 17:48:44.201 [launcher][DEBUG] good, xxnet:8085 clear! 2022-01-26 17:48:44.201 [launcher][DEBUG] finished confirm_xxnet_exit 2022-01-26 17:48:44.210 [launcher][INFO] start with allow remote connect. WARNING:root:Load Crypto.Cipher.ARC4 Failed, Use Pure Python Instead. 2022-01-26 17:48:46.387 [gae_proxy][DEBUG] network IPv4 is ok, cost:108 ms 2022-01-26 17:48:46.449 [tls_relay][INFO] SSL use version:TLSv1_3 2022-01-26 17:48:46.449 [tls_relay][INFO] OpenSSL support alpn 2022-01-26 17:48:46.468 [tls_relay][INFO] load ip_list num:1, target num:1 2022-01-26 17:48:46.475 [x_tunnel][INFO] use config_path:D:\XX-Net\data\x_tunnel\client.json 2022-01-26 17:48:46.476 [x_tunnel][INFO] X-Tunnel window:16777216 2022-01-26 17:48:46.477 [x_tunnel][DEBUG] gae_proxy not running 2022-01-26 17:48:46.483 [cloudflare_front][INFO] load D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\front_domains.json success 2022-01-26 17:48:46.483 [cloudflare_front][INFO] SSL use version:TLSv1_3 2022-01-26 17:48:46.499 [cloudflare_front][ERROR] updated cloudflare front domains from github fail:AttributeError("'NoneType' object has no attribute 'getsockopt'") 2022-01-26 17:48:46.502 [cloudflare_front][INFO] OpenSSL support alpn 2022-01-26 17:48:46.502 [cloudflare_front][INFO] load ip range file:D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\ip_range.txt 2022-01-26 17:48:46.526 [cloudflare_front][INFO] load ip_list num:134, target num:134 2022-01-26 17:48:46.529 [x_tunnel][INFO] xxnet_version:4.5.6
2022-01-26 17:48:46.529 [x_tunnel][DEBUG] SendBuffer reset 2022-01-26 17:48:46.531 [cloudflare_front][ERROR] Except stack:Traceback (most recent call last): File "D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\host_manager.py", line 69, in update_front_domains response = client.request("GET", url) File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 469, in request sock = self.connect(upl.hostname, port, upl.scheme == b"https") File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 437, in connect sock = ssl.wrap_socket(sock) File "D:\XX-Net\python3.8.2\lib\ssl.py", line 1405, in wrap_socket return context.wrap_socket( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 987, in _create if sock.getsockopt(SOL_SOCKET, SO_TYPE) != SOCK_STREAM: AttributeError: 'NoneType' object has no attribute 'getsockopt'
2022-01-26 17:48:46.531 [x_tunnel][INFO] server 0.0.0.0:1080 started. 2022-01-26 17:48:46.533 [x_tunnel][INFO] Socks5 server listen:0.0.0.0:1080. 2022-01-26 17:48:46.589 [launcher][INFO] module x_tunnel started 2022-01-26 17:48:46.589 [launcher][INFO] start x_tunnel time cost:2378 ms 2022-01-26 17:48:46.635 [smart_router][DEBUG] gae_proxy not running 2022-01-26 17:48:46.637 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\gfw_black_list.txt 2022-01-26 17:48:46.664 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\gfw_white_list.txt 2022-01-26 17:48:46.670 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\advertisement_list.txt 2022-01-26 17:48:46.712 [smart_router][INFO] Local DNS server:202.96.134.33 2022-01-26 17:48:46.713 [smart_router][INFO] Local DNS server:202.96.128.86 2022-01-26 17:48:46.714 [smart_router][ERROR] bind to b'0.0.0.0':8086 fail:OSError(10013, '以一种访问权限不允许的方式做 了一个访问套接字的尝试。', None, 10013, None) Exception in thread Thread-21: Traceback (most recent call last): File "D:\XX-Net\code\default\lib\noarch\simple_http_server.py", line 466, in add_listen sock.bind(addr) OSError: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "D:\XX-Net\python3.8.2\lib\threading.py", line 932, in _bootstrap_inner self.run() File "D:\XX-Net\python3.8.2\lib\threading.py", line 870, in run self._target(*self._args, **self.kwargs) File "D:\XX-Net\code\default\smart_router\local_init.py", line 142, in start g.proxy_server = simple_http_server.HTTPServer(addresses, File "D:\XX-Net\code\default\lib\noarch\simple_http_server.py", line 430, in init self.init_socket() File "D:\XX-Net\code\default\lib\noarch\simple_http_server.py", line 449, in init_socket self.add_listen((ip, port)) File "D:\XX-Net\code\default\lib\noarch\simple_http_server.py", line 470, in add_listen raise Exception(err_string) Exception: bind to b'0.0.0.0':8086 fail:OSError(10013, '以一种访问权限不允许的方式做了一个访问套接字的尝试。', None, 10013, None)
2022-01-26 17:56:19.210 [launcher][INFO] use build-in openssl lib
2022-01-26 17:56:20.633 [launcher][INFO] start XX-Net 4.6.1
2022-01-26 17:56:20.634 [launcher][DEBUG] start confirm_xxnet_exit
2022-01-26 17:56:22.683 [launcher][DEBUG] good, xxnet:8085 clear!
2022-01-26 17:56:22.683 [launcher][DEBUG] finished confirm_xxnet_exit
2022-01-26 17:56:22.685 [launcher][INFO] start with allow remote connect.
WARNING:root:Load Crypto.Cipher.ARC4 Failed, Use Pure Python Instead.
2022-01-26 17:56:24.887 [gae_proxy][DEBUG] network IPv4 is ok, cost:123 ms
2022-01-26 17:56:24.957 [tls_relay][INFO] SSL use version:TLSv1_3
2022-01-26 17:56:24.958 [tls_relay][INFO] OpenSSL support alpn
2022-01-26 17:56:24.958 [launcher][ERROR] start module x_tunnel fail:'SSLContext' object has no attribute 'set_ca'
2022-01-26 17:56:24.960 [launcher][ERROR] Except stack:Traceback (most recent call last):
File "D:\XX-Net\code\default\launcher\module_init.py", line 44, in start
proc_handler[module]["imp"] = import(module, globals(), locals(), ['local'], 0)
File "D:\XX-Net\code\default\x_tunnel\local_init_.py", line 5, in
2022-01-26 17:56:24.961 [launcher][ERROR] launcher except:AttributeError("'SSLContext' object has no attribute 'set_ca'")
2022-01-26 17:56:24.962 [launcher][ERROR] Except stack:Traceback (most recent call last):
File "D:\XX-Net\code\default\launcher\start.py", line 193, in
@ROSSTargh 请测试 4.6.3 版本能否工作: https://github.com/XX-net/XX-Net/releases/tag/4.6.3
@ROSSTargh 请测试 4.6.3 版本能否工作: https://github.com/XX-net/XX-Net/releases/tag/4.6.3
2022-01-27 22:49:49.884 [launcher][INFO] start XX-Net 4.6.3
2022-01-27 22:49:49.884 [launcher][DEBUG] start confirm_xxnet_exit
2022-01-27 22:49:51.924 [launcher][DEBUG] good, xxnet:8085 clear!
2022-01-27 22:49:51.924 [launcher][DEBUG] finished confirm_xxnet_exit
2022-01-27 22:49:51.933 [launcher][INFO] start with allow remote connect.
WARNING:root:Load Crypto.Cipher.ARC4 Failed, Use Pure Python Instead.
2022-01-27 22:49:52.173 [launcher][ERROR] start module x_tunnel fail:invalid literal for int() with base 10: b'/ping'
2022-01-27 22:49:52.175 [launcher][ERROR] Except stack:Traceback (most recent call last):
File "D:\XX-Net\code\default\launcher\module_init.py", line 44, in start
proc_handler[module]["imp"] = import(module, globals(), locals(), ['local'], 0)
File "D:\XX-Net\code\default\x_tunnel\local_init_.py", line 5, in
2022-01-27 22:49:52.176 [launcher][ERROR] launcher except:ValueError("invalid literal for int() with base 10: b'/ping'")
2022-01-27 22:49:52.177 [launcher][ERROR] Except stack:Traceback (most recent call last):
File "D:\XX-Net\code\default\launcher\start.py", line 163, in
2022-01-27 22:57:27.560 [launcher][INFO] start XX-Net 4.6.3
2022-01-27 22:57:27.561 [launcher][DEBUG] start confirm_xxnet_exit
2022-01-27 22:57:29.606 [launcher][DEBUG] good, xxnet:8085 clear!
2022-01-27 22:57:29.606 [launcher][DEBUG] finished confirm_xxnet_exit
2022-01-27 22:57:29.607 [launcher][INFO] start with allow remote connect.
WARNING:root:Load Crypto.Cipher.ARC4 Failed, Use Pure Python Instead.
2022-01-27 22:57:31.772 [gae_proxy][DEBUG] network IPv4 is ok, cost:93 ms
2022-01-27 22:57:32.200 [launcher][ERROR] start module x_tunnel fail:cannot import name 'ConnectionError' from 'six' (D:\XX-Net\python3.8.2\lib\six.py)
2022-01-27 22:57:32.202 [launcher][ERROR] Except stack:Traceback (most recent call last):
File "D:\XX-Net\code\default\launcher\module_init.py", line 44, in start
proc_handler[module]["imp"] = import(module, globals(), locals(), ['local'], 0)
File "D:\XX-Net\code\default\x_tunnel\local_init_.py", line 5, in
2022-01-27 22:57:32.202 [launcher][ERROR] launcher except:ImportError("cannot import name 'ConnectionError' from 'six' (D:\Program Files\XX-Net\python3.8.2\lib\six.py)")
2022-01-27 22:57:32.203 [launcher][ERROR] Except stack:Traceback (most recent call last):
File "D:\XX-Net\code\default\launcher\start.py", line 163, in
旧版本(4.5.4)还可以运作,但是同一台机器上的远古包自动更新后和下载4.6.3release就不行了
运行后web控制http://localhost:8085/不能加载;xtunnnel工作异常,unicode decode error
如果直接覆盖安装远古文件夹的话和ROSS的日志基本是完全一样的
下载release的日志太大段乱码了我贴个txt吧,随着加载反复了好几次
2022-01-28 03:26:27.359 [x_tunnel][WARNING] create conn fail
2022-01-28 03:26:27.362 [x_tunnel][WARNING] Socks4 connect fail, no conn_id
2022-01-28 03:26:27.414 [x_tunnel][WARNING] create conn fail
2022-01-28 03:26:27.417 [x_tunnel][WARNING] Socks4 connect fail, no conn_id
2022-01-28 03:26:27.425 [x_tunnel][WARNING] create conn fail
2022-01-28 03:26:27.427 [x_tunnel][WARNING] Socks4 connect fail, no conn_id
2022-01-28 03:26:27.445 [x_tunnel][WARNING] Socks4 connect fail, no conn_id
2022-01-28 03:26:27.446 [cloudflare_front][INFO] load C:\XX-Net\data\x_tunnel\cloudflare_domains.json success
2022-01-28 03:26:27.447 [cloudflare_front][INFO] updated cloudflare front domains from github.
2022-01-28 03:26:27.475 [gae_proxy][DEBUG] network IPv6 is ok, cost:664 ms
2022-01-28 03:26:28.482 [simple_http_server][ERROR] handler:UnicodeDecodeError('gbk', b'\nmsgid ""\nmsgstr ""\n"Project-Id-Version: PROJECT VERSION\n"\n"Report-Msgid-Bugs-To: [email protected]\n"\n"POT-Creation-Date: 2017-12-24 12:00+0800\n"\n"PO-Revision-Date: 2017-12-29 12:00+0800\n"\n"Last-Translator: Emphasia@github\n"\n"Language: zh_Hans_CN\n"\n"Language-Team: zh_Hans_CN [email protected]\n"\n"Plural-Forms: nplurals=2; plural=(n != 1)\n"\n"MIME-Version: 1.0\n"\n"Content-Type: text/plain; charset=utf-8\n"
中略
"Your local network failed, please check your network and firewall."\nmsgstr "\xe7', 597, 598, 'illegal multibyte sequence') cmd:GET path:/ from:127.0.0.1:9815
2022-01-28 03:26:28.490 [simple_http_server][ERROR] Except stack:Traceback (most recent call last):
File "C:\XX-Net\code\default\lib\noarch\simple_http_server.py", line 187, in handle_one_request
self.do_GET()
File "C:\XX-Net\code\default\launcher\web_control.py", line 150, in do_GET
return self.req_index_handler()
File "C:\XX-Net\code\default\launcher\web_control.py", line 241, in req_index_handler
self.load_module_menus()
File "C:\XX-Net\code\default\launcher\web_control.py", line 75, in load_module_menus
stream = i18n_translator.render(locale_dir, menu_path)
File "C:\XX-Net\code\default\launcher\simple_i18n.py", line 165, in render
po_dict = self.po_loader(po_file)
File "C:\XX-Net\code\default\launcher\simple_i18n.py", line 61, in po_loader
line = fp.readline()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 597: illegal multibyte sequenc
但愿能帮到忙
新建文本文档 (2).txt
非常感谢上面的信息。 正在开发一套自动化测试,因为平台太多,人工测试实在难以覆盖到。
自动化测试开发完成了,能够进行基本的功能测试了。 4.6.4 在这里手动下载, https://github.com/XX-net/XX-Net/releases/tag/4.6.4
请帮忙手动下载测试,没问题了我再发出升级推送。
帮忙测试 4.6.4 是不是解决这个问题了 https://github.com/XX-net/XX-Net/releases/tag/4.6.4
已经更新到 4.6.5 请帮忙测试: https://github.com/XX-net/XX-Net/releases/tag/4.6.5
2022-02-01 10:40:12.052 [launcher][INFO] start XX-Net 4.6.5 2022-02-01 10:40:12.053 [launcher][INFO] Python version: 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] 2022-02-01 10:40:12.053 [launcher][INFO] System: Windows|10.0.19041|('32bit', 'WindowsPE') 2022-02-01 10:40:12.101 [launcher][DEBUG] start confirm_xxnet_exit 2022-02-01 10:40:13.017 [launcher][DEBUG] good, xxnet:8085 clear! 2022-02-01 10:40:13.018 [launcher][DEBUG] finished confirm_xxnet_exit 2022-02-01 10:40:13.019 [launcher][INFO] start with allow remote connect. WARNING:root:Load Crypto.Cipher.ARC4 Failed, Use Pure Python Instead. 2022-02-01 10:40:15.154 [tls_relay][INFO] SSL use version:TLSv1_3 2022-02-01 10:40:15.155 [tls_relay][INFO] OpenSSL support alpn 2022-02-01 10:40:15.156 [tls_relay][INFO] load ip_list num:1, target num:1 2022-02-01 10:40:15.186 [gae_proxy][DEBUG] network IPv4 is ok, cost:107 ms 2022-02-01 10:40:16.167 [x_tunnel][INFO] use config_path:D:\XX-Net\data\x_tunnel\client.json 2022-02-01 10:40:16.293 [x_tunnel][INFO] X-Tunnel window:16777216 2022-02-01 10:40:17.379 [cloudflare_front][INFO] load D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\front_domains.json success 2022-02-01 10:40:17.458 [cloudflare_front][INFO] SSL use version:TLSv1_3 2022-02-01 10:40:17.535 [cloudflare_front][ERROR] updated cloudflare front domains from github fail:AttributeError("'NoneType' object has no attribute 'getsockopt'") 2022-02-01 10:40:17.566 [cloudflare_front][INFO] OpenSSL support alpn 2022-02-01 10:40:17.706 [cloudflare_front][INFO] load ip range file:D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\ip_range.txt 2022-02-01 10:40:17.970 [cloudflare_front][INFO] load ip_list num:134, target num:134 2022-02-01 10:40:18.016 [cloudflare_front][ERROR] Except stack:Traceback (most recent call last): File "D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\host_manager.py", line 69, in update_front_domains response = client.request("GET", url) File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 481, in request sock = self.connect(upl.hostname, port, upl.scheme == b"https") File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 447, in connect sock = ssl.wrap_socket(sock) File "D:\XX-Net\python3.8.2\lib\ssl.py", line 1405, in wrap_socket return context.wrap_socket( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 987, in _create if sock.getsockopt(SOL_SOCKET, SO_TYPE) != SOCK_STREAM: AttributeError: 'NoneType' object has no attribute 'getsockopt'
2022-02-01 10:40:18.421 [x_tunnel][INFO] xxnet_version:4.6.5
2022-02-01 10:40:18.609 [x_tunnel][DEBUG] SendBuffer reset 2022-02-01 10:40:19.045 [x_tunnel][INFO] server 0.0.0.0:1080 started. 2022-02-01 10:40:19.107 [x_tunnel][INFO] Socks5 server listen:0.0.0.0:1080. 2022-02-01 10:40:19.232 [launcher][INFO] module x_tunnel started 2022-02-01 10:40:19.325 [launcher][INFO] start x_tunnel time cost:6305 ms 2022-02-01 10:40:19.760 [gae_proxy][WARNING] network IPv6 fail 2022-02-01 10:40:31.553 [smart_router][DEBUG] gae_proxy not running 2022-02-01 10:40:36.948 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\gfw_black_list.txt 2022-02-01 10:40:37.725 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\gfw_white_list.txt 2022-02-01 10:40:38.082 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\advertisement_list.txt 2022-02-01 10:40:40.870 [smart_router][INFO] Local DNS server:202.96.134.33 2022-02-01 10:40:40.947 [smart_router][INFO] Local DNS server:202.96.128.86 2022-02-01 10:40:41.272 [smart_router][INFO] server 0.0.0.0:8086 started. 2022-02-01 10:40:41.461 [smart_router][INFO] Proxy server listen:['0.0.0.0']:8086. 2022-02-01 10:40:41.555 [smart_router][WARNING] bind DNS 0.0.0.0:53 fail 2022-02-01 10:40:41.848 [smart_router][INFO] start DNS server at 0.0.0.0:8053 2022-02-01 10:40:41.957 [launcher][INFO] module smart_router started 2022-02-01 10:40:42.033 [launcher][INFO] start smart_router time cost:22567 ms 2022-02-01 10:40:42.112 [launcher][INFO] allow remote access WebUI 2022-02-01 10:40:42.235 [launcher][INFO] begin to start web control 2022-02-01 10:40:42.421 [launcher][INFO] server 0.0.0.0:8085 started. 2022-02-01 10:40:42.638 [launcher][INFO] launcher web control started.
这次可以启动控制台了,也有弹出任务栏图标。测试可以打开谷歌网页。不过右键单击任务栏图标的响应非常慢,要等几秒才弹出菜单。
[launcher][INFO] System: Windows|10.0.19041|('32bit', 'WindowsPE') 还有系统版本这一行显示是10.0.19041,实际是win10 21H2的。不确定是不是一个问题。
谢谢 @ROSSTargh 菜单右键慢是因为有bug,导致CPU高了。 再试试4.6.6,应该没有这个问题了:
https://github.com/XX-net/XX-Net/releases/tag/4.6.6
System: Windows|10.0.19041|('32bit', 'WindowsPE') 这个是系统内部版本号, 和 win10 21H2 是同一个版本,只是微软给用户的名字不同。
@xxnet 目前似乎可以正常工作了
2022-02-01 20:39:17.912 [launcher][INFO] start XX-Net 4.6.6 2022-02-01 20:39:17.913 [launcher][INFO] Python version: 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] 2022-02-01 20:39:17.913 [launcher][INFO] System: Windows|10.0.19041|('32bit', 'WindowsPE') 2022-02-01 20:39:17.966 [launcher][DEBUG] start confirm_xxnet_exit 2022-02-01 20:39:20.016 [launcher][DEBUG] good, xxnet:8085 clear! 2022-02-01 20:39:20.016 [launcher][DEBUG] finished confirm_xxnet_exit 2022-02-01 20:39:20.017 [launcher][INFO] start with allow remote connect. WARNING:root:Load Crypto.Cipher.ARC4 Failed, Use Pure Python Instead. 2022-02-01 20:39:22.168 [tls_relay][INFO] SSL use version:TLSv1_3 2022-02-01 20:39:22.169 [tls_relay][INFO] OpenSSL support alpn 2022-02-01 20:39:22.170 [tls_relay][INFO] load ip_list num:1, target num:1 2022-02-01 20:39:22.173 [x_tunnel][INFO] use config_path:D:\XX-Net\data\x_tunnel\client.json 2022-02-01 20:39:22.173 [x_tunnel][INFO] X-Tunnel window:16777216 2022-02-01 20:39:22.177 [cloudflare_front][INFO] load D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\front_domains.json success 2022-02-01 20:39:22.177 [cloudflare_front][INFO] SSL use version:TLSv1_3 2022-02-01 20:39:22.185 [cloudflare_front][INFO] OpenSSL support alpn 2022-02-01 20:39:22.185 [cloudflare_front][INFO] load ip range file:D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\ip_range.txt 2022-02-01 20:39:22.186 [cloudflare_front][ERROR] updated cloudflare front domains from github fail:AttributeError("'NoneType' object has no attribute 'getsockopt'") 2022-02-01 20:39:22.188 [cloudflare_front][INFO] load ip_list num:134, target num:134 2022-02-01 20:39:22.189 [x_tunnel][INFO] xxnet_version:4.6.6 2022-02-01 20:39:22.190 [cloudflare_front][ERROR] Except stack:Traceback (most recent call last): File "D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\host_manager.py", line 69, in update_front_domains response = client.request("GET", url) File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 481, in request sock = self.connect(upl.hostname, port, upl.scheme == b"https") File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 447, in connect sock = ssl.wrap_socket(sock) File "D:\XX-Net\python3.8.2\lib\ssl.py", line 1405, in wrap_socket return context.wrap_socket( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 987, in _create if sock.getsockopt(SOL_SOCKET, SO_TYPE) != SOCK_STREAM: AttributeError: 'NoneType' object has no attribute 'getsockopt'
2022-02-01 20:39:22.190 [x_tunnel][DEBUG] SendBuffer reset 2022-02-01 20:39:22.191 [x_tunnel][INFO] server 0.0.0.0:1080 started. 2022-02-01 20:39:22.192 [x_tunnel][INFO] Socks5 server listen:0.0.0.0:1080. 2022-02-01 20:39:22.195 [gae_proxy][DEBUG] network IPv4 is ok, cost:99 ms 2022-02-01 20:39:22.277 [launcher][INFO] module x_tunnel started 2022-02-01 20:39:22.277 [launcher][INFO] start x_tunnel time cost:2259 ms 2022-02-01 20:39:22.296 [smart_router][DEBUG] gae_proxy not running 2022-02-01 20:39:22.297 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\gfw_black_list.txt 2022-02-01 20:39:22.302 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\gfw_white_list.txt 2022-02-01 20:39:22.303 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\advertisement_list.txt 2022-02-01 20:39:22.315 [smart_router][INFO] Local DNS server:202.96.134.33 2022-02-01 20:39:22.316 [smart_router][INFO] Local DNS server:202.96.128.86 2022-02-01 20:39:22.317 [smart_router][INFO] server 0.0.0.0:8086 started. 2022-02-01 20:39:22.317 [smart_router][INFO] Proxy server listen:['0.0.0.0']:8086. 2022-02-01 20:39:22.318 [smart_router][INFO] start DNS server at 0.0.0.0:53 2022-02-01 20:39:22.402 [launcher][INFO] module smart_router started 2022-02-01 20:39:22.403 [launcher][INFO] start smart_router time cost:125 ms 2022-02-01 20:39:22.403 [launcher][INFO] allow remote access WebUI 2022-02-01 20:39:22.404 [launcher][INFO] begin to start web control 2022-02-01 20:39:22.404 [launcher][INFO] server 0.0.0.0:8085 started. 2022-02-01 20:39:22.405 [launcher][INFO] launcher web control started. 2022-02-01 20:39:23.110 [launcher][DEBUG] launcher web_control 127.0.0.1:2190 GET /config?cmd=get_version 2022-02-01 20:39:23.111 [launcher][DEBUG] launcher web_control 127.0.0.1:2191 GET /config?cmd=get_config 2022-02-01 20:39:23.124 [launcher][DEBUG] launcher web_control 127.0.0.1:2191 GET /config?cmd=get_config 2022-02-01 20:39:23.133 [x_tunnel][DEBUG] x_tunnel force update info 2022-02-01 20:39:23.133 [launcher][DEBUG] launcher web_control 127.0.0.1:2190 GET /update?cmd=get_progress 2022-02-01 20:39:23.467 [cloudflare_front][DEBUG] create_ssl update ip:1.1.1.40 time:330 h2:1 sni:www.household.monster, host:household.monster 2022-02-01 20:39:23.640 [launcher][INFO] download https://raw.githubusercontent.com/XX-net/XX-Net/master/code/default/update_v4.txt to D:\XX-Net\data\downloads\version.txt, retry:0 2022-02-01 20:39:23.645 [launcher][ERROR] download https://raw.githubusercontent.com/XX-net/XX-Net/master/code/default/update_v4.txt to D:\XX-Net\data\downloads\version.txt fail:AttributeError("'NoneType' object has no attribute 'getsockopt'") 2022-02-01 20:39:23.646 [tls_relay][DEBUG] connect 209.151.149.78 network fail:OSError("tls handshake fail, sni:fan-spray.us, top:fan-spray.us e:SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')") 2022-02-01 20:39:23.646 [tls_relay][DEBUG] report_connect_fail:209.151.149.78 2022-02-01 20:39:23.646 [launcher][ERROR] Except stack:Traceback (most recent call last): File "D:\XX-Net\code\default\launcher\update_from_github.py", line 96, in download_file req = request(url, i, timeout=120) File "D:\XX-Net\code\default\launcher\update_from_github.py", line 78, in request res = client.request("GET", url, read_payload=False) File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 481, in request sock = self.connect(upl.hostname, port, upl.scheme == b"https") File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 447, in connect sock = ssl.wrap_socket(sock) File "D:\XX-Net\python3.8.2\lib\ssl.py", line 1405, in wrap_socket return context.wrap_socket( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 987, in _create if sock.getsockopt(SOL_SOCKET, SO_TYPE) != SOCK_STREAM: AttributeError: 'NoneType' object has no attribute 'getsockopt'
System: Windows|10.0.19041|('32bit', 'WindowsPE') 这个是系统内部版本号, 和 win10 21H2 是同一个版本,只是微软给用户的名字不同。
21h2的内部版本是19044,19041是20h1吧。
确实是不太准确,python 社区里有讨论,我怀疑调用系统不同API导致的问题。 初步猜测是API显示的是系统安装时的版本,升级之后的版本号没有跟着刷新。
今天4.6.6也无法工作了 2022-02-05 09:49:32.785 [launcher][INFO] start XX-Net 4.6.6 2022-02-05 09:49:32.786 [launcher][INFO] Python version: 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] 2022-02-05 09:49:32.786 [launcher][INFO] System: Windows|10.0.19041|('32bit', 'WindowsPE') 2022-02-05 09:49:32.830 [launcher][DEBUG] start confirm_xxnet_exit 2022-02-05 09:49:34.881 [launcher][DEBUG] good, xxnet:8085 clear! 2022-02-05 09:49:34.881 [launcher][DEBUG] finished confirm_xxnet_exit 2022-02-05 09:49:34.882 [launcher][INFO] start with allow remote connect. WARNING:root:Load Crypto.Cipher.ARC4 Failed, Use Pure Python Instead. 2022-02-05 09:49:37.013 [tls_relay][INFO] SSL use version:TLSv1_3 2022-02-05 09:49:37.014 [tls_relay][INFO] OpenSSL support alpn 2022-02-05 09:49:37.015 [tls_relay][INFO] load ip_list num:1, target num:1 2022-02-05 09:49:37.019 [x_tunnel][INFO] use config_path:D:\XX-Net\data\x_tunnel\client.json 2022-02-05 09:49:37.019 [x_tunnel][INFO] X-Tunnel window:16777216 2022-02-05 09:49:37.022 [cloudflare_front][INFO] load D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\front_domains.json success 2022-02-05 09:49:37.023 [cloudflare_front][INFO] SSL use version:TLSv1_3 2022-02-05 09:49:37.031 [cloudflare_front][INFO] OpenSSL support alpn 2022-02-05 09:49:37.031 [cloudflare_front][INFO] load ip range file:D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\ip_range.txt 2022-02-05 09:49:37.032 [cloudflare_front][INFO] load ip_list num:134, target num:134 2022-02-05 09:49:37.033 [x_tunnel][INFO] xxnet_version:4.6.6 2022-02-05 09:49:37.034 [x_tunnel][DEBUG] SendBuffer reset 2022-02-05 09:49:37.034 [x_tunnel][INFO] server 0.0.0.0:1080 started. 2022-02-05 09:49:37.034 [x_tunnel][INFO] Socks5 server listen:0.0.0.0:1080. 2022-02-05 09:49:37.127 [launcher][INFO] module x_tunnel started 2022-02-05 09:49:37.127 [launcher][INFO] start x_tunnel time cost:2244 ms 2022-02-05 09:49:37.144 [smart_router][DEBUG] gae_proxy not running 2022-02-05 09:49:37.144 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\gfw_black_list.txt 2022-02-05 09:49:37.150 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\gfw_white_list.txt 2022-02-05 09:49:37.150 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\advertisement_list.txt 2022-02-05 09:49:37.162 [smart_router][INFO] Local DNS server:202.96.134.33 2022-02-05 09:49:37.163 [smart_router][INFO] Local DNS server:202.96.128.86 2022-02-05 09:49:37.163 [smart_router][ERROR] bind to b'0.0.0.0':8086 fail:OSError(10013, '以一种访问权限不允许的方式做 了一个访问套接字的尝试。', None, 10013, None) Exception in thread Thread-21: Traceback (most recent call last): File "D:\XX-Net\code\default\lib\noarch\simple_http_server.py", line 484, in add_listen sock.bind(addr) OSError: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "D:\XX-Net\python3.8.2\lib\threading.py", line 932, in _bootstrap_inner self.run() File "D:\XX-Net\python3.8.2\lib\threading.py", line 870, in run self._target(*self._args, **self.kwargs) File "D:\XX-Net\code\default\smart_router\local_init.py", line 142, in start g.proxy_server = simple_http_server.HTTPServer(addresses, File "D:\XX-Net\code\default\lib\noarch\simple_http_server.py", line 448, in init self.init_socket() File "D:\XX-Net\code\default\lib\noarch\simple_http_server.py", line 467, in init_socket self.add_listen((ip, port)) File "D:\XX-Net\code\default\lib\noarch\simple_http_server.py", line 488, in add_listen raise Exception(err_string) Exception: bind to b'0.0.0.0':8086 fail:OSError(10013, '以一种访问权限不允许的方式做了一个访问套接字的尝试。', None, 10013, None) 2022-02-05 09:49:37.390 [gae_proxy][DEBUG] network IPv4 is ok, cost:450 ms 2022-02-05 09:49:37.656 [cloudflare_front][ERROR] updated cloudflare front domains from github fail:AttributeError("'NoneType' object has no attribute 'getsockopt'") 2022-02-05 09:49:37.658 [cloudflare_front][ERROR] Except stack:Traceback (most recent call last): File "D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\host_manager.py", line 69, in update_front_domains response = client.request("GET", url) File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 481, in request sock = self.connect(upl.hostname, port, upl.scheme == b"https") File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 447, in connect sock = ssl.wrap_socket(sock) File "D:\XX-Net\python3.8.2\lib\ssl.py", line 1405, in wrap_socket return context.wrap_socket( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 987, in _create if sock.getsockopt(SOL_SOCKET, SO_TYPE) != SOCK_STREAM: AttributeError: 'NoneType' object has no attribute 'getsockopt'
8086 端口绑定失败,怀疑是防火墙、安全软件干扰了,你试试关掉防火墙、安全软件再启动。
1080 端口可以创建,你可以试试用X-Tunnel 做代理。
关闭防火墙和安全软件之后仍然绑定8086失败。并且没有发现端口占用的情况。
用1080代理可以工作。但是这样网页设置界面就打不开了。
命令行查找占用端口的方法: netstat -ano |findstr 8085 netstat -ano |findstr 8086
如果端口没有被占用,试试用管理员权限启动XX-Net.
或者试试修改SmartRouter监听端口 https://github.com/XX-net/XX-Net/wiki/Change-Smart-Router-Config
配置网页端口跑在8085端口,修改配置的方法: https://github.com/XX-net/XX-Net/wiki/AllowRemoteConnectToWebControl
已经检查过端口没有占用。管理员权限也没有用。
那换端口试试
那换端口试试
更改smart router端口,无论改成多少还是一样的报错。只是端口号变成改动后的端口。
又试了几次,发现似乎小于等于8010的端口号就可以,大于8010的就不行。测试的端口号都是没有占用的。
smart router启动后launcher 8085端口绑定失败,在data/launcher/config.json修改端口无效,仍然报8085端口绑定失败。
2022-02-06 16:42:11.256 [launcher][INFO] start XX-Net 4.6.6 2022-02-06 16:42:11.257 [launcher][INFO] Python version: 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] 2022-02-06 16:42:11.257 [launcher][INFO] System: Windows|10.0.19041|('32bit', 'WindowsPE') 2022-02-06 16:42:11.302 [launcher][DEBUG] start confirm_xxnet_exit 2022-02-06 16:42:13.356 [launcher][DEBUG] good, xxnet:8085 clear! 2022-02-06 16:42:13.356 [launcher][DEBUG] finished confirm_xxnet_exit 2022-02-06 16:42:13.357 [launcher][INFO] start with allow remote connect. WARNING:root:Load Crypto.Cipher.ARC4 Failed, Use Pure Python Instead. 2022-02-06 16:42:15.483 [tls_relay][INFO] SSL use version:TLSv1_3 2022-02-06 16:42:15.483 [tls_relay][INFO] OpenSSL support alpn 2022-02-06 16:42:15.484 [tls_relay][INFO] load ip_list num:1, target num:1 2022-02-06 16:42:15.487 [x_tunnel][INFO] use config_path:D:\XX-Net\data\x_tunnel\client.json 2022-02-06 16:42:15.488 [x_tunnel][INFO] X-Tunnel window:16777216 2022-02-06 16:42:15.491 [cloudflare_front][INFO] load D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\front_domains.json success 2022-02-06 16:42:15.491 [cloudflare_front][INFO] SSL use version:TLSv1_3 2022-02-06 16:42:15.496 [cloudflare_front][ERROR] updated cloudflare front domains from github fail:AttributeError("'NoneType' object has no attribute 'getsockopt'") 2022-02-06 16:42:15.497 [cloudflare_front][ERROR] Except stack:Traceback (most recent call last): File "D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\host_manager.py", line 69, in update_front_domains response = client.request("GET", url) File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 481, in request sock = self.connect(upl.hostname, port, upl.scheme == b"https") File "D:\XX-Net\code\default\lib\noarch\simple_http_client.py", line 447, in connect sock = ssl.wrap_socket(sock) File "D:\XX-Net\python3.8.2\lib\ssl.py", line 1405, in wrap_socket return context.wrap_socket( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "D:\XX-Net\python3.8.2\lib\ssl.py", line 987, in _create if sock.getsockopt(SOL_SOCKET, SO_TYPE) != SOCK_STREAM: AttributeError: 'NoneType' object has no attribute 'getsockopt'
2022-02-06 16:42:15.500 [cloudflare_front][INFO] OpenSSL support alpn 2022-02-06 16:42:15.500 [cloudflare_front][INFO] load ip range file:D:\XX-Net\code\default\x_tunnel\local\cloudflare_front\ip_range.txt 2022-02-06 16:42:15.502 [cloudflare_front][INFO] load ip_list num:134, target num:134 2022-02-06 16:42:15.503 [x_tunnel][INFO] xxnet_version:4.6.6 2022-02-06 16:42:15.504 [x_tunnel][DEBUG] SendBuffer reset 2022-02-06 16:42:15.506 [x_tunnel][INFO] server 0.0.0.0:1080 started. 2022-02-06 16:42:15.506 [x_tunnel][INFO] Socks5 server listen:0.0.0.0:1080. 2022-02-06 16:42:15.545 [gae_proxy][DEBUG] network IPv4 is ok, cost:132 ms 2022-02-06 16:42:15.596 [launcher][INFO] module x_tunnel started 2022-02-06 16:42:15.596 [launcher][INFO] start x_tunnel time cost:2238 ms 2022-02-06 16:42:15.619 [smart_router][DEBUG] gae_proxy not running 2022-02-06 16:42:15.620 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\gfw_black_list.txt 2022-02-06 16:42:15.625 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\gfw_white_list.txt 2022-02-06 16:42:15.627 [smart_router][INFO] Load file:D:\XX-Net\code\default\smart_router\local\advertisement_list.txt 2022-02-06 16:42:15.639 [smart_router][INFO] Local DNS server:202.96.134.33 2022-02-06 16:42:15.640 [smart_router][INFO] Local DNS server:202.96.128.86 2022-02-06 16:42:15.641 [smart_router][INFO] server 0.0.0.0:8010 started. 2022-02-06 16:42:15.641 [smart_router][INFO] Proxy server listen:['0.0.0.0']:8010. 2022-02-06 16:42:15.642 [smart_router][INFO] start DNS server at 0.0.0.0:53 2022-02-06 16:42:15.735 [launcher][INFO] module smart_router started 2022-02-06 16:42:15.736 [launcher][INFO] start smart_router time cost:138 ms 2022-02-06 16:42:15.736 [launcher][INFO] allow remote access WebUI 2022-02-06 16:42:15.736 [launcher][INFO] begin to start web control 2022-02-06 16:42:15.737 [launcher][ERROR] bind to b'0.0.0.0':8085 fail:OSError(10013, '以一种访问权限不允许的方式做了一 个访问套接字的尝试。', None, 10013, None) 2022-02-06 16:42:15.737 [launcher][ERROR] launcher except:Exception("bind to b'0.0.0.0':8085 fail:OSError(10013, '以一种访问权限不允许的方式做了一个访问套接字的尝试。', None, 10013, None)") 2022-02-06 16:42:15.739 [launcher][ERROR] Except stack:Traceback (most recent call last): File "D:\XX-Net\code\default\lib\noarch\simple_http_server.py", line 484, in add_listen sock.bind(addr) OSError: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\XX-Net\code\default\launcher\start.py", line 166, in