Throne icon indicating copy to clipboard operation
Throne copied to clipboard

Race between WARP initialization and geo rules update

Open thesourcehim opened this issue 6 months ago • 4 comments

Operating system

Linux

System version

Fedora 44/Windows 11 Home

Installation type

zip

Version

1.1.3

Description

If WARP is enabled there seems to be a race between WARP init and geo rules update upon starting the profile, which results in the following error messages:

ERROR[0000] router: fetch rule-set geoip-ru: Get "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/ru.srs": WireGuard is not ready yet ERROR[0000] router: fetch rule-set geosite-category-ru: Get "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/category-ru.srs": WireGuard is not ready yet INFO[0000] endpoint/wireguard[proxy]: outbound connection to raw.githubusercontent.com:443 ERROR[0000] router: fetch rule-set geosite-ru-available-only-inside: Get "https://raw.githubusercontent.com/runetfreedom/russia-v2ray-rules-dat/release/sing-box/rule-set-geosite/geosite-ru-available-only-inside.srs": WireGuard is not ready yet

Happens in both Linux and Windows versions.

Reproduction

Setup a profile (mine is shadowsocks), enable WARP (generate config if absent), start profile.

Logs


thesourcehim avatar May 21 '26 04:05 thesourcehim

What is the impact of these? does the profile not work or get stopped?

Mahdi-zarei avatar May 22 '26 00:05 Mahdi-zarei

Profile works, but it seems that geo rules do not get updated. I have to explicitly disable warp to be able to update them upon profile start/restart.

thesourcehim avatar May 22 '26 03:05 thesourcehim

Yesterday, while testing awg in dev, I encountered a similar issue (last comment), but the built-in warp wasn't enabled. Today, I decided to check what was described here. Briefly, after deleting the cache.db file and enabling the warp option in the routing rules, the rules aren't updated, and startup fails (warp must be disabled). This happens in Throne not only with the ss+warp chain but also with other chains, for example hy2+warp. The cache.db file is still created, and it seems to always be 32 KB in size, regardless of the selected routing profile.

I have an SS+warp configuration for sing-box that doesn't work otherwise. I haven't encountered any issues updating rules through it in the latest alpha-sing.

Image Image Image Image Image

Logs sing:

INFO[0000] network: updated default interface wlan0, index 3 INFO[0000] outbound/shadowsocks[Europe]: outbound packet connection to 1.2.3.4...:2408 INFO[0004] router: updated rule-set geosite-category-media-ru INFO[0004] router: updated rule-set geosite-category-gov-ru INFO[0004] router: updated rule-set geosite-private INFO[0004] router: updated rule-set geosite-category-ru INFO[0004] inbound/tun[tun-in]: started at sing-box INFO[0004] sing-box started (4.36s) INFO[0005] [413796328 0ms] inbound/tun[tun-in]: inbound redirect connection from 192.168.0...:50120 INFO[0005] [413796328 0ms] inbound/tun[tun-in]: inbound connection to 76.76.2.11:443 INFO[0005] [1526725040 0ms] inbound/tun[tun-in]: inbound redirect connection from 192.168.0...:50128 INFO[0005] [1526725040 0ms] inbound/tun[tun-in]: inbound connection to 76.76.2.11:443 INFO[0005] [2381266492 0ms] inbound/tun[tun-in]: inbound redirect connection from 192.168.0...:50154 INFO[0005] [2381266492 0ms] inbound/tun[tun-in]: inbound connection to 76.76.2.11:443 INFO[0005] [2381266492 1ms] endpoint/wireguard[warp+]: outbound connection to 76.76.2.11:443

di1905 avatar Jun 05 '26 03:06 di1905

Try 1.1.5

Mahdi-zarei avatar Jun 06 '26 21:06 Mahdi-zarei