mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4651] [Bug]: Adding a client on master panel resets inbound TLS cert paths → Xray fails to start (exit status 23) every time #3202
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#3202
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 @x4mznbxmhm-eng on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4651
Describe the bug
In a multi-node setup, every time a new client is added to an inbound via the master panel UI, the inbound’s TLS certificateFile and keyFile paths are silently cleared from stream_settings in the database. Xray then fails to start with exit status 23 and loops indefinitely until the cert paths are manually re-injected via SQLite.
Error log (repeating loop):
ERROR - XRAY: Failed to start: main: failed to load config files: [bin/config.json]
> infra/conf: failed to build inbound config with tag inbound-443->
ERROR - Failure in running xray-core: exit status 23
Additionally, a deprecation warning appears alongside the crash:
WARNING - XRAY: common/errors: The feature HTTPUpgrade transport
(with ALPN http/1.1, etc.) is deprecated, not recommended for using
and might be removed in the future.
Workaround required after every new client add:
sqlite3 /etc/x-ui/x-ui.db "UPDATE inbounds SET stream_settings = json_set(
stream_settings,
'$.tlsSettings.certificates[0].certificateFile', '/root/cert//fullchain.pem',
'$.tlsSettings.certificates[0].keyFile', '/root/cert//privkey.pem'
) WHERE id=1;"
x-ui restart
Without this manual step, Xray stays in a crash loop and all clients lose connectivity.
How to reproduce the problem
Expected behavior
Adding or editing a client should never modify the parent inbound’s stream_settings, including TLS certificate configuration. The cert paths should be preserved across all client CRUD operations.
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.0
Xray-core version
26.5.9
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
Multi-node (sub-nodes)
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting