v2ray-core
v2ray-core copied to clipboard
V2ray(ws+tls)无法正常使用,提示the request returned with http status code serviceunavailable
时间已经校准,cloud flare中域名已取消DNS代理,之前大意勾选上了,取消后出现问题
-
你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) V5.32
-
你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 cloudflare中不小心点选DNS代理,随后关闭,不久出现无法连接的现象
-
你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) 服务器速度测试:the request returned with http status code serviceunavailable failed to read response from cachefly.cachefly.net > io: read/write on closed pipe 服务器延迟ping 0ms tcping正常 真连接延迟: 基础连接已经关闭:发送时发生错误
-
你期待看到的正确表现是怎样的? 延迟正常 速度正常 能够正常访问
-
请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。
服务器端配置:
// 在这里附上服务器端配置文件
{
"log": {
"access": "",
"error": "",
"loglevel": "warning"
},
"inbounds": [
{
"port": 443,
"protocol": "vmess",
"settings": {
"udp": false,
"clients": [
{
"id": "dcd1800f-981d-45be-bbab-9f04851d0b63",
"alterId": 0,
"email": "[email protected]"
}
],
"allowTransparent": false
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"allowInsecure": false,
"serverName": " "
},
"wsSettings": {
"path": "/",
"headers": {
"Host": " "
}
}
}
}
],
"outbounds": [
{
"protocol": "freedom"
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": []
}
}
客户端配置:
// 在这里附上客户端配置
{
"policy": {
"system": {
"statsOutboundUplink": true,
"statsOutboundDownlink": true
}
},
"log": {
"access": "",
"error": "",
"loglevel": "warning"
},
"inbounds": [
{
"tag": "socks",
"port": 10808,
"listen": "127.0.0.1",
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
},
{
"tag": "http",
"port": 10809,
"listen": "127.0.0.1",
"protocol": "http",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
},
{
"tag": "api",
"port": 49902,
"listen": "127.0.0.1",
"protocol": "dokodemo-door",
"settings": {
"udp": false,
"address": "127.0.0.1",
"allowTransparent": false
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": " ",
"port": 443,
"users": [
{
"id": "dcd1800f-981d-45be-bbab-9f04851d0b63",
"alterId": 0,
"email": "[email protected]",
"security": "auto"
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"allowInsecure": false,
"serverName": " "
},
"wsSettings": {
"path": "/",
"headers": {
"Host": " "
}
}
},
"mux": {
"enabled": false,
"concurrency": -1
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"stats": {},
"api": {
"tag": "api",
"services": [
"StatsService"
]
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"inboundTag": [
"api"
],
"outboundTag": "api",
"enabled": true
},
{
"type": "field",
"port": "0-65535",
"outboundTag": "proxy",
"enabled": true
}
]
}
}
- 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在
/var/log/v2ray/error.log
文件中。
客户端错误日志:
// 在这里附上客户端日志
2022/09/10 21:40:21 [Info] infra/conf/serial: Reading config: stdin:
2022/09/10 21:40:21 [Warning] core: Xray 1.5.6 started
2022/09/10 21:40:22 127.0.0.1:58409 accepted http://cachefly.cachefly.net/10mb.test [http10912 -> proxy10912]
2022/09/10 21:40:22 127.0.0.1:58413 accepted //kv501.prod.do.dsp.mp.microsoft.com:443 [http -> proxy]
2022/09/10 21:40:29 [Warning] [1871868958] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: failed to find an available destination > common/retry: [transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://im10ytx.top/): 200 OK > websocket: bad handshake] > common/retry: all retry attempts failed
2022/09/10 21:40:29 [Warning] [1871868958] proxy/http: failed to read response from cachefly.cachefly.net > io: read/write on closed pipe
2022/09/10 21:39:18 [Info] infra/conf/serial: Reading config: stdin:
2022/09/10 21:39:19 [Warning] core: Xray 1.5.6 started
2022/09/10 21:39:19 127.0.0.1:58246 accepted //www.google.com:443 [http10911 -> proxy10911]
2022/09/10 21:39:27 [Warning] [1440361754] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: failed to find an available destination > common/retry: [transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://im10ytx.top/): 200 OK > websocket: bad handshake] > common/retry: all retry attempts failed
2022/09/10 21:39:27 127.0.0.1:58289 accepted //www.google.com:443 [http10911 -> proxy10911]
2022/09/10 21:39:35 [Warning] [2620112330] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: failed to find an available destination > common/retry: [transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://im10ytx.top/): 200 OK > websocket: bad handshake] > common/retry: all retry attempts failed
您好 请问问题解决了吗?我也遇到了一样的问题
+1
我也遇到了一样的问题,我是x-ui配置服务器,v2ray使用客户端。发现是x-ui里设置 入站列表 的时候 域名填写错误了,域名开头没有加上自己写的名称(即cloud flare 的DNS里“A”类型后面的名字),加上后就正常了。小白被这一个小地方搞得s去h来,还好最后搞通了,心情舒畅。
应该是你们时间不对,修改服务器时间在试试
修改时间后,还是一样,有没解决方法
证书是不是免费的,zerossl的?
这问题这么冷门吗?我也遇到了同样的问题,用的是宝塔面板 + x-ui面板,教程网上很多了,随便贴一个,https://mgxray.xyz/159/ , 直接扫描配置的二维码,可以正常使用,但是在宝塔面板里设置好反代之后,把IP地址换成域名,端口换成443,打开tls,之后就无法访问了,一模一样的错误,域名在cloudflare里面开启了cdn,但是我上一个也是这样设置的,上次没有用x-ui,这次用了x-ui就不行了,不知道问题出在哪里
好了,我手贱把x-ui的监听IP填写上了自己的IP地址,实际上那里要留空
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days
应该是你们时间不对,修改服务器时间在试试
我鼓捣了一晚上,我就没想到是时间的问题,更新系统时间就好了