[GH-ISSUE #5030] [Bug]: ANdroid sub update #3543

Closed
opened 2026-10-31 20:33:11 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @Ebabil26 on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5030

Describe the bug

Subscription links can be added successfully on Android clients, but subscription updates are unreliable. Sometimes the update works, but in many cases the client fails to refresh the subscription and returns a timeout error. As a result, newly added or modified nodes are not always received by the Android client.

How to reproduce the problem

  1. Create a client and generate a subscription link in 3x-ui.
  2. Import the subscription URL into an Android client (e.g. v2rayNG, Hiddify, NekoBox).
  3. Verify that the subscription is added successfully.
  4. Modify the subscription on the server side (add, remove, or update nodes).
  5. Update the subscription multiple times from the Android client.

Expected behavior

The Android client should consistently update the subscription and receive the latest configuration changes.

Actual behavior

The subscription is imported successfully, but updates are inconsistent. Sometimes the update succeeds, while other times it fails with a timeout error. When the timeout occurs, the client does not receive the latest subscription data.

Screenshots

No response

3x-ui version

3.2.8

Xray-core version

26.6.1

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 26.04

Which parts of the panel are affected?

Subscription management

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @Ebabil26 on GitHub (Jun 6, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5030 ### Describe the bug Subscription links can be added successfully on Android clients, but subscription updates are unreliable. Sometimes the update works, but in many cases the client fails to refresh the subscription and returns a timeout error. As a result, newly added or modified nodes are not always received by the Android client. ### How to reproduce the problem 1. Create a client and generate a subscription link in 3x-ui. 2. Import the subscription URL into an Android client (e.g. v2rayNG, Hiddify, NekoBox). 3. Verify that the subscription is added successfully. 4. Modify the subscription on the server side (add, remove, or update nodes). 5. Update the subscription multiple times from the Android client. ### Expected behavior The Android client should consistently update the subscription and receive the latest configuration changes. ### Actual behavior The subscription is imported successfully, but updates are inconsistent. Sometimes the update succeeds, while other times it fails with a timeout error. When the timeout occurs, the client does not receive the latest subscription data. ### Screenshots No response ### 3x-ui version 3.2.8 ### Xray-core version 26.6.1 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 26.04 ### Which parts of the panel are affected? Subscription management ### Browser (only if it is a UI bug) No response ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:33:11 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 6, 2026):

Thanks for the detailed report. Here is what to check first.

How the subscription server works

3x-ui runs a separate HTTP server for subscriptions, independently of the main panel. By default it listens on port 2096 (configurable at Panel Settings → Subscription → Listen Port). The subscription URL your clients use therefore points to http(s)://SERVER:2096/sub/SUBID.

Most likely causes of intermittent timeouts

1. Port 2096 not open in the firewall (most common)

On Ubuntu 24.04 with UFW enabled, port 2096 is often not allowed by default. A blocked port explains why updates are intermittent — some mobile carriers or networks may let the SYN packet through occasionally while others silently drop it.

Check and fix:

sudo ufw status        # is port 2096 listed?
sudo ss -tlnp | grep 2096   # is the sub server actually listening?

# If the port is missing from UFW:
sudo ufw allow 2096/tcp
sudo ufw reload

2. Verify the subscription URL is reachable at all

From a machine on a different network (not the server itself), try:

curl -v --max-time 10 "http://YOUR_SERVER_IP:2096/sub/YOUR_SUBID"

If that reliably returns a base64 string you are good. If it times out, the problem is network/firewall level and not inside 3x-ui.

3. Check 3x-ui logs for errors on update requests

journalctl -u x-ui -f

Look for lines that appear when an Android client tries to refresh. A 404 means the sub ID is wrong; a 500 means a server-side error; no log line at all during the client refresh means the packet never reached the server.

Additional info needed to dig further

Could you share:

  1. Output of sudo ufw status and sudo ss -tlnp | grep 2096
  2. What subscription URL format the clients use — does it include a port (:2096)? (You can redact the sub ID and replace the IP with X.X.X.X)
  3. Do the timeouts happen with all three clients (v2rayNG, Hiddify, NekoBox) or only some?
  4. Is the server behind any firewall outside Ubuntu (e.g., a cloud provider's security group like AWS/Oracle/Google Cloud)?
  5. Output of x-ui → option to show settings, or a screenshot of Panel Settings → Subscription (sub port, sub domain, TLS cert fields — redact real domain/IP)

If port 2096 is open and reachable but timeouts still happen intermittently, please also attach the relevant portion of journalctl -u x-ui covering a failed update attempt.

<!-- gh-comment-id:4640262354 --> @github-actions[bot] commented on GitHub (Jun 6, 2026): Thanks for the detailed report. Here is what to check first. ## How the subscription server works 3x-ui runs a **separate HTTP server** for subscriptions, independently of the main panel. By default it listens on **port 2096** (configurable at Panel Settings → Subscription → Listen Port). The subscription URL your clients use therefore points to `http(s)://SERVER:2096/sub/SUBID`. ## Most likely causes of intermittent timeouts ### 1. Port 2096 not open in the firewall (most common) On Ubuntu 24.04 with UFW enabled, port 2096 is often not allowed by default. A blocked port explains why updates are intermittent — some mobile carriers or networks may let the SYN packet through occasionally while others silently drop it. Check and fix: ```bash sudo ufw status # is port 2096 listed? sudo ss -tlnp | grep 2096 # is the sub server actually listening? # If the port is missing from UFW: sudo ufw allow 2096/tcp sudo ufw reload ``` ### 2. Verify the subscription URL is reachable at all From a machine on a different network (not the server itself), try: ```bash curl -v --max-time 10 "http://YOUR_SERVER_IP:2096/sub/YOUR_SUBID" ``` If that reliably returns a base64 string you are good. If it times out, the problem is network/firewall level and not inside 3x-ui. ### 3. Check 3x-ui logs for errors on update requests ```bash journalctl -u x-ui -f ``` Look for lines that appear when an Android client tries to refresh. A 404 means the sub ID is wrong; a 500 means a server-side error; no log line at all during the client refresh means the packet never reached the server. ## Additional info needed to dig further Could you share: 1. Output of `sudo ufw status` and `sudo ss -tlnp | grep 2096` 2. What subscription URL format the clients use — does it include a port (`:2096`)? (You can redact the sub ID and replace the IP with `X.X.X.X`) 3. Do the timeouts happen with **all three clients** (v2rayNG, Hiddify, NekoBox) or only some? 4. Is the server behind any firewall outside Ubuntu (e.g., a cloud provider's security group like AWS/Oracle/Google Cloud)? 5. Output of `x-ui` → option to show settings, or a screenshot of Panel Settings → Subscription (sub port, sub domain, TLS cert fields — redact real domain/IP) If port 2096 is open and reachable but timeouts still happen intermittently, please also attach the relevant portion of `journalctl -u x-ui` covering a failed update attempt.
Author
Owner

@Ebabil26 commented on GitHub (Jun 6, 2026):

  1. Output of sudo ufw status and sudo ss -tlnp | grep 2096
    $ sudo ufw status
    Status: inactive

$ sudo ss -tlnp | grep 2096
LISTEN 0 4096 *:2096 : users:(("x-ui",pid=80867,fd=8))
2. subscription URL format https://x.x.x.x:2096/sub-vpn/🇩🇪Vless_xxxx_xxxx
3. timeouts happen with Happ, v2raytun, incy only ANDROID

Image
<!-- gh-comment-id:4640337555 --> @Ebabil26 commented on GitHub (Jun 6, 2026): 1. Output of sudo ufw status and sudo ss -tlnp | grep 2096 $ sudo ufw status Status: inactive $ sudo ss -tlnp | grep 2096 LISTEN 0 4096 *:2096 *:* users:(("x-ui",pid=80867,fd=8)) 2. subscription URL format https://x.x.x.x:2096/sub-vpn/🇩🇪Vless_xxxx_xxxx 3. timeouts happen with Happ, v2raytun, incy only ANDROID <img width="1140" height="638" alt="Image" src="https://github.com/user-attachments/assets/8e64a400-3a53-4f66-bb30-a3ee18f79598" />
Author
Owner

@LORD07Sson commented on GitHub (Jun 7, 2026):

Вы явно не умеете понять базовые вещи, причина в том, что чувствительны к кодировке ссылок. Эмодзи и кириллица в пути URL могут некорректно обрабатываться парсером приложения, из-за чего клиент отправляет некорректный запрос на сервер и отваливается по тайм-ауту. Вы ознакомились с документацией API?

<!-- gh-comment-id:4643223967 --> @LORD07Sson commented on GitHub (Jun 7, 2026): Вы явно не умеете понять базовые вещи, причина в том, что чувствительны к кодировке ссылок. Эмодзи и кириллица в пути URL могут некорректно обрабатываться парсером приложения, из-за чего клиент отправляет некорректный запрос на сервер и отваливается по тайм-ауту. Вы ознакомились с документацией API?
Author
Owner

@Ebabil26 commented on GitHub (Jun 7, 2026):

Со всей документацией ознакомлен. Такая ссылка используется с версии 2.9.2 на всех тех же клиентах(Happ, v2RayTun, incy, Streisand). После перехода на версию 3.x.x всё также работало до какого-то момента. Проблемы начались именно на Android. Все остальные платформы работают: ios, macos, windows. Проводились тесты и без эмодзи, ситуация такая же. Так что дело явно не в кодировке ссылок и эмодзи.

<!-- gh-comment-id:4643407527 --> @Ebabil26 commented on GitHub (Jun 7, 2026): Со всей документацией ознакомлен. Такая ссылка используется с версии 2.9.2 на всех тех же клиентах(Happ, v2RayTun, incy, Streisand). После перехода на версию 3.x.x всё также работало до какого-то момента. Проблемы начались именно на Android. Все остальные платформы работают: ios, macos, windows. Проводились тесты и без эмодзи, ситуация такая же. Так что дело явно не в кодировке ссылок и эмодзи.
Author
Owner

@MHSanaei commented on GitHub (Jun 11, 2026):

The subscription server is responding correctly: updates work on iOS, macOS and Windows, the failures are intermittent and only reproduce in Android client apps (v2raytun, Happ, etc.), and no server-side errors appear in the logs. This points to client-app or network behavior on Android (connection handling, DNS caching, carrier filtering) rather than a 3x-ui bug. Please report it to the affected client app''s issue tracker. Closing as not a panel issue — feel free to reopen if you can show a failing request reaching the sub server with an incorrect response.

<!-- gh-comment-id:4685773578 --> @MHSanaei commented on GitHub (Jun 11, 2026): The subscription server is responding correctly: updates work on iOS, macOS and Windows, the failures are intermittent and only reproduce in Android client apps (v2raytun, Happ, etc.), and no server-side errors appear in the logs. This points to client-app or network behavior on Android (connection handling, DNS caching, carrier filtering) rather than a 3x-ui bug. Please report it to the affected client app''s issue tracker. Closing as not a panel issue — feel free to reopen if you can show a failing request reaching the sub server with an incorrect response.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3543
No description provided.