mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6257] [Bug]: When a user is disabled, the user gets detached from their inbounds #4247
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#4247
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 @NethminaYasas on GitHub (Aug 18, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6257
Describe the bug
when a user in a node is disabled from the master node, the user gets detached from their inbounds, which leads to traffic reset.
How to reproduce the problem
Expected behavior
it should just disable the client without detaching from its inbounds
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.6.0
Xray-core version
26.7.28
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
Xray config generation
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
No — direct access
Before submitting
@github-actions[bot] commented on GitHub (Aug 18, 2026):
This matches #6247 ("Disabling a client removes node associations and re-enabling does not restore them"), which was reported on 3.6.0 as well and closed as completed after a fix was merged to
main. That fix is not in a numbered release:v3.6.0(2026-07-30) is still the latest release andinternal/config/versiononmainstill reads3.6.0, so it is currently reachable only frommainor the rollingdev-latestpre-release.I could not reproduce the detach itself from the source available to me (a checkout of
mainthat predates that commit), so I am not confirming the trigger here. The second half of your report — the traffic reset — does follow from a lost attachment, and that chain is confirmed in the source (line numbers from currentmain):client_inboundsrows on every traffic poll from what the node reports:ClientService.SyncInbounddeletes the inbound's links and re-creates them (internal/web/service/client_link.go:86), called fromsetRemoteTrafficLocked(internal/web/service/inbound_node.go:1044).inbound_node.go:1083,internal/web/service/client_sync_orphan.go:28).ReapSyncOrphanshard-deletes the client record, itsclient_trafficsrow and its per-node baselines (client_sync_orphan.go:16,:47-84).Up/Downseeded at0(inbound_node.go:835-848). That is the counter reset.Two things that may help in the meantime:
client_sync_orphan.go:39-43), and the reaper only deletes clients that still have no link (client_sync_orphan.go:54).main:x-ui update-dev(x-ui.sh:167-169), or the "Update to Dev channel" menu entry. It is a per-commit pre-release rather than a stable build, so back up/etc/x-ui/x-ui.dbfirst.To confirm this is the same defect rather than a second path, these would settle it:
dev-latestbuild.x-ui log, orjournalctl -u x-ui -n 500 --no-pager), filtered to the stringssetRemoteTraffic,reapedandreap sync orphans: removed.frontend/src/pages/clients/ClientFormModal.tsx:658-661) and sends a real detach toPOST /panel/api/clients/<email>/detach, which is a different endpoint from the row switch.@MHSanaei for visibility — if this is the same defect as #6247, it can be closed against that fix.
This reply was generated automatically. A maintainer may follow up.