mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4851] [Bug]: x-ui panel automatic shutdown problem after 20 sec #3379
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#3379
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 @EhsanEv0101 on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4851
Describe the bug
[Bug] Panel becomes inaccessible after installation despite x-ui service running normally
After a fresh installation of 3x-ui on a clean server, the x-ui service starts successfully and shows as active (running) in systemd.
However, the panel becomes inaccessible after setup. The service appears healthy, but the web interface cannot be reached consistently.
I have reinstalled both the operating system and 3x-ui multiple times, but the issue persists.
/-
I may be missing something in my configuration or deployment process.
I have already reinstalled the operating system and 3x-ui multiple times and tested different configurations, but I am still unable to identify the root cause.
If this behavior is caused by a configuration mistake on my side rather than a software bug, I would appreciate any guidance on what logs, settings, network checks, firewall rules, reverse proxy configuration, or diagnostic commands I should verify.
Please let me know if there are additional troubleshooting steps that can help determine whether this is a configuration issue or an actual bug.
-/
How to reproduce the problem
Result: panel is inaccessible even though the service remains running.
Expected behavior
The panel should remain accessible after installation and service startup.
Actual behavior
The x-ui service stays active and running, but the web panel cannot be accessed.
Reinstalling the operating system and reinstalling 3x-ui does not resolve the problem.
Relevant logs
Screenshots
3x-ui version
3.2.6
Xray-core version
26.6.1
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 22.04.5 LTS
Which parts of the panel are affected?
Frontend (UI / panel pages)
Browser (only if it is a UI bug)
chrome
Is the panel behind a reverse proxy or CDN?
No — direct access
Before submitting
@github-actions[bot] commented on GitHub (Jun 3, 2026):
Thanks for the detailed report. Based on the description (service stays active/running in systemd but the panel is unreachable), this looks like a connection/access issue rather than the service crashing. Here's why, and what to check:
Why the service appears running but the panel is unreachable
There is no 20-second shutdown timer anywhere in the 3x-ui codebase. What you're likely hitting is one of the following:
1. Wrong URL (most common)
The installer generates a random port (1024–62000) and a random 18-character web base path during setup — neither
admin:admincredentials nor port2053or path/are the defaults after a fresh install. The correct Access URL is printed at the end of the install script, e.g.:If you missed it, recover it now:
This will print the current
portandwebBasePath. Your panel URL is then:2. Firewall blocking the panel port
Ubuntu 22.04 can have UFW active, and most cloud providers (AWS, Oracle, Azure, Google Cloud, etc.) enforce security group / network ACL rules on inbound traffic. Even though the x-ui service is listening, the port may be blocked at the network level.
Check:
If the local
curlworks but external access doesn't, the issue is a firewall rule — not 3x-ui.Allow the port in UFW if needed:
3. Panel listening only on localhost
During install, if you selected the option to restrict access to localhost (intended for SSH tunnel setups), the service sets
listenIP = 127.0.0.1. In that case it won't be reachable from outside. Check and fix:Diagnostic commands to share
Please run the following and paste the output here so we can identify the exact cause:
This will tell us the port/path in use, what address x-ui is bound to, whether the firewall is blocking it, and whether any startup errors occurred.
@MHSanaei commented on GitHub (Jun 3, 2026):
two AI talking to each others
just share the logs what are you doing, how do i know what is happening on your server
don't open issue without any logs
@EhsanEv0101 commented on GitHub (Jun 3, 2026):
I understand your need for logs, but dismissing the report does not help in identifying the issue.
This behavior has been confirmed by multiple users, not just a single case.
I can provide logs, but you need to clearly specify what exactly you want instead of rejecting the entire report.
i will send you these report :
x-ui setting -show true
ss -tlnp | grep x-ui
ufw status
journalctl -u x-ui -n 50 --no-pager