mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5064] [Bug]: delete client #3566
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#3566
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 @usamirali on GitHub (Jun 7, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5064
Describe the bug
when i delete a client on main panel that work and deleted
but that client still show and exist on node panel
i want delete that client on all node and main client
How to reproduce the problem
the client didnt delete on all my panel
Expected behavior
No response
Actual behavior
No response
Relevant logs
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
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 7, 2026):
This is the same symptom as #4971 (closed). Here is what the code actually does and what diagnostic information is needed to pin down the failure.
How client deletion syncs to nodes
When you delete a client from the main panel,
ClientService.Delete(web/service/client.go:868) iterates over every inbound the client is attached to and callsDelInboundClientfor each one.Inside
DelInboundClient(web/service/client.go:4144), for node-owned inbounds (NodeID \!= nil),nodePushPlanis called (web/service/inbound.go:44):push=true→rt.DeleteUsersendsPOST panel/api/clients/{email}/detachto the node's own 3x-ui API, which detaches the client from the inbound on the node's database and removes it from that node's Xray instance.dirty=true, push=false→ the node is flaggedConfigDirty. The next timeNodeTrafficSyncJobruns, it callsReconcileNode(web/service/inbound.go:91), which pushes the full updated inbound config (without the deleted client) to the node viaUpdateInbound.Known silent failure path
rt.DeleteUser(web/runtime/remote.go:302) callsresolveRemoteIDto find the inbound on the node by its tag. If the tag is not found,resolveRemoteIDreturns an error — butDeleteUsercatches that and returnsnil(line 308:return nil). Because the error is swallowed, the caller never setsmarkDirty, so the node is not flagged for reconciliation. The client stays on the node with no further action taken.This is the most likely cause: the tag lookup fails silently, no error is logged, and the node never receives the deletion.
To help isolate the problem
Please provide:
Main panel logs at the time of deletion. Run
journalctl -u x-ui -n 300 --no-pager(or check the log path shown in panel Settings → Log) and look for anyWarningorErrorlines around the deletion time.Node 3x-ui version. Log in to the node server and run
x-uito see the version, or check the node panel's About page. If the node is running an older version, the/detachendpoint may not exist.Node status at the time of deletion. Was the node shown as online in the main panel's Nodes list when you deleted the client? Or was it offline/unreachable?
Does the client still appear after the next traffic sync cycle? The sync job runs periodically. If the client disappears from the node panel a few minutes after deletion (but not immediately), that confirms it's going through the reconciliation path rather than the direct push.
Protocol of the affected inbound (VLESS, VMess, Trojan, etc.).
If the client's email contains a
/or other URL-special characters, that can also cause the/detachAPI call to fail — though that would normally show up in logs.@MHSanaei commented on GitHub (Jun 7, 2026):
We just detached it.