[GH-ISSUE #4851] [Bug]: x-ui panel automatic shutdown problem after 20 sec #3379

Closed
opened 2026-10-31 20:32:02 +07:00 by bsakaguchi · 3 comments
Owner

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

  1. Install a fresh Linux system.
  2. Install the latest 3x-ui using the official install script.
  3. Complete the installation wizard.
  4. Keep the default panel bind settings.
  5. Start or restart x-ui service.
  6. Verify that systemctl reports x-ui as active (running).
  7. Attempt to access the panel.

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

systemctl status x-ui reports the service as active (running).

No obvious error is shown in the service status output.

Additional logs can be provided if needed.

Screenshots

Image Image

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

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
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 1. Install a fresh Linux system. 2. Install the latest 3x-ui using the official install script. 3. Complete the installation wizard. 4. Keep the default panel bind settings. 5. Start or restart x-ui service. 6. Verify that systemctl reports x-ui as active (running). 7. Attempt to access the panel. 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 ```shell systemctl status x-ui reports the service as active (running). No obvious error is shown in the service status output. Additional logs can be provided if needed. ``` ### Screenshots <img width="804" height="619" alt="Image" src="https://github.com/user-attachments/assets/95e1c240-8aea-4750-85e1-d050061cbd39" /> <img width="938" height="395" alt="Image" src="https://github.com/user-attachments/assets/08200e20-672d-4ab5-86d5-468d33e45286" /> ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
Author
Owner

@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:admin credentials nor port 2053 or path / are the defaults after a fresh install. The correct Access URL is printed at the end of the install script, e.g.:

Access URL: http://<your-ip>:<random-port>/<18-char-path>

If you missed it, recover it now:

x-ui setting -show true

This will print the current port and webBasePath. Your panel URL is then:

http://<your-server-ip>:<port>/<webBasePath>

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:

# Is UFW blocking the port?
ufw status

# What port is x-ui actually bound to?
ss -tlnp | grep x-ui

# Can you reach the panel from the server itself?
curl -sv http://127.0.0.1:<PORT>/<BASEPATH>

If the local curl works but external access doesn't, the issue is a firewall rule — not 3x-ui.

Allow the port in UFW if needed:

ufw allow <PORT>/tcp

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:

# Check the listen address
x-ui setting -show true      # look for listenIP output

# If it shows 127.0.0.1, reset it to all interfaces:
x-ui setting -listenIP ""
systemctl restart x-ui

Diagnostic commands to share

Please run the following and paste the output here so we can identify the exact cause:

x-ui setting -show true
ss -tlnp | grep x-ui
ufw status
journalctl -u x-ui -n 50 --no-pager

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.

<!-- gh-comment-id:4611113690 --> @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:admin` credentials nor port `2053` or path `/` are the defaults after a fresh install. The correct Access URL is printed at the end of the install script, e.g.: ``` Access URL: http://<your-ip>:<random-port>/<18-char-path> ``` If you missed it, recover it now: ```bash x-ui setting -show true ``` This will print the current `port` and `webBasePath`. Your panel URL is then: ``` http://<your-server-ip>:<port>/<webBasePath> ``` ### 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: ```bash # Is UFW blocking the port? ufw status # What port is x-ui actually bound to? ss -tlnp | grep x-ui # Can you reach the panel from the server itself? curl -sv http://127.0.0.1:<PORT>/<BASEPATH> ``` If the local `curl` works but external access doesn't, the issue is a firewall rule — not 3x-ui. Allow the port in UFW if needed: ```bash ufw allow <PORT>/tcp ``` ### 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: ```bash # Check the listen address x-ui setting -show true # look for listenIP output # If it shows 127.0.0.1, reset it to all interfaces: x-ui setting -listenIP "" systemctl restart x-ui ``` --- ## Diagnostic commands to share Please run the following and paste the output here so we can identify the exact cause: ```bash x-ui setting -show true ss -tlnp | grep x-ui ufw status journalctl -u x-ui -n 50 --no-pager ``` 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.
Author
Owner

@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

<!-- gh-comment-id:4611232273 --> @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
Author
Owner

@EhsanEv0101 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

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

<!-- gh-comment-id:4611344752 --> @EhsanEv0101 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 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3379
No description provided.