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

SFA运行时更新配置无法正常重载 #2414

Closed
4 of 5 tasks
Rumors-bitch opened this issue Dec 28, 2024 · 2 comments
Closed
4 of 5 tasks

SFA运行时更新配置无法正常重载 #2414

Rumors-bitch opened this issue Dec 28, 2024 · 2 comments

Comments

@Rumors-bitch
Copy link

Rumors-bitch commented Dec 28, 2024

操作系统

Android

系统版本

LineageOS 21 Android 14

安装类型

sing-box for Android 图形客户端程序

如果您使用图形客户端程序,请提供该程序版本。

1.11.0-beta.16

版本

No response

描述

运行一段时间后总是出现 dns: lookup failed for xxx.xxx: no available network interface,看日志发现运行过程中服务自己重启过两次,因为出现了3次初始化操作,最后一次没有这两行就出问题了

+0800 2024-12-28 21:53:44 INFO network: updated available networks: rmnet_data0 (cellular, expensive)
+0800 2024-12-28 21:53:44 INFO network: updated default interface rmnet_data0, index 10, type cellular, expensive

这是完整日志
box (2).log

重现方式

这是主要配置,启动软件,更新配置就能复现

{
    "log": {
        "disabled": false,
        "level": "error",
        "output": "",
        "timestamp": false
    },
    "dns": {
        "servers": [
            {
                "tag": "dns-cf",
                "address": "https://dns.cloudflare.com/dns-query",
                "address_resolver": "dns-local"
            },
            {
                "tag": "dns-ali",
                "address": "https://dns.alidns.com/dns-query",
                "address_resolver": "dns-local"
            },
            {
                "tag": "dns-local",
                "address": "local",
                "detour": "direct"
            }
        ],
        "rules": [
            {
                "action": "route",
                "outbound": "any",
                "server": "dns-ali"
            }
        ],
        "final": "dns-cf",
        "strategy": "ipv4_only",
        "independent_cache": true,
        "reverse_mapping": false
    },
    "inbounds": [
        {
            "type": "tun",
            "tag": "tun-in",
            "address": [
                "172.18.0.1/30"
            ],
            "mtu": 9000,
            "auto_route": true,
            "strict_route": true,
            "auto_redirect": false
        },
        {
            "type": "mixed",
            "tag": "mixed-in",
            "listen": "::",
            "listen_port": 2080
        }
    ],
    "outbounds": [
        {
            "type": "direct",
            "tag": "direct"
        }
    ],
    "route": {
        "rules": [
            {
                "action": "sniff",
                "inbound": [
                    "tun-in",
                    "mixed-in"
                ]
            },
            {
                "action": "resolve",
                "inbound": [
                    "tun-in",
                    "mixed-in"
                ]
            },
            {
                "action": "hijack-dns",
                "protocol": "dns"
            },
            {
                "action": "route",
                "ip_is_private": true,
                "outbound": "direct"
            }
        ],
        "rule_set": [],
        "auto_detect_interface": true,
        "override_android_vpn": true
    },
    "experimental": {
        "cache_file": {
            "enabled": true,
            "store_fakeip": false,
            "store_rdrc": true
        },
        "clash_api": {
            "external_controller": "0.0.0.0:9090",
            "external_ui": "ui"
        }
    }
}

日志

+0800 2024-12-28 23:07:45 ERROR [721866840 15m41s] connection: connection upload closed: raw read: software caused connection abort
+0800 2024-12-28 23:07:45 ERROR [1129869861 25.80s] connection: connection upload closed: raw read: software caused connection abort
+0800 2024-12-28 23:07:45 INFO inbound/tun[tun-in]: started at tun0
+0800 2024-12-28 23:07:45 INFO inbound/mixed[mixed-in]: tcp server started at [::]:2080
+0800 2024-12-28 23:07:45 WARN inbound/tun[tun-in]: bind forwarder to interface: operation not permitted
+0800 2024-12-28 23:07:45 INFO clash-api: restful api listening at [::]:9090
+0800 2024-12-28 23:07:45 INFO sing-box started (0.344s)
+0800 2024-12-28 23:07:46 INFO [373394275 0ms] inbound/tun[tun-in]: inbound packet connection from 172.18.0.1:50518
+0800 2024-12-28 23:07:46 INFO [373394275 0ms] inbound/tun[tun-in]: inbound packet connection to 172.18.0.2:53
+0800 2024-12-28 23:07:46 DEBUG [373394275 0ms] router: match[0] inbound=[tun-in mixed-in] => sniff
+0800 2024-12-28 23:07:46 DEBUG [373394275 0ms] router: sniffed packet protocol: dns
+0800 2024-12-28 23:07:46 DEBUG [373394275 1ms] router: match[1] inbound=[tun-in mixed-in] => resolve(ipv4_only)
+0800 2024-12-28 23:07:46 DEBUG [373394275 1ms] router: match[2] protocol=dns => hijack-dns
+0800 2024-12-28 23:07:46 DEBUG [373394275 1ms] dns: exchange mtalk.google.com. IN A
+0800 2024-12-28 23:07:46 INFO [373394275 1ms] outbound/vmess[新加坡 03 | tcp]: outbound connection to 1.1.1.1:443
+0800 2024-12-28 23:07:46 DEBUG [373394275 2ms] dns: lookup domain 945b5a1e-e0bc-428f-9971-1693ff81e5db.castlepeakhospital.moe
+0800 2024-12-28 23:07:46 DEBUG [373394275 2ms] router: match[0] outbound=any => route(dns-ali)
+0800 2024-12-28 23:07:46 DEBUG [373394275 2ms] router: match[0] => route(dns-ali)
+0800 2024-12-28 23:07:46 DEBUG [373394275 2ms] outbound/vmess[武汉电信 02 | tcp]: outbound connection to 223.6.6.6:443
+0800 2024-12-28 23:07:46 DEBUG [373394275 3ms] dns: lookup failed for 945b5a1e-e0bc-428f-9971-1693ff81e5db.castlepeakhospital.moe: no available network interface
+0800 2024-12-28 23:07:46 ERROR [373394275 3ms] dns: exchange failed for mtalk.google.com. IN A: no available network interface
+0800 2024-12-28 23:07:46 ERROR [373394275 3ms] dns: process packet connection: no available network interface
+0800 2024-12-28 23:07:50 INFO [3705933385 0ms] inbound/tun[tun-in]: inbound packet connection from 172.18.0.1:23053
+0800 2024-12-28 23:07:50 INFO [3705933385 1ms] inbound/tun[tun-in]: inbound packet connection to 172.18.0.2:53
+0800 2024-12-28 23:07:50 DEBUG [3705933385 2ms] router: match[0] inbound=[tun-in mixed-in] => sniff
+0800 2024-12-28 23:07:50 DEBUG [3705933385 3ms] router: sniffed packet protocol: dns
+0800 2024-12-28 23:07:50 DEBUG [3705933385 4ms] router: match[1] inbound=[tun-in mixed-in] => resolve(ipv4_only)
+0800 2024-12-28 23:07:50 DEBUG [3705933385 5ms] router: match[2] protocol=dns => hijack-dns
+0800 2024-12-28 23:07:50 DEBUG [3705933385 6ms] dns: exchange msfwifi.3g.qq.com. IN A
+0800 2024-12-28 23:07:50 DEBUG [3705933385 6ms] router: match[2] domain_keyword=[apple oray todesk...] rule_set=geosite-geolocation-cn => route(dns-ali)
+0800 2024-12-28 23:07:50 DEBUG [3705933385 7ms] router: match[2] => route(dns-ali)
+0800 2024-12-28 23:07:50 INFO [3705933385 9ms] outbound/vmess[武汉电信 02 | tcp]: outbound connection to 223.6.6.6:443
+0800 2024-12-28 23:07:50 ERROR [3705933385 10ms] dns: exchange failed for msfwifi.3g.qq.com. IN A: no available network interface
+0800 2024-12-28 23:07:50 ERROR [3705933385 11ms] dns: process packet connection: no available network interface
+0800 2024-12-28 23:07:50 DEBUG [3705933385 260ms] dns: exchange msfwifi.3g.qq.com. IN A
+0800 2024-12-28 23:07:50 DEBUG [3705933385 261ms] router: match[2] domain_keyword=[apple oray todesk...] rule_set=geosite-geolocation-cn => route(dns-ali)
+0800 2024-12-28 23:07:50 DEBUG [3705933385 261ms] router: match[2] => route(dns-ali)
+0800 2024-12-28 23:07:50 INFO [3705933385 262ms] outbound/vmess[武汉电信 02 | tcp]: outbound connection to 223.6.6.6:443
+0800 2024-12-28 23:07:50 ERROR [3705933385 263ms] dns: exchange failed for msfwifi.3g.qq.com. IN A: no available network interface
+0800 2024-12-28 23:07:50 ERROR [3705933385 263ms] dns: process packet connection: no available network interface
+0800 2024-12-28 23:07:51 DEBUG [373394275 5.0s] dns: exchange mtalk.google.com. IN A
+0800 2024-12-28 23:07:51 INFO [373394275 5.0s] outbound/vmess[新加坡 03 | tcp]: outbound connection to 1.1.1.1:443
+0800 2024-12-28 23:07:51 DEBUG [373394275 5.1s] dns: lookup domain 945b5a1e-e0bc-428f-9971-1693ff81e5db.castlepeakhospital.moe
+0800 2024-12-28 23:07:51 DEBUG [373394275 5.1s] router: match[0] outbound=any => route(dns-ali)
+0800 2024-12-28 23:07:51 DEBUG [373394275 5.1s] router: match[0] => route(dns-ali)
+0800 2024-12-28 23:07:51 DEBUG [373394275 5.1s] outbound/vmess[武汉电信 02 | tcp]: outbound connection to 223.6.6.6:443
+0800 2024-12-28 23:07:51 DEBUG [373394275 5.1s] dns: lookup failed for 945b5a1e-e0bc-428f-9971-1693ff81e5db.castlepeakhospital.moe: no available network interface
+0800 2024-12-28 23:07:51 ERROR [373394275 5.1s] dns: exchange failed for mtalk.google.com. IN A: no available network interface
+0800 2024-12-28 23:07:51 ERROR [373394275 5.1s] dns: process packet connection: no available network interface
+0800 2024-12-28 23:07:51 DEBUG [3705933385 1.26s] dns: exchange msfwifi.3g.qq.com. IN A
+0800 2024-12-28 23:07:51 DEBUG [3705933385 1.26s] router: match[2] domain_keyword=[apple oray todesk...] rule_set=geosite-geolocation-cn => route(dns-ali)
+0800 2024-12-28 23:07:51 DEBUG [3705933385 1.26s] router: match[2] => route(dns-ali)
+0800 2024-12-28 23:07:51 INFO [3705933385 1.26s] outbound/vmess[武汉电信 02 | tcp]: outbound connection to 223.6.6.6:443
+0800 2024-12-28 23:07:51 ERROR [3705933385 1.26s] dns: exchange failed for msfwifi.3g.qq.com. IN A: no available network interface
+0800 2024-12-28 23:07:51 ERROR [3705933385 1.26s] dns: process packet connection: no available network interface
+0800 2024-12-28 23:07:53 DEBUG [3705933385 3.27s] dns: exchange msfwifi.3g.qq.com. IN A
+0800 2024-12-28 23:07:53 DEBUG [3705933385 3.27s] router: match[2] domain_keyword=[apple oray todesk...] rule_set=geosite-geolocation-cn => route(dns-ali)
+0800 2024-12-28 23:07:53 DEBUG [3705933385 3.27s] router: match[2] => route(dns-ali)
+0800 2024-12-28 23:07:53 INFO [3705933385 3.27s] outbound/vmess[武汉电信 02 | tcp]: outbound connection to 223.6.6.6:443
+0800 2024-12-28 23:07:53 ERROR [3705933385 3.27s] dns: exchange failed for msfwifi.3g.qq.com. IN A: no available network interface
+0800 2024-12-28 23:07:53 ERROR [3705933385 3.27s] dns: process packet connection: no available network interface
+0800 2024-12-28 23:07:56 INFO [4109653024 0ms] inbound/tun[tun-in]: inbound packet connection from 172.18.0.1:44955
+0800 2024-12-28 23:07:56 INFO [4109653024 1ms] inbound/tun[tun-in]: inbound packet connection to 172.18.0.2:53
+0800 2024-12-28 23:07:56 DEBUG [4109653024 3ms] router: match[0] inbound=[tun-in mixed-in] => sniff
+0800 2024-12-28 23:07:56 DEBUG [4109653024 4ms] router: sniffed packet protocol: dns
+0800 2024-12-28 23:07:56 DEBUG [4109653024 5ms] router: match[1] inbound=[tun-in mixed-in] => resolve(ipv4_only)
+0800 2024-12-28 23:07:56 DEBUG [4109653024 6ms] router: match[2] protocol=dns => hijack-dns
+0800 2024-12-28 23:07:56 DEBUG [4109653024 8ms] dns: exchange mtalk.google.com. IN A
+0800 2024-12-28 23:07:56 INFO [4109653024 10ms] outbound/vmess[新加坡 03 | tcp]: outbound connection to 1.1.1.1:443
+0800 2024-12-28 23:07:56 DEBUG [4109653024 11ms] dns: lookup domain 945b5a1e-e0bc-428f-9971-1693ff81e5db.castlepeakhospital.moe
+0800 2024-12-28 23:07:56 DEBUG [4109653024 12ms] router: match[0] outbound=any => route(dns-ali)
+0800 2024-12-28 23:07:56 DEBUG [4109653024 12ms] router: match[0] => route(dns-ali)
+0800 2024-12-28 23:07:56 DEBUG [4109653024 14ms] outbound/vmess[武汉电信 02 | tcp]: outbound connection to 223.6.6.6:443
+0800 2024-12-28 23:07:56 DEBUG [4109653024 15ms] dns: lookup failed for 945b5a1e-e0bc-428f-9971-1693ff81e5db.castlepeakhospital.moe: no available network interface
+0800 2024-12-28 23:07:56 ERROR [4109653024 16ms] dns: exchange failed for mtalk.google.com. IN A: no available network interface
+0800 2024-12-28 23:07:56 ERROR [4109653024 17ms] dns: process packet connection: no available network interface
+0800 2024-12-28 23:07:56 INFO [3315488734 0ms] inbound/tun[tun-in]: inbound packet connection from 172.18.0.1:13189
+0800 2024-12-28 23:07:56 INFO [3315488734 0ms] inbound/tun[tun-in]: inbound packet connection to 172.18.0.2:53
+0800 2024-12-28 23:07:56 DEBUG [3315488734 0ms] router: match[0] inbound=[tun-in mixed-in] => sniff
+0800 2024-12-28 23:07:56 DEBUG [3315488734 1ms] router: sniffed packet protocol: dns
+0800 2024-12-28 23:07:56 DEBUG [3315488734 1ms] router: match[1] inbound=[tun-in mixed-in] => resolve(ipv4_only)
+0800 2024-12-28 23:07:56 DEBUG [3315488734 1ms] router: match[2] protocol=dns => hijack-dns
+0800 2024-12-28 23:07:56 DEBUG [3315488734 1ms] dns: exchange weixin.qq.com. IN A

支持我们

完整性要求

  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。
@Rumors-bitch
Copy link
Author

我找到原因了,应该是配置更新后重载的问题。
新建配置远程类型会默认启用自动更新,每小时一次,因为自己时不时会改配置,所以一直习惯于手动更新且每次更新完都会关闭后台重新打开软件,也就一直没发现这个问题,今天手动更新后看了眼日志页面,立马被 no available network interface 刷屏了。

@Rumors-bitch Rumors-bitch changed the title 运行一段时间后总是出现no available network interface SFA运行时更新配置无法正常重载 Dec 30, 2024
@nekohasekai nekohasekai added the bug Something isn't working label Jan 7, 2025
@nekohasekai
Copy link
Member

在最新版本无法重现。

@nekohasekai nekohasekai closed this as not planned Won't fix, can't repro, duplicate, stale Jan 7, 2025
@nekohasekai nekohasekai removed the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants