Skip to content

启动以后总是报错sing-box没有启动 #344

@Jixiangup

Description

@Jixiangup

Bug description

启动服务以后没看到有报错日志 但是就提示 sing-box 没有启动

Image

Actual behavior

使用的是默认配置

Expected behavior

正常代理

Steps to reproduce

下载插件 配置订阅 启动 就会这样

HomeProxy configuration

root@ImmortalWrt:/etc/config# cat homeproxy

config homeproxy 'infra'
option __warning 'DO NOT EDIT THIS SECTION, OR YOU ARE ON YOUR OWN!'
option common_port '22,53,80,143,443,465,853,873,993,995,5222,8080,8443,9418'
option mixed_port '5330'
option redirect_port '5331'
option tproxy_port '5332'
option dns_port '5333'
option ntp_server 'time.apple.com'
option sniff_override '1'
option tun_name 'singtun0'
option tun_addr4 '172.19.0.1/30'
option tun_addr6 'fdfe:dcba:9876::1/126'
option tun_mtu '9000'
option table_mark '100'
option self_mark '100'
option tproxy_mark '101'
option tun_mark '102'

config homeproxy 'migration'
option crontab '1'

config homeproxy 'config'
option main_node '67e488b10a1a6f4f2af42f42c0f07775'
option main_udp_node 'same'
option dns_server '8.8.8.8'
option routing_mode 'bypass_mainland_china'
option routing_port 'common'
option proxy_mode 'redirect_tproxy'
option ipv6_support '1'

config homeproxy 'routing'
option sniff_override '1'
option default_outbound 'direct-out'

config homeproxy 'dns'
option dns_strategy 'prefer_ipv4'
option default_server 'local-dns'
option disable_cache '0'
option disable_cache_expire '0'

sing-box configuration

  • client
{
        "log": {
                "disabled": false,
                "level": "warn",
                "output": "/var/run/homeproxy/sing-box-c.log",
                "timestamp": true
        },
        "ntp": {
                "enabled": true,
                "server": "time.apple.com",
                "detour": "direct-out"
        },
        "dns": {
                "servers": [
                        {
                                "tag": "default-dns",
                                "address": "192.168.1.1",
                                "detour": "direct-out"
                        },
                        {
                                "tag": "system-dns",
                                "address": "local",
                                "detour": "direct-out"
                        },
                        {
                                "tag": "block-dns",
                                "address": "rcode://refused"
                        },
                        {
                                "tag": "main-dns",
                                "address": "tcp://8.8.8.8",
                                "address_resolver": "default-dns",
                                "detour": "main-out"
                        },
                        {
                                "tag": "china-dns",
                                "address": "223.5.5.5",
                                "address_resolver": "default-dns",
                                "detour": "direct-out"
                        }
                ],
                "rules": [
                        {
                                "domain": "time.apple.com",
                                "action": "route",
                                "server": "default-dns"
                        },
                        {
                                "outbound": "any",
                                "action": "route",
                                "server": "default-dns"
                        },
                        {
                                "rule_set": "geosite-cn",
                                "action": "route",
                                "server": "china-dns"
                        },
                        {
                                "type": "logical",
                                "mode": "and",
                                "rules": [
                                        {
                                                "rule_set": "geosite-noncn",
                                                "invert": true
                                        },
                                        {
                                                "rule_set": "geoip-cn"
                                        }
                                ],
                                "action": "route",
                                "server": "china-dns"
                        }
                ],
                "disable_cache": false,
                "disable_expire": false,
                "independent_cache": false,
                "final": "main-dns"
        },
        "inbounds": [
                {
                        "type": "direct",
                        "tag": "dns-in",
                        "listen": "::",
                        "listen_port": 5333
                },
                {
                        "type": "mixed",
                        "tag": "mixed-in",
                        "listen": "::",
                        "listen_port": 5330,
                        "sniff": true,
                        "sniff_override_destination": true,
                        "set_system_proxy": false
                },
                {
                        "type": "redirect",
                        "tag": "redirect-in",
                        "listen": "::",
                        "listen_port": 5331,
                        "sniff": true,
                        "sniff_override_destination": true
                },
                {
                        "type": "tproxy",
                        "tag": "tproxy-in",
                        "listen": "::",
                        "listen_port": 5332,
                        "network": "udp",
                        "sniff": true,
                        "sniff_override_destination": true
                }
        ],
        "outbounds": [
                {
                        "type": "direct",
                        "tag": "direct-out",
                        "routing_mark": 100
                },
                {
                        "type": "block",
                        "tag": "block-out"
                },
                {
                        "type": "trojan",
                        "tag": "main-out",
                        "routing_mark": 100,
                        "server": "h00kgaa8.star11.xyz",
                        "server_port": 60017,
                        "password": "d8f5b3ba-ecb1-491f-8023-5507ba948be6",
                        "tls": {
                                "enabled": true,
                                "server_name": "g.alicdn.com",
                                "insecure": false
                        }
                }
        ],
        "route": {
                "rules": [
                        {
                                "inbound": "dns-in",
                                "action": "hijack-dns"
                        }
                ],
                "rule_set": [
                        {
                                "type": "remote",
                                "tag": "geoip-cn",
                                "format": "binary",
                                "url": "https://fastly.jsdelivr.net/gh/1715173329/IPCIDR-CHINA@rule-set/cn.srs",
                                "download_detour": "main-out"
                        },
                        {
                                "type": "remote",
                                "tag": "geosite-cn",
                                "format": "binary",
                                "url": "https://fastly.jsdelivr.net/gh/1715173329/sing-geosite@rule-set-unstable/geosite-geolocation-cn.srs",
                                "download_detour": "main-out"
                        },
                        {
                                "type": "remote",
                                "tag": "geosite-noncn",
                                "format": "binary",
                                "url": "https://fastly.jsdelivr.net/gh/1715173329/sing-geosite@rule-set-unstable/geosite-geolocation-!cn.srs",
                                "download_detour": "main-out"
                        }
                ],
                "auto_detect_interface": true,
                "final": "main-out"
        },
        "experimental": {
                "cache_file": {
                        "enabled": true,
                        "path": "/var/run/homeproxy/cache.db"
                }
        }
}

  • server

root@ImmortalWrt:/etc/config# cat /var/run/homeproxy/sing-box-s.json
cat: can't open '/var/run/homeproxy/sing-box-s.json': No such file or directory

HomeProxy log

root@ImmortalWrt:/etc/config# cat /var/run/homeproxy/homeproxy.log
2025-07-24 22:05:16 [DAEMON] Reloading service...
2025-07-24 22:05:21 [DAEMON] Service stopped.
2025-07-24 22:05:25 [DAEMON] sing-box 1.11.15 started.
2025-07-24 22:11:43 [CHINA_IP4] Failed to get the latest version, please retry later.
2025-07-24 22:11:48 [CHINA_IP6] Failed to get the latest version, please retry later.
2025-07-24 22:11:53 [CHINA_LIST] Failed to get the latest version, please retry later.
2025-07-24 22:11:58 [GFW_LIST] Failed to get the latest version, please retry later.
2025-07-24 22:12:12 [DAEMON] Reloading service...
2025-07-24 22:12:19 [DAEMON] Service stopped.
2025-07-24 22:12:22 [DAEMON] Reloading service...
2025-07-24 22:12:27 [DAEMON] Service stopped.
2025-07-24 22:12:31 [DAEMON] sing-box 1.11.15 started.
2025-07-24 22:16:11 [DAEMON] Reloading service...
2025-07-24 22:16:16 [DAEMON] Service stopped.
2025-07-24 22:16:25 [DAEMON] Reloading service...
2025-07-24 22:16:30 [DAEMON] Service stopped.
2025-07-24 22:16:34 [DAEMON] sing-box 1.11.15 started.
2025-07-24 22:17:19 [DAEMON] Reloading service...
2025-07-24 22:17:25 [DAEMON] Service stopped.
2025-07-24 22:23:44 [DAEMON] Reloading service...
2025-07-24 22:23:49 [DAEMON] Service stopped.
2025-07-24 22:23:53 [DAEMON] sing-box 1.11.15 started.
2025-07-24 22:24:59 [DAEMON] Reloading service...
2025-07-24 22:25:05 [DAEMON] Service stopped.
2025-07-24 22:26:54 [DAEMON] Service stopped.
2025-07-24 22:34:51 [DAEMON] Service stopped.
2025-07-24 22:36:02 [DAEMON] Reloading service...
2025-07-24 22:36:07 [DAEMON] Service stopped.
2025-07-24 22:36:21 [DAEMON] Reloading service...
2025-07-24 22:36:26 [DAEMON] Service stopped.
2025-07-24 22:36:29 [SUBSCRIBE] Stopping service...
2025-07-24 22:36:34 [DAEMON] Service stopped.
2025-07-24 22:36:36 [SUBSCRIBE] Skipping blacklist node: 剩余流量:164.51 GB.
2025-07-24 22:36:36 [SUBSCRIBE] Skipping blacklist node: 距离下次重置剩余:9 天.
2025-07-24 22:36:36 [SUBSCRIBE] Skipping blacklist node: 套餐到期:2026-06-02.
2025-07-24 22:36:36 [SUBSCRIBE] Successfully fetched 35 nodes of total 38 from https://tvm.xa5z.org/xm6bh9/e828ea1a6c12deca7132eb65dbcd2abf.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇭🇰 香港 01.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇭🇰 香港 02.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇭🇰 香港 03.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇭🇰 香港 04.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇭🇰 香港 05.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇭🇰 香港 06.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇭🇰 香港 07.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇭🇰 香港 08.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇭🇰 香港 09.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇭🇰 香港 10.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇸🇬 新加坡 01.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇸🇬 新加坡 02.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇸🇬 新加坡 03.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇸🇬 新加坡 04.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇸🇬 新加坡 05.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇸🇬 新加坡 06.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🏳️‍🌈 台湾 01.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🏳️‍🌈 台湾 02.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🏳️‍🌈 台湾 03.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🏳️‍🌈 台湾 04.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇯🇵 日本 01.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇯🇵 日本 02.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇯🇵 日本 03.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇯🇵 日本 04.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇺🇸 美国 01.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇺🇸 美国 02.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇺🇸 美国 03.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇺🇸 美国 04.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇺🇸 美国 05.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇺🇸 美国 06.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇨🇦 加拿大 01.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇰🇷 韩国 01.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇬🇧 英国 01.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇫🇷 法国 01.
2025-07-24 22:36:36 [SUBSCRIBE] Adding node: 🇩🇪 德国 01.
2025-07-24 22:36:36 [SUBSCRIBE] Restarting service...
2025-07-24 22:36:42 [DAEMON] Service stopped.
2025-07-24 22:36:43 [SUBSCRIBE] 35 nodes added, 0 removed.
2025-07-24 22:36:43 [SUBSCRIBE] Successfully updated subscriptions.
2025-07-24 22:36:48 [DAEMON] Reloading service...
2025-07-24 22:36:54 [DAEMON] Service stopped.
2025-07-24 22:36:58 [DAEMON] sing-box 1.11.15 started.
2025-07-24 23:11:16 [DAEMON] Reloading service...
2025-07-24 23:11:22 [DAEMON] Service stopped.
2025-07-24 23:11:26 [DAEMON] sing-box 1.11.15 started.

sing-box log

root@ImmortalWrt:/etc/config# cat /var/run/homeproxy/sing-box-c.log

root@ImmortalWrt:/etc/config# cat /var/run/homeproxy/sing-box-s.log
cat: can't open '/var/run/homeproxy/sing-box-s.log': No such file or directory
root@ImmortalWrt:/etc/config#

OpenWrt/ImmortalWrt release

root@ImmortalWrt:/etc/config# . /etc/openwrt_release && echo $DISTRIB_RELEASE $DISTRIB_REVISION 24.10.2 r33247-467867283bb9

Device

root@ImmortalWrt:/etc/config# cat /tmp/sysinfo/model Techvision TVI7309X

Additional information

No response

Terms

  • I confirm that the HomeProxy I installed is from official source, like GitHub artifacts or official ImmortalWrt opkg feeds.
  • I confirm that the Homeproxy I installed does not contain Clash mode support.
  • I confirm that the version of OpenWrt/ImmortalWrt I installed is >= 23.05.
  • I confirm that I have installed the latest version of HomeProxy and sing-box.
  • I confirm that I have read the sing-box documentation, understand the meaning of all the configuration items I added.
  • I confirm that I have not mixed iptables and nftables rules.
  • I confirm that I have not modified system DNS settings, or enabled any other DNS servers like MosDNS and SmartDNS.
  • I confirm that I have cleared the browser cache.
  • I confirm that I have selected all terms blindly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions