mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4658] [Bug]: The data in PostgreSQL does not match the x-ui interface and configuration. #3210
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#3210
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 @HaveSyntaxError on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4658
Describe the bug
For instance, the current port number should be 2053 as shown by the x-ui interface, but the setting stored in the database is 60462. This results in inconsistencies in the final pairwise comparisons, and ultimately the results will be based on those in the database.
But in this case, the settings of x-ui are unable to control these data, and I don't even know what the initial password is now.
How to reproduce the problem
First install PostgreSQL on the server, and then configure the connection with 127.0.0.1 for subsequent steps.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.0
Xray-core version
default
How did you install 3x-ui?
install.sh script
Operating system
ubuntu24.04.1
Which parts of the panel are affected?
Frontend (UI / panel pages), Backend (API endpoints, login, settings), Database / migrations
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
No — direct access
Before submitting
@shart7 commented on GitHub (May 30, 2026):
Describe the bug
I confirm this issue. I tried a clean installation of the panel and an upgrade from version 2.9.4 using the original script. When deploying the PostgreSQL database during the x-ui -> 2 -> 1 panel installation, you get the webListen, webBasePath, webPort, username, and password settings specified during installation. After that, changing or accessing the panel settings is only possible by accessing the PostgreSQL database directly. Making changes via /usr/local/x-ui/x-ui setting produces no result. I assume all changes are written to /etc/x-ui/xui.db if you try to change the settings via the x-ui panel script, despite the PostgreSQL database being created and its data specified in /etc/default/x-ui. However, if we look at the current settings (x-ui -> 10. View current settings), we see the line: Database: PostgreSQL — postgres://xui:****@127.0.0.1:5432/xui?sslmode=disable. But this doesn't mean anything, and the x-ui script doesn't access it. Perhaps I'm not being entirely precise in my description of the problem.
Problem reproducibility: 100%.
How to reproduce the problem
To do this, when installing the panel, select the PostgreSQL database and then try changing the webListener, webBasePath, webPort, username, and password data using the x-ui panel script and matching it with the data in the PostgreSQL database.