[GH-ISSUE #5832] [Bug]: Updating a user's data causes all of their inbounds/nodes to stop working until restart (XUI 3.4.2) #4051

Closed
opened 2026-10-31 20:36:48 +07:00 by bsakaguchi · 1 comment
Owner

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

Describe the bug

After upgrading XUI from v3.4.0 to v3.4.2, editing an existing user's information (such as the expiration date or traffic limit) causes all of that user's nodes/inbounds across all servers to stop working.

There are no Xray errors and no relevant logs indicating a problem. The only way to restore service is to manually restart each affected node. This issue did not exist in v3.4.0.

How to reproduce the problem

  1. Upgrade XUI from v3.4.0 to v3.4.2.
  2. Create a user with nodes on multiple servers.
  3. Edit the user's information (for example, change the expiration date or traffic limit).
  4. Save the changes.
  5. Observe that all of the user's nodes stop working, even though Xray reports no errors and no related logs are generated.
  6. Manually restart each node, and the connections start working again.

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.4.2

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

ubuntu 24

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 @Begamegazon on GitHub (Jul 6, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5832 ### Describe the bug After upgrading XUI from v3.4.0 to v3.4.2, editing an existing user's information (such as the expiration date or traffic limit) causes all of that user's nodes/inbounds across all servers to stop working. There are no Xray errors and no relevant logs indicating a problem. The only way to restore service is to manually restart each affected node. This issue did not exist in v3.4.0. ### How to reproduce the problem 1. Upgrade XUI from **v3.4.0** to **v3.4.2**. 2. Create a user with nodes on multiple servers. 3. Edit the user's information (for example, change the expiration date or traffic limit). 4. Save the changes. 5. Observe that all of the user's nodes stop working, even though Xray reports no errors and no related logs are generated. 6. Manually restart each node, and the connections start working again. ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.4.2 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system ubuntu 24 ### 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).
bsakaguchi 2026-10-31 20:36:48 +07:00
Author
Owner

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

This is the same underlying bug as #5771 (and #5764), and the reproduction here matches exactly: editing a client's data (expiration, traffic limit, etc.) on the master causes every remote node hosting that client to stop forwarding traffic, with Xray still "running" and no errors, until it is manually restarted.

Root cause (confirmed in the fix that closed #5771): a client edit always stamped a fresh updated_at and marked the node dirty; the 5s node sync job (cadenceNodeTraffic, internal/web/web.go) then saw a fingerprint mismatch and pushed a full inbounds/update/:id to the node. On the node, applying that update removes and re-adds the Xray inbound handler (internal/web/service/inbound.go, via the local runtime), and that remove/re-add can leave the handler not actually forwarding even though the Xray process itself stays up — the same failure class already documented in this codebase for the VLESS-reverse-client restart fix (internal/xray/hot_diff.go).

This has already been fixed on main (commit a0989e0, "fix(node): stop client edits from tearing down node inbounds and harden reconcile fingerprints", which explicitly closes #5764 and #5771). The fix makes no-op saves skip the node push entirely, and makes real edits (like the expiration/traffic-limit change in your case) send a lightweight per-client update instead of tearing down and rebuilding the whole inbound.

That fix landed after v3.4.2 and is not in any tagged release yet. Until the next release ships, the only workaround is to avoid editing clients that have nodes attached, or to manually restart Xray on the affected nodes after an edit.

Closing this as a duplicate of #5771 so discussion and any updates stay in one place.

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

<!-- gh-comment-id:4892846389 --> @github-actions[bot] commented on GitHub (Jul 6, 2026): This is the same underlying bug as #5771 (and #5764), and the reproduction here matches exactly: editing a client's data (expiration, traffic limit, etc.) on the master causes every remote node hosting that client to stop forwarding traffic, with Xray still "running" and no errors, until it is manually restarted. Root cause (confirmed in the fix that closed #5771): a client edit always stamped a fresh `updated_at` and marked the node dirty; the 5s node sync job (`cadenceNodeTraffic`, `internal/web/web.go`) then saw a fingerprint mismatch and pushed a full `inbounds/update/:id` to the node. On the node, applying that update removes and re-adds the Xray inbound handler (`internal/web/service/inbound.go`, via the local runtime), and that remove/re-add can leave the handler not actually forwarding even though the Xray process itself stays up — the same failure class already documented in this codebase for the VLESS-reverse-client restart fix (`internal/xray/hot_diff.go`). This has already been fixed on `main` (commit `a0989e0`, "fix(node): stop client edits from tearing down node inbounds and harden reconcile fingerprints", which explicitly closes #5764 and #5771). The fix makes no-op saves skip the node push entirely, and makes real edits (like the expiration/traffic-limit change in your case) send a lightweight per-client update instead of tearing down and rebuilding the whole inbound. That fix landed after `v3.4.2` and is not in any tagged release yet. Until the next release ships, the only workaround is to avoid editing clients that have nodes attached, or to manually restart Xray on the affected nodes after an edit. Closing this as a duplicate of #5771 so discussion and any updates stay in one place. *This reply was generated automatically; a maintainer may follow up.*
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#4051
No description provided.