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 wont startup with system #99

Closed
defectly opened this issue Aug 9, 2024 · 4 comments
Closed

sing-box wont startup with system #99

defectly opened this issue Aug 9, 2024 · 4 comments

Comments

@defectly
Copy link

defectly commented Aug 9, 2024

In previous versions it was working even after system restart. Please return this feature 🥺

@whalechoi
Copy link
Collaborator

check helper.log, this feature no change since 1.0

@defectly
Copy link
Author

check helper.log, this feature no change since 1.0

FATAL[0000] start service: initialize rule-set[2]: initial rule-set: geoip-cn: Get "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs": dial tcp 185.204.3.148:443: connect: network is unreachable | initialize rule-set[2]: initial rule-set: geosite-cn: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs": dial tcp 185.204.3.148:443: connect: network is unreachable | initialize rule-set[2]: initial rule-set: geosite-google: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-google.srs": context canceled

soo sing-box core just wont start with system because of unreachable connection? what can i do with that?

@whalechoi
Copy link
Collaborator

check helper.log, this feature no change since 1.0

FATAL[0000] start service: initialize rule-set[2]: initial rule-set: geoip-cn: Get "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs": dial tcp 185.204.3.148:443: connect: network is unreachable | initialize rule-set[2]: initial rule-set: geosite-cn: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs": dial tcp 185.204.3.148:443: connect: network is unreachable | initialize rule-set[2]: initial rule-set: geosite-google: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-google.srs": context canceled

soo sing-box core just wont start with system because of unreachable connection? what can i do with that?

Replace file /data/adb/service.d/xray4magisk_service.sh with:

#!/system/bin/sh

(
    until [ $(ping -q -c1 1.1.1.1 &>/dev/null && echo 1 || echo 2) -eq 1 ]; do
        sleep 5
    done
    /data/adb/xray/scripts/start.sh
) &

This scritp will wait for network ready, then startup the module service, and you can change the test IP with you want to use.

@whalechoi whalechoi pinned this issue Aug 11, 2024
@whalechoi whalechoi changed the title startup with system sing-box wont startup with system Aug 11, 2024
@defectly
Copy link
Author

check helper.log, this feature no change since 1.0

FATAL[0000] start service: initialize rule-set[2]: initial rule-set: geoip-cn: Get "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs": dial tcp 185.204.3.148:443: connect: network is unreachable | initialize rule-set[2]: initial rule-set: geosite-cn: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs": dial tcp 185.204.3.148:443: connect: network is unreachable | initialize rule-set[2]: initial rule-set: geosite-google: Get "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-google.srs": context canceled
soo sing-box core just wont start with system because of unreachable connection? what can i do with that?

Replace file /data/adb/service.d/xray4magisk_service.sh with:

#!/system/bin/sh

(
    until [ $(ping -q -c1 1.1.1.1 &>/dev/null && echo 1 || echo 2) -eq 1 ]; do
        sleep 5
    done
    /data/adb/xray/scripts/start.sh
) &

This scritp will wait for network ready, then startup the module service, and you can change the test IP with you want to use.

thank you

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