mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #4869] [Bug]: The issue with accurate online client display persists #3399
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3399
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mitrios-hub on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4869
Describe the bug
Clients connect to inbounds and use the channel, but after weeks the panel shows that they have never been online and traffic is zero, and the client is shown as offline. Apparently, there is an issue with them being linked to different inbounds on different nodes. Rarely can you see a date when a client was online, but traffic still shows as zero.
There are 10 online clients in total, and the panel shows that all of them are simultaneously on different nodes — this is visible both by the count and the list of emails when hovering over. Consequently, it's unclear which client is online on which node. If you go to a specific node (not the master), a client may appear online on different inbounds at the same time, even though only one inbound is enabled for them and IPLIMIT = 1. On another node, the same user is shown online on all inbounds at once — meaning the fact of the client being on the node is displayed, but it's unclear which tunnel they are using. If you hover over each connection, the same user appears on all of them.
Conclusion: on the master node, the list of online clients is shown across all connections linked to that user, even though they are only using one tunnel. And on some node, online may be shown as zero, while the master node shows that all 10 clients are online there.
How to reproduce the problem
Add client
Link ibounds to client
Connect client to any inbound
See the client either offline or online at all inbounds
Expected behavior
I would like to see which connection the client is using and on which node, to see exactly whether they are online or offline, and to see the real traffic and connection time.
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3,2,6
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
Debian 13
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 3, 2026):
Thanks for the detailed report.
Issues 2 and 3 — online status bleeding across nodes and inbounds — are confirmed bugs already fixed in the
mainbranch, but not yet included in v3.2.6.Two separate fixes are queued for the next release:
Cross-node bleeding (a client connected to one node shows online on every other node): fixed by
fix(online): scope online status per node instead of a global union(closes #4809). The newGetOnlineClientsByNode()tracks each node's online set independently under its own node ID (local panel = key 0), and both the Inbounds page rollup and the Nodes page now scope online status by node.Per-inbound bleeding on the same node (a client shows online on every inbound it is attached to, not just the one it is actually using): fixed by
fix(online): scope per-inbound online to inbounds that carried traffic(closes #4859). A newGetActiveInboundsByNode()/activeInboundsWebSocket field tracks which inbound tags actually moved traffic within the 20 s grace window, and the frontend rollup now gates each inbound's online count on that signal.Both are on
mainnow. Wait for the next release, or build frommainto get the fix earlier.Issue 1 — traffic shows zero and last-seen date never set — this symptom is separate and needs a bit more detail:
systemctl restart x-uion the master) and watchjournalctl -u x-ui -ffor anyNodeTrafficSyncJoberrors.x-uion the master → option to show the version, and confirm it really is v3.2.6 (the command output is more reliable than the UI header).If the nodes do show as connected, could you share the Xray-core version (shown in the panel header or via
x-ui) and roughly how many nodes/inbounds you have? That will help narrow down whether it is a sync accumulation issue or a display-only artifact of the online-status bug above.@mitrios-hub commented on GitHub (Jun 3, 2026):
Thank you for your responses. Regarding issue #1, all panel nodes have been updated to 3.2.6, and all nodes are running Xray core 26.6.1. There are no errors in the logs, and the services are running. We have restarted multiple times.
Absolutely all clients added after updating to version 3.2.0 have this problem — zero traffic, shown as offline, even though clients are actively using the tunnel. In the screenshot above, the top client was added to the panel before 3.2.0, and the rest were added after.
@MHSanaei commented on GitHub (Jun 4, 2026):
The client online status can't be tracked per inbound, it's currently tracked per email instead
This means that if an email is online, it will appear as online across all inbounds associated with that email.