taamarin / box_for_magisk

Transparent Proxy for Android(root)
GNU General Public License v3.0
1.01k stars 111 forks source link

无法启动sing-box service #67

Open NiuHK opened 7 months ago

NiuHK commented 7 months ago

提示: Asia/Shanghai 中国移动 / LTE,Unknown Fri Dec 8 12:06:17 CST 2023 version=v1.4.3

12:06 pm [Info]: Good day 12:06 pm [Info]: Current busybox v1.36.1 12:06 pm [Info]: Using kernel in /data/adb/box/bin/sing-box. 12:06 pm [Info]: sing-box version 1.8.0-alpha.15

Environment: go1.21.5 android/arm64 Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_clash_api Revision: 7993c23d69bbdcb66bbe8764cbba0a379a8da536 CGO: enabled 12:06 pm [Info]: deleting and backup logs 12:06 pm [Info]: crontab disabled. 12:06 pm [Info]: client-list: [ clash sing-box xray v2fly ] 12:06 pm [Info]: choose: sing-box, start the service. 12:06 pm [Info]: config /data/adb/box/sing-box/config.json 12:06 pm [Info]: type [Tun] already exists in /data/adb/box/sing-box/config.json 12:06 pm [Info]: sing-box cgroup memcg: false 12:06 pm [Info]: sing-box cgroup cpuset: false 12:06 pm [Info]: sing-box cgroup blkio: false 12:06 pm [Info]: sing-box skipped port detection. 12:06 pm [Error]: INFO[0000] router: loaded geoip database: 12 codes INFO[0000] router: loaded geosite database: 1465 codes INFO[0000] router: updated default interface wlan0, index 17, vpn disabled INFO[0000] router: updated packages list: 394 packages, 25 shared users TRACE[0000] inbound/tun[0]: creating stack INFO[0000] inbound/tun[0]: started at tun0 INFO[0000] inbound/socks[socks-in]: tcp server started at 127.0.0.1:10808 INFO[0000] inbound/mixed[mixed-in]: tcp server started at 127.0.0.1:10810 cmd: Failure calling service settings: Failed transaction (2147483646) FATAL[0000] start service: initialize inbound/mixed[mixed-in]: set system proxy: execute (/system/bin/settings) settings put global http_proxy 127.0.0.1:10810: exit status 2 12:06 pm [Error]: sing-box service is not running. 12:06 pm [Error]: please check sing-box.log for more information. 12:06 pm [Error]: killing stale pid 30965

查到有解决办法是用两次su,但是在我这里没有效果

NiuHK commented 7 months ago

目前解决办法,删掉了inbound/mixed和 inbound/socks,