Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动sing-box 后,每隔一段时间出现 dns exchange failed 、use of closed network connection、等日志信息 #1761

Closed
4 of 5 tasks
Oterea opened this issue May 13, 2024 · 0 comments
Labels
from end user An end user is asking a developer to fix their problem for free question Further information is requested

Comments

@Oterea
Copy link

Oterea commented May 13, 2024

Operating system

macOS

System version

M2 chip ; mac os 14.4

Installation type

sing-box for macOS Graphical Client

If you are using a graphical client, please provide the version of the client.

1.8.13

Version

No response

Description

启动sing-box之后,有error日志,有一些日志要运行一段时间才会出现:
ERROR[2554][1942272427 5m22s] inbound/tun[e]: download: read tcp 10.15.212.107:52598->x.x.x.x:x:read: operation timed out
ERROR[0138][445769450 2m15s] inbound/tun[0]: download:read tcp 10.15.212.107:64349->x.x.x.x:x:read: operation timed out

ERROR[0147][2414471350 2m24s] inbound/tun[0]: download: read tcp 10.15.212.107:64354->x.x.x.x:x: read: operation timed out

ERROR[0208] dns: exchange failed for mask.apple-dns.net. IN A: Post "https://1.1.1.1/dns-query" : read tcp 10.15.212.107:64502->x.x.x.x:x:use of closed network connection

ERROR[0755]dns:exchange failed for api.github.com. IN A:Post "https://1.1.1.1/dns-query":read tcp 10.15.212.107:64804->x.x.x.x:x:useof closed network connection

ERROR[0755] dns:exchange failed for collector.github.com. IN A: Post "https://1.1.1.1/dns-query": read tcp
10.15.212.107:64804->x.x.x.x:x:use of closed network connection

Reproduction

在mac os 或者ios,使用下面的配置可复现:
{
"log":
{
"disabled": false,
"level": "warn",
"timestamp": true
},
"experimental":
{
"clash_api":
{
"external_controller": "127.0.0.1:9090",
"external_ui": "xd",
"external_ui_download_url": "https://github.com/MetaCubeX/metacubexd/archive/gh-pages.zip",
"external_ui_download_detour": "proxy",
"default_mode": "Rule"
}
},
"dns":
{
"servers":
[
{
"tag": "proxy_dns",
"address": "https://1.1.1.1/dns-query",
"detour": "proxy"
},
{
"tag": "local_dns",
"address": "https://223.5.5.5/dns-query",
"detour": "direct"
},
{
"tag": "block",
"address": "rcode://success"
}
],
"rules":
[
{
"outbound": "any",
"server": "local_dns"
},
{
"rule_set": "geosite-cn",
"server": "local_dns"
},
{
"rule_set": "geosite-geolocation-!cn",
"server": "proxy_dns"
}
],
"final": "proxy_dns",
"strategy": "ipv4_only"
},
"inbounds":
[
{
"type": "tun",
"inet4_address": "172.19.0.1/30",
"mtu": 9000,
"auto_route": true,
"strict_route": true,
"sniff": true,
"stack": "system",
"platform":
{
"http_proxy":
{
"enabled": true,
"server": "127.0.0.1",
"server_port": 2080
}
}
},
{
"type": "mixed",
"listen": "127.0.0.1",
"listen_port": 2080,
"sniff": true
}
],
"route":
{
"auto_detect_interface": true,
"final": "proxy",
"rules":
[
{
"type": "logical",
"mode": "or",
"rules":
[
{
"port": 53
},
{
"protocol": "dns"
}
],
"outbound": "dns-out"
},
{
"protocol": "quic",
"outbound": "block"
},
{
"ip_is_private": true,
"outbound": "direct"
},
{
"rule_set": "geosite-geolocation-!cn",
"outbound": "proxy"
},
{
"rule_set":
[
"geosite-cn"
],
"outbound": "direct"
},
{
"rule_set":
[
"geoip-cn"
],
"outbound": "direct"
}
],
"rule_set":
[
{
"tag": "geoip-cn",
"type": "remote",
"format": "binary",
"url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/cn.srs",
"download_detour": "direct"
},
{
"tag": "geosite-cn",
"type": "remote",
"format": "binary",
"url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/cn.srs",
"download_detour": "direct"
},
{
"tag": "geosite-geolocation-!cn",
"type": "remote",
"format": "binary",
"url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/geolocation-!cn.srs",
"download_detour": "direct"
}
]
},
"outbounds":
[
{
"type": "direct",
"tag": "direct"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"type": "block",
"tag": "block"
},
{
"tag": "proxy",
"type": "urltest",
"outbounds":
[
"🇸🇬 Singapore 1"
]
},
{
"type": "shadowsocks",
"tag": "🇸🇬 Singapore 1",
"server": "domain",
"server_port": 24462,
"method": "aes-256-cfb",
"password": "password"
},

]

}

Logs

Machine: arm64
System: macOS Version 14.4(Build 23E214)

runtime/cgo: pthread_create failed: Resource temporarily unavailable
runtime/cgo: pthread_create failed: Resource temporarily unavailable
runtime/cgo: pthread_create failed: Resource temporarily unavailable
runtime/cgo: pthread_create failed: Resource temporarily unavailable

Supporter

Integrity requirements

  • I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
  • I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
  • I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
  • I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
@nekohasekai nekohasekai added question Further information is requested from end user An end user is asking a developer to fix their problem for free labels May 16, 2024
@nekohasekai nekohasekai closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from end user An end user is asking a developer to fix their problem for free question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants