[GH-ISSUE #7091] [Bug]: Removing an inbound connection at a node #6615

Open
opened 2026-11-07 14:33:31 +07:00 by bsakaguchi · 1 comment
Owner

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

Describe the bug

When deleting or editing a node's inbound, all existing inbounds are removed—both from the local panel and from the node itself.

How to reproduce the problem

  1. Open Inbound tab
  2. All inbounds are removed
  3. Other inbounds will not be deleted

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.11.0

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

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

  • I searched existing issues and this bug has not been reported.
  • 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 @artslay on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/7091 ### Describe the bug When deleting or editing a node's inbound, all existing inbounds are removed—both from the local panel and from the node itself. ### How to reproduce the problem 1. Open Inbound tab 2. All inbounds are removed 3. Other inbounds will not be deleted ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.11.0 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [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).
Author
Owner

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

I could not reproduce "deleting one node inbound removes all of them" from the current source. Every delete path I traced acts on one inbound id only, so I need a few details before this can be confirmed or ruled out.

The report also contradicts itself: step 2 says "All inbounds are removed" and step 3 says "Other inbounds will not be deleted". The Expected and Actual behaviour sections are empty, so I can't tell which of those is the bug.

What the code does today

  1. The panel's delete button sends one id: HttpUtil.post(/panel/api/inbounds/del/${dbInbound.id}) (frontend/src/pages/inbounds/InboundsPage.tsx:482).
  2. On the master, InboundService.delInbound(id) (internal/web/service/inbound.go:1645) deletes only that row (tx.Delete(model.Inbound{}, id), line 1737). It then marks the node dirty (line 1697) and pushes one delete to the node.
  3. Remote.DelInbound (internal/web/runtime/remote.go:493-504) looks up the node-side id by that inbound's tag and calls panel/api/inbounds/del/<id> for that single id.
  4. The next node sync's orphan sweep (internal/web/service/inbound_node.go:953-979) removes central inbounds the node no longer reports. It skips the sweep entirely when the node reports zero inbounds (if len(snapTags) == 0 { ... continue }, line 962). So a node that briefly answers with an empty list cannot wipe everything this way.

Please reply with:

  1. Where you clicked Delete. On the master panel for an inbound assigned to the node, or on the node's own panel?
  2. What you saw afterwards, and where. Were the other inbounds gone from the master's Inbounds list, from the node's own panel, or from both? Did they stay gone after a page refresh and a minute's wait, or come back?
  3. Logs from the master, from the moment of the delete. Run x-ui log, or:
    journalctl -u x-ui --since "10 minutes ago" --no-pager
    
    Lines containing setRemoteTraffic, no longer reports inbound, DelInbound or remote DelInbound are the ones that matter. The sweep logs node <id> no longer reports inbound "<tag>" ... removing it centrally for every inbound it removes. Those lines would show exactly which path deleted the others.
  4. The node's 3x-ui version, if it differs from the master's 3.11.0.

Verdict: Insufficient information
Severity: N/A
Confidence: Low
Root cause: Not identified. The single-delete path is scoped to one id at every layer (inbound.go:1737, remote.go:499), and the sync sweep is guarded against an empty node snapshot (inbound_node.go:962).
Same class: Not applicable
Already fixed: Not applicable. Since v3.11.0, 152c84ef (fix(inbounds): delete an inbound's dependent rows on every delete path) touched this area, but it only removes rows tied to the deleted inbound's id.
Duplicate of: None. Related: #5898, #6749 (other node-sync paths that wrongly removed node inbounds, both closed).
Evidence: frontend/src/pages/inbounds/InboundsPage.tsx:482; internal/web/service/inbound.go:1645-1737; internal/web/runtime/remote.go:493-504; internal/web/service/inbound_node.go:953-979
Not determined: which panel the delete was made on and what was actually removed. The master's log lines for the sync tick right after the delete would settle it.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:6684962401 --> @github-actions[bot] commented on GitHub (Nov 6, 2026): I could not reproduce "deleting one node inbound removes all of them" from the current source. Every delete path I traced acts on one inbound id only, so I need a few details before this can be confirmed or ruled out. The report also contradicts itself: step 2 says "All inbounds are removed" and step 3 says "Other inbounds will not be deleted". The Expected and Actual behaviour sections are empty, so I can't tell which of those is the bug. **What the code does today** 1. The panel's delete button sends one id: `HttpUtil.post(`/panel/api/inbounds/del/${dbInbound.id}`)` (`frontend/src/pages/inbounds/InboundsPage.tsx:482`). 2. On the master, `InboundService.delInbound(id)` (`internal/web/service/inbound.go:1645`) deletes only that row (`tx.Delete(model.Inbound{}, id)`, line 1737). It then marks the node dirty (line 1697) and pushes one delete to the node. 3. `Remote.DelInbound` (`internal/web/runtime/remote.go:493-504`) looks up the node-side id by that inbound's tag and calls `panel/api/inbounds/del/<id>` for that single id. 4. The next node sync's orphan sweep (`internal/web/service/inbound_node.go:953-979`) removes central inbounds the node no longer reports. It skips the sweep entirely when the node reports zero inbounds (`if len(snapTags) == 0 { ... continue }`, line 962). So a node that briefly answers with an empty list cannot wipe everything this way. **Please reply with:** 1. **Where you clicked Delete.** On the master panel for an inbound assigned to the node, or on the node's own panel? 2. **What you saw afterwards, and where.** Were the other inbounds gone from the master's Inbounds list, from the node's own panel, or from both? Did they stay gone after a page refresh and a minute's wait, or come back? 3. **Logs from the master, from the moment of the delete.** Run `x-ui log`, or: ``` journalctl -u x-ui --since "10 minutes ago" --no-pager ``` Lines containing `setRemoteTraffic`, `no longer reports inbound`, `DelInbound` or `remote DelInbound` are the ones that matter. The sweep logs `node <id> no longer reports inbound "<tag>" ... removing it centrally` for every inbound it removes. Those lines would show exactly which path deleted the others. 4. **The node's 3x-ui version**, if it differs from the master's 3.11.0. Verdict: Insufficient information Severity: N/A Confidence: Low Root cause: Not identified. The single-delete path is scoped to one id at every layer (`inbound.go:1737`, `remote.go:499`), and the sync sweep is guarded against an empty node snapshot (`inbound_node.go:962`). Same class: Not applicable Already fixed: Not applicable. Since v3.11.0, `152c84ef` (fix(inbounds): delete an inbound's dependent rows on every delete path) touched this area, but it only removes rows tied to the deleted inbound's id. Duplicate of: None. Related: #5898, #6749 (other node-sync paths that wrongly removed node inbounds, both closed). Evidence: `frontend/src/pages/inbounds/InboundsPage.tsx:482`; `internal/web/service/inbound.go:1645-1737`; `internal/web/runtime/remote.go:493-504`; `internal/web/service/inbound_node.go:953-979` Not determined: which panel the delete was made on and what was actually removed. The master's log lines for the sync tick right after the delete would settle it. *This reply was generated automatically; a maintainer may follow up.* <!-- claude-issue:analyst -->
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#6615
No description provided.