mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
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#6278
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6456
Author: @mrchatam
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/13/2026
Merged by: @MHSanaei
Base:
main← Head:fix/importdb-restart-panel📝 Commits (2)
0d7d1eafix(web): restart panel after ImportDB so subPath routes match (#6446)c8a5a10fix(web): schedule the post-import panel restart once, via PanelService📊 Changes
3 files changed (+97 additions, -7 deletions)
View changed files
📝
frontend/src/pages/index/BackupModal.tsx(+3 -7)➕
internal/web/controller/import_db_restart_test.go(+91 -0)📝
internal/web/controller/server.go(+3 -0)📄 Description
Summary
ImportDB(SQLite and PostgreSQL paths), schedule an in-process panel restart viaglobal.TriggerRestart(same path asrestartPanel/PanelService.RestartPanel), with the existing SIGHUP fallback.404after database restore whensubPath(and related startup-registered routes) change in the DB but the subscription listener was never rebuilt (#6446).hostBoundSettingKeysmembership.Why
ImportDBpreviously restarted Xray only. The UI follow-up to/panel/api/setting/restartPanelcan silently fail when the importeduserstable invalidates the session, leaving the subscription server on old routes while the panel shows the restored path.Test plan
subPathdiffers from the fresh default → without a manualx-ui restart, the copied subscription URL (restored path) should succeed after the automatic panel restart.Closes #6446
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.