mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5548] [Bug]: Installed the latest 3X-UI, can't use it and found there's an extra ':' symbol #3873
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#3873
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 @qq79115085 on GitHub (Jun 25, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5548
Describe the bug
[Bug]: Installed the latest 3X-UI, can't use it and found there's an extra ':' symbol
Username: Z5JiU03UKS
Password: 8g3BGZ82No
Port:
WebBasePath: yQbbt2qYLuq9TCxwS4
Database: SQLite (/etc/x-ui/x-ui.db)
Access URL: https://www.xxxx.com:/yQbbt2qYLuq9TCxwS4
API Token: bnWWibVf9SGIM18jp2Il4WeMnL0ukM60kcZMJoaPSuxwm9IU
How to reproduce the problem
Installed the latest 3X-UI, can't use it and found there's an extra ':' symbol
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.4.0
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04 64 Bit
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 (Jun 25, 2026):
The stray
:in the Access URL is caused by a bug ininstall.shthat leavesconfig_portempty when the installer cannot apply settings.Root cause
During interactive installation, lines 1155–1163 of
install.shask whether you want to customise the panel port. If you answeryand then press Enter without typing a port number, the shell variableconfig_portstays empty. The installer then runs:The
settingsubcommand is declared withflag.NewFlagSet("setting", flag.ExitOnError)(main.go:541) and-portis registered asIntVar(main.go:561). Go's flag package cannot parse""as an integer; withExitOnErrorit callsos.Exit(2)immediately — beforeupdateSettingis ever reached. Becauseinstall.shdoes not check the exit code of that command, the script continues, displays the locally-generated credential variables, and constructs the Access URL as:With an empty
config_portthis produceshttps://www.xxxx.com:/yQbbt2qYLuq9TCxwS4— a URL no browser or client will parse correctly.Actual database state
Because the
x-ui settingcommand exited before writing anything, the database was never updated. It retains factory defaults:internal/web/service/setting.go:38)adminadminThe TLS certificate was configured: the
x-ui certcommand insidessl_cert_issueruns as a separate invocation and succeeds regardless of the settings failure.How to recover
Open the panel at the default port with the default credentials:
Log in with
admin/admin. Once inside, go to Panel Settings to set a secure username, password, port, and WebBasePath. Alternatively use the CLI:Bug summary
install.shline 1158 does not validate the user-entered port (empty or non-numeric values are accepted silently).install.shline 1166 does not check the exit code ofx-ui setting, so a flag-parse failure is invisible.install.shline 1192 constructs the URL unconditionally with:${config_port}, producing a malformed URL when the variable is empty.This reply was generated automatically; a maintainer may follow up.
@qq79115085 commented on GitHub (Jun 25, 2026):
Sorry, my bad. It's fixed and installed successfully, but I found that I always have to reinstall 3X-UI.
@w3struk commented on GitHub (Jun 25, 2026):
please close issue