mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6921] [Bug]: Can't update node from central panel #4583
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#4583
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 @ArtikBoom3007 on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6921
Describe the bug
Version of central panel: v3.10.2
Versions of nodes: v3.10.2 and v3.8.5
When trying to update node panel version from "nodes" menu, I've got an error

Reissuing token not affect
Problem also occurs in oldest version of central panel, e.g. 3.8.5
How to reproduce the problem
Open "Nodes" page
Click "Update panel" in "Actions" column and confirm
Error occurs
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.10.2
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
@github-actions[bot] commented on GitHub (Oct 24, 2026):
This is most likely a real permission gap in v3.10.2, and it is fixed on the default branch but not in a release yet. In v3.10.2 the node rejects
POST /panel/api/server/updatePanelwith403whenever the central panel reaches it with anode-synctoken or over mTLS, whatever token you reissue. Commita8d0700badds a newnode-admintoken scope for this. It is in thedev-latestbuild only, not in v3.10.2.I can't open images, so I can't read the error in your screenshot. Please paste its exact text. If it says
HTTP 403/this API token is not permitted to access this endpoint, the cause below is confirmed.Why it fails in v3.10.2
On the node,
checkAPIAuthgives an mTLS connection thenode-syncscope before it looks at the bearer token (v3.10.2:internal/web/controller/api.go):enforceTokenScopethen only letsnode-syncreach routes innodeSyncScopeAllow, and/server/updatePanelis not on that list. So the request is denied with:The central panel sends exactly that route (
internal/web/runtime/remote.go:677,r.do(ctx, http.MethodPost, "panel/api/server/updatePanel", body)). When a node answers with anything other than 200, the error is shown asPOST panel/api/server/updatePanel: HTTP 403: "..."(remote.go, theresp.StatusCode != http.StatusOKbranch). v3.8.5 has the same mTLS-first logic, which explains why the older panel fails too.What changed on the default branch
a8d0700b fix(auth): add node-admin token scope for panel updates (#6666)addsnodeAdminScopeAllowwith only"/server/updatePanel": {http.MethodPost: {}}(internal/web/controller/api.go:127-129). On mTLS, only anode-adminbearer raises the scope (api.go:52-58). This is deliberate (docs/architecture.md, scope table): "On an mTLS connection, only a validnode-adminbearer elevates the request; other bearer scopes retain the historical mTLSnode-syncbehavior." So even on the new code, anadminornode-synctoken over mTLS still cannot start a remote update.What you can do now
After that, Update panel from the Nodes page should get past the auth check.
Please reply with
node is offline.verify/skip/pin/mtls), and the scope of the token you set for that node.This reply was generated automatically; a maintainer may follow up.
@ArtikBoom3007 commented on GitHub (Oct 26, 2026):
Error text:
"Update triggered on 0 node(s), 1 failed — POST panel/api/server/updatePanel: HTTP 403: "{"msg":"this API token is not permitted to access this endpoint","success":false}"
TLS mode is mtls. No token scope provided, it was generated in old version