[GH-ISSUE #3871] [2.8.10] inbound clients may become null after auto-removal, causing all VLESS users on that inbound to disconnect #2620

Closed
opened 2026-10-31 20:26:46 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Clhikari on GitHub (Feb 28, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3871

Description

On x-ui 2.8.10, I hit a case where a VLESS inbound (:443, ws+tls) suddenly became unusable for all clients.

After checking runtime config, the inbound's settings.clients became null.

This made all devices fail auth (symptom: clients report connect/check latency failure like -1).

Observed behavior

  • Runtime file: /usr/local/x-ui/bin/config.json
  • Affected inbound: id=1, port=443, protocol=vless
  • Broken state seen:
"settings": {
  "clients": null,
  "decryption": "none"
}
  • Journal shows repeated auto-removal before/around breakage:
INFO - Remove Inbound User wtTx.love@xray.com due to expiration or traffic limit

Logs

From journalctl -u x-ui:

  • Feb 28 17:21:16 ... Remove Inbound User ... due to expiration or traffic limit
  • Feb 28 17:34:13 ... Remove Inbound User ... due to expiration or traffic limit

Environment

  • OS: Ubuntu
  • x-ui version: 2.8.10
  • Protocol: VLESS + WS + TLS

Impact

This is severe because one invalid transition (clients: null) takes the entire inbound offline for all users, not just a single expired/limited user.

Expected behavior

When last/invalid client is removed, settings.clients should remain a valid array (possibly empty), and removal logic should not produce a broken inbound state.

Temporary workaround used

Re-enable affected user in DB and restart x-ui, then clients recovered.

Suggestion

Please harden the remove-user / config-generation path to guarantee settings.clients is always an array for VLESS/VMess/Trojan inbounds.

Originally created by @Clhikari on GitHub (Feb 28, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3871 ### Description On `x-ui 2.8.10`, I hit a case where a VLESS inbound (`:443`, `ws+tls`) suddenly became unusable for all clients. After checking runtime config, the inbound's `settings.clients` became `null`. This made all devices fail auth (symptom: clients report connect/check latency failure like `-1`). ### Observed behavior - Runtime file: `/usr/local/x-ui/bin/config.json` - Affected inbound: `id=1`, `port=443`, `protocol=vless` - Broken state seen: ```json "settings": { "clients": null, "decryption": "none" } ``` - Journal shows repeated auto-removal before/around breakage: ```text INFO - Remove Inbound User wtTx.love@xray.com due to expiration or traffic limit ``` ### Logs From `journalctl -u x-ui`: - `Feb 28 17:21:16 ... Remove Inbound User ... due to expiration or traffic limit` - `Feb 28 17:34:13 ... Remove Inbound User ... due to expiration or traffic limit` ### Environment - OS: Ubuntu - x-ui version: `2.8.10` - Protocol: `VLESS + WS + TLS` ### Impact This is severe because one invalid transition (`clients: null`) takes the entire inbound offline for all users, not just a single expired/limited user. ### Expected behavior When last/invalid client is removed, `settings.clients` should remain a valid array (possibly empty), and removal logic should not produce a broken inbound state. ### Temporary workaround used Re-enable affected user in DB and restart x-ui, then clients recovered. ### Suggestion Please harden the remove-user / config-generation path to guarantee `settings.clients` is always an array for VLESS/VMess/Trojan inbounds.
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#2620
No description provided.