SagerNet / SagerNet/sing-box

Remote profile updates in SFA works not reliably

Open
#3,409 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
38.2k
Forks
4.6k
Avg merge
19d 15h
Merged PRs (30d)
1

Description

Operating system

Android

System version

Android 15

Installation type

sing-box for Android Graphical Client

If you are using a graphical client, please provide the version of the client.

1.12.8

Version

Description

Hello!
It seems that app does not update remote profiles when SFA is active.
Sometimes updates occur in time, sometimes with a delay of several hours, sometimes the profile may not be updated for several days.
I tried to describe a reliable way to reproduce the problem, but I'm not sure that it will work 100%.

Reproduction
  1. Create some minimal config, empty json object is enough: {}
  2. Put the created config in the https accessible directory.
  3. Clear SFA app data.
  4. Create remote profile in the SFA, enter url that points to the previously created config.
  5. Enable autoupdate and set update interval to 15 minutes.
  6. Start the SFA.
  7. Wait 30-40 minutes and check profile last update time.
Expected behavior

Update time should be not more than 15 minutes in the passed.

Actual behavior

Update time is equal to profile creation time.
Checking the http server logs also showed that SFA requested config only once, during profile creation.

Logs

Supporter
Integrity requirements
  • I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
  • I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
  • I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
  • I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the SFA remote-profile flow and its autoupdate setting, then reproduce the minimal HTTPS configuration case using the stated 15-minute interval. Compare the profile's last-update time with the HTTP server request log; done means the profile is fetched again and updated within the configured interval.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, go
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.