v2ray / v2ray-core

A platform for building proxies to bypass network restrictions.
https://www.v2ray.com/
MIT License
45.3k stars 8.94k forks source link

[Warning] failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination #1166

Closed xiaofeng007 closed 5 years ago

xiaofeng007 commented 6 years ago

Please skip to the English section below if you don't write Chinese.

中文: 提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。 除非特殊情况,请完整填写所有问题。不按模板发的 issue 将直接被关闭。

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) v3.26 2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 上不了google 3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) 一直登陆不了google和其它网站 4) 你期待看到的正确表现是怎样的? 可以自己浏览网页及google 5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

服务器端配置:
    {
  "log" : {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "inbound": {
    "port": 29812,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "a5586b9b-xxxx-xxxx-89fd-xxxxf6464a04",
          "level": 1,
          "alterId": 64
        }
      ]
    },
    "streamSettings": { }
  },

  "outbound": {
    "protocol": "freedom",
    "settings": {}
  },
  "outboundDetour": [
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "routing": {
    "strategy": "rules",
    "settings": {
      "rules": [
        {
          "type": "field",
          "ip": [
            "0.0.0.0/8",
            "10.0.0.0/8",
            "100.64.0.0/10",
            "127.0.0.0/8",
            "169.254.0.0/16",
            "198.18.0.0/15",
            "198.51.100.0/24",
            "203.0.113.0/24",
            "::1/128",
            "fc00::/7",
            "fe80::/10"
          ],
          "outboundTag": "blocked"
        }
      ]
    }
  }
}
客户端配置:
    {
  "log": {
    "access": "",
    "error": "",
    "loglevel": ""
  },
  "inbound": {
    "port": 1080,
    "listen": "0.0.0.0",
    "protocol": "socks",
    "settings": {
      "auth": "noauth",
      "udp": true,
      "ip": "127.0.0.1",
      "clients": null
    },
    "streamSettings": null
  },
  "outbound": {
    "tag": "agentout",
    "protocol": "vmess",
    "settings": {
      "vnext": [
        {
          "address": "xxx.xx.xx.xxx",
          "port": 29812,
          "users": [
            {
              "id": "a5xxxxxxxxxxxx464a04",
              "alterId": 64,
              "security": "aes-128-cfb"
            }
          ]
        }
      ],
      "servers": null
    },
    "streamSettings": {
      "network": "tcp",
      "security": "",
      "tcpSettings": null,
      "kcpSettings": null,
      "wsSettings": null,
      "httpSettings": null
    },
    "mux": {
      "enabled": true
    }
  },
  "inboundDetour": null,
  "outboundDetour": [
    {
      "protocol": "freedom",
      "settings": {
        "response": null
      },
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "http"
        }
      },
      "tag": "blockout"
    }
  ],
  "dns": {
    "servers": [
      "8.8.8.8",
      "8.8.4.4",
      "localhost"
    ]
  },
  "routing": {
    "strategy": "rules",
    "settings": {
      "domainStrategy": "IPIfNonMatch",
      "rules": [
        {
          "type": "field",
          "port": null,
          "outboundTag": "direct",
          "ip": [
            "0.0.0.0/8",
            "10.0.0.0/8",
            "100.64.0.0/10",
            "127.0.0.0/8",
            "169.254.0.0/16",
            "172.16.0.0/12",
            "192.0.0.0/24",
            "192.0.2.0/24",
            "192.168.0.0/16",
            "198.18.0.0/15",
            "198.51.100.0/24",
            "203.0.113.0/24",
            "::1/128",
            "fc00::/7",
            "fe80::/10"
          ],
          "domain": null
        }
      ]
    }
  }
}

6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

服务器端错误日志:
  2018/06/27 01:54:50 [Warning] Core: V2Ray v3.26 started
2018/06/27 02:08:55 [Warning] Core: V2Ray v3.26 started
2018/06/27 11:19:01 [Warning] Core: V2Ray v3.26 started
2018/06/27 11:20:42 [Warning] Core: V2Ray v3.26 started
2018/06/27 14:19:59 [Warning] Core: V2Ray v3.26 started
客户端错误日志:
启动服务(2018/6/27 15:10:47)......
V2Ray v3.26 (die Commanderin) 20180614
A unified platform for anti-censorship.
2018/06/27 15:10:47 [Warning] Core: V2Ray v3.26 started
2018/06/27 15:10:50 tcp:127.0.0.1:59178 accepted tcp:beacons2.gvt2.com:443 
2018/06/27 15:10:52 tcp:127.0.0.1:59180 accepted tcp:beacons.gvt2.com:443 
2018/06/27 15:10:57 tcp:127.0.0.1:59184 accepted tcp:beacons.gvt2.com:443 
2018/06/27 15:11:22 tcp:127.0.0.1:59190 accepted tcp:beacons.gcp.gvt2.com:443 
2018/06/27 15:11:29 tcp:127.0.0.1:59193 accepted tcp:www.google.com:443 
2018/06/27 15:11:29 tcp:127.0.0.1:59194 accepted tcp:www.google.com:443 
2018/06/27 15:11:29 tcp:127.0.0.1:59195 accepted tcp:beacons2.gvt2.com:443 
2018/06/27 15:11:54 tcp:127.0.0.1:59202 accepted tcp:beacons.gvt2.com:443 
2018/06/27 15:12:09 tcp:127.0.0.1:59210 accepted tcp:www.google.com:443 
2018/06/27 15:12:09 tcp:127.0.0.1:59211 accepted tcp:www.google.com:443 
2018/06/27 15:12:09 tcp:127.0.0.1:59212 accepted tcp:beacons2.gvt2.com:443 
2018/06/27 15:12:13 tcp:127.0.0.1:59213 accepted tcp:beacons.gvt2.com:443 
2018/06/27 15:12:37 [Warning] failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [dial tcp xxx.xx.xx.xxx:29812: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.] > Retry: all retry attempts failed

7) 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/access.log 文件中。

  空的  // 在这里附上服务器端日志

8) 其它相关的配置文件(如 Nginx)和相关日志。

9) 如果 V2Ray 无法启动,请附上 --test 输出。

通常的命令为 /usr/bin/v2ray/v2ray --test --config /etc/v2ray/config.json。请按实际情况修改。 V2Ray v3.26 (die Commanderin) 20180614 A unified platform for anti-censorship. Configuration OK.

10) 如果 V2Ray 服务运行不正常,请附上 journal 日志。

通常的命令为 journalctl -u v2ray

请预览一下你填的内容再提交。

不知道为什么不行,求大神指点!

VictoriaRaymond commented 5 years ago

看上去像是你的服务器拒绝了连接,或者IP被墙了

x-aowei2021 commented 4 years ago

failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (ws://66.42.41.134:60025/): > dial tcp 66.42.41.134:60025: i/o timeout] > v2ray.com/core/common/retry: all retry attempts failed

x-aowei2021 commented 4 years ago

为什么会这样