v2rayN icon indicating copy to clipboard operation
v2rayN copied to clipboard

[Bug]: 多服务器均衡无法使用,所有proxy的路由变成direct出去了

Open dzw13579 opened this issue 1 year ago • 2 comments

预期情况

所有路由应走对应规则

实际情况

选择了多服务器均衡的资料,所有原本应该走proxy的规则都直接走direct出去了,然后还显示连接的线路延迟为-1ms 同样的路由profile单选一条线路资料使用是正常的

复现方法

使用服务器负载均衡,必定出现

日志信息

2024-12-14 12:40:18.2151-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.) 2024-12-14 12:40:18.2151-DEBUG 2024-12-14 12:40:18.2151-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。. 2024-12-14 12:40:18.2337-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.) 2024-12-14 12:40:18.2337-DEBUG 2024-12-14 12:40:18.2337-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。. 2024-12-14 17:52:45.9038-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.) 2024-12-14 17:52:45.9038-DEBUG 2024-12-14 17:52:45.9038-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。. 2024-12-14 17:52:45.9163-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.) 2024-12-14 17:52:45.9163-DEBUG 2024-12-14 17:52:45.9163-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。. 2024-12-14 17:56:15.6260-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.) 2024-12-14 17:56:15.6260-DEBUG 2024-12-14 17:56:15.6260-ERROR System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.

image image image

额外信息

image

我确认已更新至最新版本

  • [X] 是

我确认已查询历史issues

  • [X] 是

dzw13579 avatar Dec 14 '24 10:12 dzw13579

你选择两个节点使用此功能后,在guiConfigs会产生配置文件 configMultipleLoad.json, 自己看下路由规则是否有问题,注意 balancerTag是否有 也可以发出来配置

2dust avatar Dec 15 '24 06:12 2dust

你选择两个节点使用此功能后,在guiConfigs会产生配置文件 configMultipleLoad.json, 自己看下路由规则是否有问题,注意 balancerTag是否有 也可以发出来配置

感谢大佬回复,查了有这个,具体我把文件发上来: configMultipleLoad.json

刚好我手上有两台电脑,一台可以负载均衡一台不行,我把两台机器的线路资料都做成一样的,版本和内核也升级成一样,然后把两台机器的负载均衡配置文件相互拷贝测试,不行的那台拷贝了行的配置就可以运行了,反过来不行的配置放到可以的机器上也是不成功的

dzw13579 avatar Dec 17 '24 17:12 dzw13579

      {
        "type": "field",
        "port": "0-65535",
        "balancerTag": "proxy-round",
        "domain": [
          "bing.com",
          "live.com",
          "bing.net"
        ]
      }

这个规则有问题,domian和port一般选择一个

2dust avatar Dec 18 '24 02:12 2dust

明白了!问题解决,谢谢大佬!👏👏👏

dzw13579 avatar Dec 18 '24 03:12 dzw13579