[GH-ISSUE #6937] [Feature]: Node restart button at host panel #4590

Open
opened 2026-10-31 20:40:43 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @infybtw on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6937

Please add button to restart node from control panel

Image

Describe the solution you'd like

Please add button to restart node from control panel

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

Multi-node (sub-nodes)

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @infybtw on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6937 ### Is your feature request related to a problem? Please add button to restart node from control panel <img width="279" height="126" alt="Image" src="https://github.com/user-attachments/assets/f2962c7f-3f36-4344-993b-9bd0a8d9dac8" /> ### Describe the solution you'd like Please add button to restart node from control panel ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? Multi-node (sub-nodes) ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 25, 2026):

This is a valid feature request. The master panel can't currently restart a node from the Nodes page. Part of what's needed already exists, though: the master can already ask a node to restart its Xray, it just isn't wired to a button.

I couldn't open the screenshot. From the text, I read the request as a per-node "Restart" action in the master panel's node list.

What the Nodes page offers today. Each node row's action menu in frontend/src/pages/nodes/NodeList.tsx (around lines 667-709) has only probe, update (panel self-update), edit and delete. On the backend, NodeController.initRouter (internal/web/controller/node.go:29-48) has no restart route. Its node actions are /probe/:id, /updatePanel, /setEnable/:id and the mTLS endpoints.

What already exists underneath. The node runtime client has a remote Xray restart:

// internal/web/runtime/remote.go:704
func (r *Remote) RestartXray(ctx context.Context) error {
	_, err := r.do(ctx, http.MethodPost, "panel/api/server/restartXrayService", nil)

It is part of the runtime.Runtime interface (internal/web/runtime/runtime.go:33). Today its only caller is the automatic "restart Xray on client disable" path, InboundService.restartRemoteNodesOnDisable (internal/web/service/inbound_node.go:1515-1538). So a "Restart Xray on this node" button mostly needs:

  • a node-scoped endpoint that dispatches through runtime.GetManager().RuntimeFor(&nodeID);
  • its endpoints.ts/OpenAPI entries;
  • a menu item in NodeList.tsx.

There is no remote counterpart for restarting the node's whole panel process yet. On the node side that is POST /panel/setting/restartPanel (internal/web/controller/setting.go:75), but nothing in remote.go calls it.

Workarounds until then:

  1. Open the node's own panel and use its Xray restart.
  2. Restart the node's service over SSH:
    x-ui restart
    

Please say which one you mean: restarting Xray on the node (the common case after config changes), or restarting the whole node panel service. They need different amounts of work.

I found no earlier issue asking for this. #5948 (choosing the Xray version for sub-nodes from the master) is the closest related node-management request.

Verdict: Feature request

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

<!-- gh-comment-id:6402328102 --> @github-actions[bot] commented on GitHub (Oct 25, 2026): This is a valid feature request. The master panel can't currently restart a node from the Nodes page. Part of what's needed already exists, though: the master can already ask a node to restart its Xray, it just isn't wired to a button. I couldn't open the screenshot. From the text, I read the request as a per-node "Restart" action in the master panel's node list. **What the Nodes page offers today.** Each node row's action menu in `frontend/src/pages/nodes/NodeList.tsx` (around lines 667-709) has only `probe`, `update` (panel self-update), `edit` and `delete`. On the backend, `NodeController.initRouter` (`internal/web/controller/node.go:29-48`) has no restart route. Its node actions are `/probe/:id`, `/updatePanel`, `/setEnable/:id` and the mTLS endpoints. **What already exists underneath.** The node runtime client has a remote Xray restart: ```go // internal/web/runtime/remote.go:704 func (r *Remote) RestartXray(ctx context.Context) error { _, err := r.do(ctx, http.MethodPost, "panel/api/server/restartXrayService", nil) ``` It is part of the `runtime.Runtime` interface (`internal/web/runtime/runtime.go:33`). Today its only caller is the automatic "restart Xray on client disable" path, `InboundService.restartRemoteNodesOnDisable` (`internal/web/service/inbound_node.go:1515-1538`). So a "Restart Xray on this node" button mostly needs: - a node-scoped endpoint that dispatches through `runtime.GetManager().RuntimeFor(&nodeID)`; - its `endpoints.ts`/OpenAPI entries; - a menu item in `NodeList.tsx`. There is no remote counterpart for restarting the node's whole **panel** process yet. On the node side that is `POST /panel/setting/restartPanel` (`internal/web/controller/setting.go:75`), but nothing in `remote.go` calls it. **Workarounds until then:** 1. Open the node's own panel and use its Xray restart. 2. Restart the node's service over SSH: ``` x-ui restart ``` Please say which one you mean: restarting **Xray** on the node (the common case after config changes), or restarting the whole node **panel** service. They need different amounts of work. I found no earlier issue asking for this. #5948 (choosing the Xray version for sub-nodes from the master) is the closest related node-management request. Verdict: Feature request *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#4590
No description provided.