[GH-ISSUE #6112] [Bug]:X-Ray stops responding randomly after 1–3 days. #4223

Closed
opened 2026-10-31 20:38:05 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @goldnayk-cyber on GitHub (Jul 26, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6112

Describe the bug

Suddenly, the server stops establishing VPN connections. This happens "randomly." The panel is operational and shows some connections, but the specific connections being attempted right now are missing, and connectivity to other nodes is lost (no connection, even though the nodes themselves are confirmed to be running). Restarting X-Ray does not resolve the issue; service is restored only by rebooting the server.
The web panel is working.
X-Ray reports that it is running.
SSH access to the server is available, and everything else is functioning.
When attempting to connect, Hiddify returns a timeout error (using the VLESS gRPC Reality transport).

The server is located behind a Traefik reverse proxy, but the issue persists even when the port is forwarded directly to it.

Time synchronization is configured.
@def:/var/log/x-ui# timedatectl timesync-status
Server: 83.243.68.157 (0.debian.pool.ntp.org)
Poll interval: 34min 8s (min: 32s; max 34min 8s)
Leap: normal
Version: 4
Stratum: 2
Reference: C23ACF4F
Precision: 4us (-18)
Root distance: 5.508ms (max: 5s)
Offset: +9.220ms
Delay: 27.639ms
Jitter: 7.534ms
Packet count: 7
Frequency: +9,095ppm

This is a physical machine that I set up myself and installed Debian 13.5 on.
This machine handles the reverse proxy and the Apache Guacamole service.

How to reproduce the problem

The problem occurs randomly—once a day, several times a day, or once a week.

Expected behavior

I expected the panel to show some kind of error.

Actual behavior

The panel showed no errors.

Relevant logs

июл 24 17:50:25 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - Unauthorized WebSocket connection attempt from 172.18.0.3
июл 25 04:03:36 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - node traffic sync: fetch from mydomain.com failed: GET panel/api/inbounds/list: Get "https://*******/panel/api/in>
июл 26 12:55:36 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - node traffic sync: fetch from EU-***-DNS failed: GET panel/api/inbounds/list: Get "https://**********/panel/ap>
июл 26 12:55:36 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - node traffic sync: fetch from mydomain.com failed: GET panel/api/inbounds/list: Get "https://mydomain.com/panel/api/in>
июл 26 13:01:21 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - node traffic sync: fetch from mydomain.com failed: GET panel/api/inbounds/list: Get "https://******L/panel/api/in>
июл 26 21:36:30 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - r*** logged in successfully, Ip Address: 172.18.0.3
июл 26 21:36:30 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - ***** logged in successfully
июл 26 21:38:10 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - Remove Inbound User *** due to expiration or traffic limit
июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - Remove Inbound User *** due to expiration or traffic limit
июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json}
июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - XRAY: common/errors: The feature gRPC transport (with unnecessary costs, etc.) is deprecated, not recommended for using and might be removed. P>
июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW
июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - XRAY: common/errors: The feature gRPC transport (with unnecessary costs, etc.) is deprecated, not recommended for using and might be removed. P>
июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW
июл 26 21:40:51 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - XRAY: core: Xray 26.7.11 started
июл 26 21:40:52 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - xray core supports the online-stats API; using connection-based onlines and access-log-free IP limit
июл 26 21:42:47 deb-trf systemd[1]: Stopping x-ui.service - x-ui Service...
июл 26 21:42:47 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - WebSocket hub stopped
июл 26 21:42:47 deb-trf x-ui[1819]: 2026/07/26 21:42:47 Shutting down servers.
июл 26 21:42:47 deb-trf systemd[1]: x-ui.service: Deactivated successfully.
июл 26 21:42:47 deb-trf systemd[1]: Stopped x-ui.service - x-ui Service.
июл 26 21:42:47 deb-trf systemd[1]: x-ui.service: Consumed 1h 3min 50.353s CPU time, 546.9M memory peak.
-- Boot 029747e6969044308c343337975729c6 --
июл 26 21:43:24 deb-trf systemd[1]: Started x-ui.service - x-ui Service.
июл 26 21:43:25 deb-trf x-ui[762]: 2026/07/26 21:43:25 Starting x-ui 3.5.0
июл 26 21:43:25 deb-trf /usr/local/x-ui/x-ui[762]: INFO - GC percent set to 75
июл 26 21:43:25 deb-trf /usr/local/x-ui/x-ui[762]: INFO - Go memory soft limit not enforced: no explicit budget; soft limit left at Go default
июл 26 21:43:25 deb-trf x-ui[762]: 2026/07/26 21:43:25 Error initializing database: failed to connect to `user=***** database=xui`: 127.0.0.1:5432 (127.0.0.1): dial error: dial tcp 127.0.0.1:5432: conne>
июл 26 21:43:25 deb-trf systemd[1]: x-ui.service: Main process exited, code=exited, status=1/FAILURE
июл 26 21:43:25 deb-trf systemd[1]: x-ui.service: Failed with result 'exit-code'.
июл 26 21:43:25 deb-trf systemd[1]: x-ui.service: Consumed 76ms CPU time, 71.9M memory peak.
июл 26 21:43:30 deb-trf systemd[1]: x-ui.service: Scheduled restart job, restart counter is at 1.
июл 26 21:43:30 deb-trf systemd[1]: Started x-ui.service - x-ui Service.
июл 26 21:43:30 deb-trf x-ui[1895]: 2026/07/26 21:43:30 Starting x-ui 3.5.0
июл 26 21:43:30 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - GC percent set to 75
июл 26 21:43:30 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - Go memory soft limit not enforced: no explicit budget; soft limit left at Go default
июл 26 21:43:30 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - Web server running HTTP on [::]:888888
июл 26 21:43:30 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - Remove Inbound User AV2 due to expiration or traffic limit
июл 26 21:43:31 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json}
июл 26 21:43:31 deb-trf /usr/local/x-ui/x-ui[1895]: WARNING - XRAY: common/errors: The feature gRPC transport (with unnecessary costs, etc.) is deprecated, not recommended for using and might be removed. P>
июл 26 21:43:31 deb-trf /usr/local/x-ui/x-ui[1895]: WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW
июл 26 21:43:31 deb-trf /usr/local/x-ui/x-ui[1895]: WARNING - XRAY: common/errors: The feature gRPC transport (with unnecessary costs, etc.) is deprecated, not recommended for using and might be removed. P>
июл 26 21:43:31 deb-trf /usr/local/x-ui/x-ui[1895]: WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW
июл 26 21:43:32 deb-trf /usr/local/x-ui/x-ui[1895]: WARNING - XRAY: core: Xray 26.7.11 started
июл 26 21:43:41 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - xray core supports the online-stats API; using connection-based onlines and access-log-free IP limit

Screenshots

No response

3x-ui version

3.5.0

Xray-core version

26.7.11

How did you install 3x-ui?

install.sh script

Operating system

Debian 13.5

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?

Yes — other

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 @goldnayk-cyber on GitHub (Jul 26, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6112 ### Describe the bug Suddenly, the server stops establishing VPN connections. This happens "randomly." The panel is operational and shows some connections, but the specific connections being attempted right now are missing, and connectivity to other nodes is lost (no connection, even though the nodes themselves are confirmed to be running). Restarting X-Ray does not resolve the issue; service is restored only by rebooting the server. The web panel is working. X-Ray reports that it is running. SSH access to the server is available, and everything else is functioning. When attempting to connect, Hiddify returns a timeout error (using the VLESS gRPC Reality transport). The server is located behind a Traefik reverse proxy, but the issue persists even when the port is forwarded directly to it. Time synchronization is configured. ***@de***f:/var/log/x-ui# timedatectl timesync-status Server: 83.243.68.157 (0.debian.pool.ntp.org) Poll interval: 34min 8s (min: 32s; max 34min 8s) Leap: normal Version: 4 Stratum: 2 Reference: C23ACF4F Precision: 4us (-18) Root distance: 5.508ms (max: 5s) Offset: +9.220ms Delay: 27.639ms Jitter: 7.534ms Packet count: 7 Frequency: +9,095ppm This is a physical machine that I set up myself and installed Debian 13.5 on. This machine handles the reverse proxy and the Apache Guacamole service. ### How to reproduce the problem The problem occurs randomly—once a day, several times a day, or once a week. ### Expected behavior I expected the panel to show some kind of error. ### Actual behavior The panel showed no errors. ### Relevant logs ```shell июл 24 17:50:25 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - Unauthorized WebSocket connection attempt from 172.18.0.3 июл 25 04:03:36 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - node traffic sync: fetch from mydomain.com failed: GET panel/api/inbounds/list: Get "https://*******/panel/api/in> июл 26 12:55:36 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - node traffic sync: fetch from EU-***-DNS failed: GET panel/api/inbounds/list: Get "https://**********/panel/ap> июл 26 12:55:36 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - node traffic sync: fetch from mydomain.com failed: GET panel/api/inbounds/list: Get "https://mydomain.com/panel/api/in> июл 26 13:01:21 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - node traffic sync: fetch from mydomain.com failed: GET panel/api/inbounds/list: Get "https://******L/panel/api/in> июл 26 21:36:30 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - r*** logged in successfully, Ip Address: 172.18.0.3 июл 26 21:36:30 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - ***** logged in successfully июл 26 21:38:10 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - Remove Inbound User *** due to expiration or traffic limit июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - Remove Inbound User *** due to expiration or traffic limit июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json} июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - XRAY: common/errors: The feature gRPC transport (with unnecessary costs, etc.) is deprecated, not recommended for using and might be removed. P> июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - XRAY: common/errors: The feature gRPC transport (with unnecessary costs, etc.) is deprecated, not recommended for using and might be removed. P> июл 26 21:40:50 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW июл 26 21:40:51 deb-trf /usr/local/x-ui/x-ui[1819]: WARNING - XRAY: core: Xray 26.7.11 started июл 26 21:40:52 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - xray core supports the online-stats API; using connection-based onlines and access-log-free IP limit июл 26 21:42:47 deb-trf systemd[1]: Stopping x-ui.service - x-ui Service... июл 26 21:42:47 deb-trf /usr/local/x-ui/x-ui[1819]: INFO - WebSocket hub stopped июл 26 21:42:47 deb-trf x-ui[1819]: 2026/07/26 21:42:47 Shutting down servers. июл 26 21:42:47 deb-trf systemd[1]: x-ui.service: Deactivated successfully. июл 26 21:42:47 deb-trf systemd[1]: Stopped x-ui.service - x-ui Service. июл 26 21:42:47 deb-trf systemd[1]: x-ui.service: Consumed 1h 3min 50.353s CPU time, 546.9M memory peak. -- Boot 029747e6969044308c343337975729c6 -- июл 26 21:43:24 deb-trf systemd[1]: Started x-ui.service - x-ui Service. июл 26 21:43:25 deb-trf x-ui[762]: 2026/07/26 21:43:25 Starting x-ui 3.5.0 июл 26 21:43:25 deb-trf /usr/local/x-ui/x-ui[762]: INFO - GC percent set to 75 июл 26 21:43:25 deb-trf /usr/local/x-ui/x-ui[762]: INFO - Go memory soft limit not enforced: no explicit budget; soft limit left at Go default июл 26 21:43:25 deb-trf x-ui[762]: 2026/07/26 21:43:25 Error initializing database: failed to connect to `user=***** database=xui`: 127.0.0.1:5432 (127.0.0.1): dial error: dial tcp 127.0.0.1:5432: conne> июл 26 21:43:25 deb-trf systemd[1]: x-ui.service: Main process exited, code=exited, status=1/FAILURE июл 26 21:43:25 deb-trf systemd[1]: x-ui.service: Failed with result 'exit-code'. июл 26 21:43:25 deb-trf systemd[1]: x-ui.service: Consumed 76ms CPU time, 71.9M memory peak. июл 26 21:43:30 deb-trf systemd[1]: x-ui.service: Scheduled restart job, restart counter is at 1. июл 26 21:43:30 deb-trf systemd[1]: Started x-ui.service - x-ui Service. июл 26 21:43:30 deb-trf x-ui[1895]: 2026/07/26 21:43:30 Starting x-ui 3.5.0 июл 26 21:43:30 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - GC percent set to 75 июл 26 21:43:30 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - Go memory soft limit not enforced: no explicit budget; soft limit left at Go default июл 26 21:43:30 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - Web server running HTTP on [::]:888888 июл 26 21:43:30 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - Remove Inbound User AV2 due to expiration or traffic limit июл 26 21:43:31 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - XRAY: infra/conf/serial: Reading config: &{Name:bin/config.json Format:json} июл 26 21:43:31 deb-trf /usr/local/x-ui/x-ui[1895]: WARNING - XRAY: common/errors: The feature gRPC transport (with unnecessary costs, etc.) is deprecated, not recommended for using and might be removed. P> июл 26 21:43:31 deb-trf /usr/local/x-ui/x-ui[1895]: WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW июл 26 21:43:31 deb-trf /usr/local/x-ui/x-ui[1895]: WARNING - XRAY: common/errors: The feature gRPC transport (with unnecessary costs, etc.) is deprecated, not recommended for using and might be removed. P> июл 26 21:43:31 deb-trf /usr/local/x-ui/x-ui[1895]: WARNING - XRAY: infra/conf: REALITY: Listening on non-443 ports may get your IP blocked by the GFW июл 26 21:43:32 deb-trf /usr/local/x-ui/x-ui[1895]: WARNING - XRAY: core: Xray 26.7.11 started июл 26 21:43:41 deb-trf /usr/local/x-ui/x-ui[1895]: INFO - xray core supports the online-stats API; using connection-based onlines and access-log-free IP limit ``` ### Screenshots _No response_ ### 3x-ui version 3.5.0 ### Xray-core version 26.7.11 ### How did you install 3x-ui? install.sh script ### Operating system Debian 13.5 ### 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? Yes — other ### 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).
bsakaguchi 2026-10-31 20:38:05 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jul 26, 2026):

I could not reproduce this as a panel-side defect from the evidence given, but the single most informative detail in your report is that restarting Xray does not recover the service while a reboot does. That places the stuck state outside the Xray process, so the next step is to narrow down where the block actually sits. Two things confirmed in the source first, because they explain what you did and did not see.

Why the panel showed no error. The "Xray is running" state is process liveness only. process.IsRunning() (internal/xray/process.go:244) checks only that the child process has not exited; XrayService.IsXrayRunning (internal/web/service/xray.go:40) and DidXrayCrash (internal/web/service/xray.go:1232) are built on it, and DidXrayCrash is what the automatic recovery job uses (internal/web/job/check_xray_running_job.go). A core that is alive but no longer serving connections is invisible to both the status display and the auto-restart. This is a known limitation, discussed in #5856, which is a related but not identical report (there a restart did recover it).

Check the IP-limit fail2ban jail before anything else. If IP Limit was ever enabled from the x-ui menu, create_iplimit_jails (x-ui.sh:2488) writes /etc/fail2ban/action.d/3x-ipl.conf, whose actionban (x-ui.sh:2546) blocks the source IP on every TCP and UDP port except SSH and the panel port (exemptports, built at x-ui.sh:2523-2529). That produces your exact symptom profile — SSH fine, panel fine, proxy traffic timing out — and an iptables rule is not cleared by restarting Xray. While the problem is happening:

fail2ban-client status 3x-ipl
iptables -L f2b-3x-ipl -n

An empty chain rules this out. The default bantime is 30 minutes (x-ui.sh:2490), so a longer configured bantime would be needed to match your durations.

Beyond that, your own log shows outbound calls failing too (node traffic sync: fetch from ... failed), so it is not only inbound traffic. Please capture the following while the failure is active, since these distinguish an Xray-level wedge from a host-level one:

  1. ss -tlnp | grep -F <your inbound port> — is Xray still listening on the inbound at all.
  2. curl -sv --max-time 10 https://www.cloudflare.com/cdn-cgi/trace from the server — can the box open any new outbound connection.
  3. ss -s and ss -tan | awk '{print $1}' | sort | uniq -c — socket-state totals. Large CLOSE-WAIT/LAST-ACK counts were the pattern in #4678.
  4. dmesg -T | tail -50 and sysctl net.netfilter.nf_conntrack_count net.netfilter.nf_conntrack_max — a full conntrack table gives exactly "existing SSH session survives, new connections dropped, only a reboot clears it", and you are running Docker (Traefik, Guacamole), so nf_conntrack is loaded.
  5. cat /proc/$(pgrep -f 'x-ui/bin/xray')/limits | grep -i 'open files' and ls /proc/$(pgrep -f 'x-ui/bin/xray')/fd | wc -l. The shipped unit x-ui.service.debian sets no LimitNOFILE, so the panel and its Xray child inherit systemd's default.
  6. Xray's own log at debug level (panel → Xray Configs → log level) covering the moment connections stop. The journal output you posted is at info/warning and would not show the failure itself.

One more datapoint that would help: whether the interval changes if you temporarily run a plain VLESS REALITY inbound without the gRPC transport. Xray 26.7.11 prints the "gRPC transport is deprecated" warning your log shows, and if the wedge is transport-specific that would isolate it to Xray-core rather than the panel.

Separately, and unrelated to the main symptom: your log shows x-ui starting at boot before PostgreSQL was reachable and exiting with Error initializing database: ... dial tcp 127.0.0.1:5432. The shipped unit only orders itself After=network.target (x-ui.service.debian), so with the database in a container it can start too early; Restart=on-failure with RestartSec=5s recovered it on the second attempt, which is why it is only a failed start in the log. A systemd drop-in adding After=docker.service (or your PostgreSQL unit) removes that first failure.

Also worth noting: logins are recorded from 172.18.0.3, i.e. the panel sees the Traefik container address rather than the real client address. That is cosmetic unless you use per-client IP limits, in which case see docs/real-client-ip.md for the Sockopt "Real client IP" settings.

Keeping this open and labelled as needing clarification until the data above narrows it down.

This reply was generated automatically. A maintainer may follow up.

<!-- gh-comment-id:5085153183 --> @github-actions[bot] commented on GitHub (Jul 26, 2026): I could not reproduce this as a panel-side defect from the evidence given, but the single most informative detail in your report is that restarting Xray does not recover the service while a reboot does. That places the stuck state outside the Xray process, so the next step is to narrow down where the block actually sits. Two things confirmed in the source first, because they explain what you did and did not see. **Why the panel showed no error.** The "Xray is running" state is process liveness only. `process.IsRunning()` (`internal/xray/process.go:244`) checks only that the child process has not exited; `XrayService.IsXrayRunning` (`internal/web/service/xray.go:40`) and `DidXrayCrash` (`internal/web/service/xray.go:1232`) are built on it, and `DidXrayCrash` is what the automatic recovery job uses (`internal/web/job/check_xray_running_job.go`). A core that is alive but no longer serving connections is invisible to both the status display and the auto-restart. This is a known limitation, discussed in #5856, which is a related but not identical report (there a restart did recover it). **Check the IP-limit fail2ban jail before anything else.** If IP Limit was ever enabled from the `x-ui` menu, `create_iplimit_jails` (`x-ui.sh:2488`) writes `/etc/fail2ban/action.d/3x-ipl.conf`, whose `actionban` (`x-ui.sh:2546`) blocks the source IP on every TCP and UDP port *except* SSH and the panel port (`exemptports`, built at `x-ui.sh:2523-2529`). That produces your exact symptom profile — SSH fine, panel fine, proxy traffic timing out — and an iptables rule is not cleared by restarting Xray. While the problem is happening: ``` fail2ban-client status 3x-ipl iptables -L f2b-3x-ipl -n ``` An empty chain rules this out. The default bantime is 30 minutes (`x-ui.sh:2490`), so a longer configured bantime would be needed to match your durations. **Beyond that, your own log shows outbound calls failing too** (`node traffic sync: fetch from ... failed`), so it is not only inbound traffic. Please capture the following *while the failure is active*, since these distinguish an Xray-level wedge from a host-level one: 1. `ss -tlnp | grep -F <your inbound port>` — is Xray still listening on the inbound at all. 2. `curl -sv --max-time 10 https://www.cloudflare.com/cdn-cgi/trace` from the server — can the box open any new outbound connection. 3. `ss -s` and `ss -tan | awk '{print $1}' | sort | uniq -c` — socket-state totals. Large CLOSE-WAIT/LAST-ACK counts were the pattern in #4678. 4. `dmesg -T | tail -50` and `sysctl net.netfilter.nf_conntrack_count net.netfilter.nf_conntrack_max` — a full conntrack table gives exactly "existing SSH session survives, new connections dropped, only a reboot clears it", and you are running Docker (Traefik, Guacamole), so `nf_conntrack` is loaded. 5. `cat /proc/$(pgrep -f 'x-ui/bin/xray')/limits | grep -i 'open files'` and `ls /proc/$(pgrep -f 'x-ui/bin/xray')/fd | wc -l`. The shipped unit `x-ui.service.debian` sets no `LimitNOFILE`, so the panel and its Xray child inherit systemd's default. 6. Xray's own log at `debug` level (panel → Xray Configs → log level) covering the moment connections stop. The journal output you posted is at info/warning and would not show the failure itself. One more datapoint that would help: whether the interval changes if you temporarily run a plain VLESS REALITY inbound without the gRPC transport. Xray 26.7.11 prints the "gRPC transport is deprecated" warning your log shows, and if the wedge is transport-specific that would isolate it to Xray-core rather than the panel. Separately, and unrelated to the main symptom: your log shows `x-ui` starting at boot before PostgreSQL was reachable and exiting with `Error initializing database: ... dial tcp 127.0.0.1:5432`. The shipped unit only orders itself `After=network.target` (`x-ui.service.debian`), so with the database in a container it can start too early; `Restart=on-failure` with `RestartSec=5s` recovered it on the second attempt, which is why it is only a failed start in the log. A systemd drop-in adding `After=docker.service` (or your PostgreSQL unit) removes that first failure. Also worth noting: logins are recorded from `172.18.0.3`, i.e. the panel sees the Traefik container address rather than the real client address. That is cosmetic unless you use per-client IP limits, in which case see `docs/real-client-ip.md` for the Sockopt "Real client IP" settings. Keeping this open and labelled as needing clarification until the data above narrows it down. *This reply was generated automatically. A maintainer may follow up.*
Author
Owner

@goldnayk-cyber commented on GitHub (Jul 27, 2026):

There is currently an active error.
There are no blocked IPs.
@df:/home/# fail2ban-client status 3x-ipl
Status for the jail: 3x-ipl
|- Filter
| |- Currently failed: 0
| |- Total failed: 0
| - File list: /var/log/x-ui/3xipl.log - Actions
|- Currently banned: 0
|- Total banned: 0
`- Banned IP list:
@d
f:/home/
**# iptables -L f2b-3x-ipl -n
iptables: No chain/target/match by that name.

A timeout occurs upon connection, yet the VPN session appears to be active; the web panel is accessible, but other websites are not.

@df:/home/***# ss -tlnp | grep -F 11111
LISTEN 0 4096 *:11111 : users:(("xray-linux-amd6",pid=194 9,fd=10))

@df:/home/***# curl -sv --max-time 10 https://www.cloudflare.com/cdn-cgi/trace

  • Could not resolve host: www.cloudflare.com
  • shutting down connection #0

@df:/home/***# ss -s
Total: 245
TCP: 112 (estab 29, closed 63, orphaned 0, timewait 22)

Transport Total IP IPv6
RAW 4 1 3
UDP 4 2 2
TCP 49 35 14
INET 57 38 19
FRAG 0 0 0

@df:/home/***# ss -tan | awk '{print $1}' | sort | uniq -c
30 ESTAB
20 LISTEN
1 State
21 TIME-WAIT

@df:/home/***# dmesg -T | tail -50
[Пн июл 27 07:07:21 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 07:11:31 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 07:11:33 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 07:14:44 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 07:14:46 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 07:21:19 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 07:21:21 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 07:31:21 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 07:31:23 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 07:37:42 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 07:37:44 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 07:41:35 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 07:41:38 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 07:42:35 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 07:42:37 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 07:50:11 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 07:50:14 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 07:55:37 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 07:55:39 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 07:56:53 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 07:56:55 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:11:23 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:11:25 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:22:41 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:22:43 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:24:19 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:24:22 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:26:08 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:26:10 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:35:43 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:35:46 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:36:57 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:36:59 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:42:56 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:42:58 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:44:42 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:44:44 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:46:08 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:46:10 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:47:38 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:48:11 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:48:13 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:49:35 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:49:37 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:50:32 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:50:34 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 08:58:46 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 08:58:48 2026] sr 2:0:0:0: Power-on or device reset occurred
[Пн июл 27 09:12:35 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd
[Пн июл 27 09:12:37 2026] sr 2:0:0:0: Power-on or device reset occurred

@df:/home/***# sysctl net.netfilter.nf_conntrack_count net.netfilter.nf_conntrack_max
net.netfilter.nf_conntrack_count = 1570
net.netfilter.nf_conntrack_max = 262144

@df:/home/***# cat /proc/$(pgrep -f 'x-ui/bin/xray')/limits | grep -i 'open files'
cat: /proc//limits: Нет такого файла или каталога

@df:/home/***# ls /proc/$(pgrep -f 'x-ui/bin/xray')/fd | wc -l
ls: невозможно получить доступ к '/proc//fd': Нет такого файла или каталога
0

I'm seeing some DNS issues.

<!-- gh-comment-id:5087948979 --> @goldnayk-cyber commented on GitHub (Jul 27, 2026): There is currently an active error. There are no blocked IPs. ***@d****f:/home/****# fail2ban-client status 3x-ipl Status for the jail: 3x-ipl |- Filter | |- Currently failed: 0 | |- Total failed: 0 | `- File list: /var/log/x-ui/3xipl.log `- Actions |- Currently banned: 0 |- Total banned: 0 `- Banned IP list: ***@d****f:/home/****# iptables -L f2b-3x-ipl -n iptables: No chain/target/match by that name. A timeout occurs upon connection, yet the VPN session appears to be active; the web panel is accessible, but other websites are not. ***@d****f:/home/****# ss -tlnp | grep -F 11111 LISTEN 0 4096 *:11111 *:* users:(("xray-linux-amd6",pid=194 9,fd=10)) ***@d****f:/home/****# curl -sv --max-time 10 https://www.cloudflare.com/cdn-cgi/trace * Could not resolve host: www.cloudflare.com * shutting down connection #0 ***@d****f:/home/****# ss -s Total: 245 TCP: 112 (estab 29, closed 63, orphaned 0, timewait 22) Transport Total IP IPv6 RAW 4 1 3 UDP 4 2 2 TCP 49 35 14 INET 57 38 19 FRAG 0 0 0 ***@d****f:/home/****# ss -tan | awk '{print $1}' | sort | uniq -c 30 ESTAB 20 LISTEN 1 State 21 TIME-WAIT ***@d****f:/home/****# dmesg -T | tail -50 [Пн июл 27 07:07:21 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 07:11:31 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 07:11:33 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 07:14:44 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 07:14:46 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 07:21:19 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 07:21:21 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 07:31:21 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 07:31:23 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 07:37:42 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 07:37:44 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 07:41:35 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 07:41:38 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 07:42:35 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 07:42:37 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 07:50:11 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 07:50:14 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 07:55:37 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 07:55:39 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 07:56:53 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 07:56:55 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:11:23 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:11:25 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:22:41 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:22:43 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:24:19 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:24:22 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:26:08 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:26:10 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:35:43 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:35:46 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:36:57 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:36:59 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:42:56 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:42:58 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:44:42 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:44:44 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:46:08 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:46:10 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:47:38 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:48:11 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:48:13 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:49:35 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:49:37 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:50:32 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:50:34 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 08:58:46 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 08:58:48 2026] sr 2:0:0:0: Power-on or device reset occurred [Пн июл 27 09:12:35 2026] usb 3-4: reset high-speed USB device number 2 using xhci_hcd [Пн июл 27 09:12:37 2026] sr 2:0:0:0: Power-on or device reset occurred ***@d****f:/home/****# sysctl net.netfilter.nf_conntrack_count net.netfilter.nf_conntrack_max net.netfilter.nf_conntrack_count = 1570 net.netfilter.nf_conntrack_max = 262144 ***@d****f:/home/****# cat /proc/$(pgrep -f 'x-ui/bin/xray')/limits | grep -i 'open files' cat: /proc//limits: Нет такого файла или каталога ***@d****f:/home/****# ls /proc/$(pgrep -f 'x-ui/bin/xray')/fd | wc -l ls: невозможно получить доступ к '/proc//fd': Нет такого файла или каталога 0 I'm seeing some DNS issues.
Author
Owner

@goldnayk-cyber commented on GitHub (Jul 27, 2026):

Tailscale is also installed on the server.

<!-- gh-comment-id:5088021466 --> @goldnayk-cyber commented on GitHub (Jul 27, 2026): Tailscale is also installed on the server.
Author
Owner

@goldnayk-cyber commented on GitHub (Jul 27, 2026):

The result changed after adding Google DNS.

nano /etc/resolv.conf

@d*f:/home/*****# curl -sv --max-time 10 https://www.cloudflare.com/cdn-cgi/trace

  • Host www.cloudflare.com:443 was resolved.
  • IPv6: 2606:4700::6810:7b60, 2606:4700::6810:7c60
  • IPv4: 104.16.124.96, 104.16.123.96
  • Trying [2606:4700::6810:7b60]:443...
  • Immediate connect fail for 2606:4700::6810:7b60: Сеть недоступна
  • Trying [2606:4700::6810:7c60]:443...
  • Immediate connect fail for 2606:4700::6810:7c60: Сеть недоступна
  • Trying 104.16.124.96:443...
  • ALPN: curl offers h2,http/1.1
  • TLSv1.3 (OUT), TLS handshake, Client hello (1):
  • CAfile: /etc/ssl/certs/ca-certificates.crt
  • CApath: /etc/ssl/certs
  • TLSv1.3 (IN), TLS handshake, Server hello (2):
  • TLSv1.3 (IN), TLS change cipher, Change cipher spec (1):
  • TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
  • TLSv1.3 (IN), TLS handshake, Certificate (11):
  • TLSv1.3 (IN), TLS handshake, CERT verify (15):
  • TLSv1.3 (IN), TLS handshake, Finished (20):
  • TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
  • TLSv1.3 (OUT), TLS handshake, Finished (20):
  • SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey
  • ALPN: server accepted h2
  • Server certificate:
  • subject: CN=www.cloudflare.com
  • start date: Jul 19 12:47:34 2026 GMT
  • expire date: Oct 17 13:47:32 2026 GMT
  • subjectAltName: host "www.cloudflare.com" matched cert's "www.cloudflare.com"
  • issuer: C=US; O=Google Trust Services; CN=WE1
  • SSL certificate verify ok.
  • Certificate level 0: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA256
  • Certificate level 1: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA384
  • Certificate level 2: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
  • Connected to www.cloudflare.com (104.16.124.96) port 443
  • using HTTP/2
  • [HTTP/2] [1] OPENED stream for https://www.cloudflare.com/cdn-cgi/trace
  • [HTTP/2] [1] [:method: GET]
  • [HTTP/2] [1] [:scheme: https]
  • [HTTP/2] [1] [:authority: www.cloudflare.com]
  • [HTTP/2] [1] [:path: /cdn-cgi/trace]
  • [HTTP/2] [1] [user-agent: curl/8.14.1]
  • [HTTP/2] [1] [accept: /]

GET /cdn-cgi/trace HTTP/2
Host: www.cloudflare.com
User-Agent: curl/8.14.1
Accept: /

  • Request completely sent off
  • TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
  • TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
    < HTTP/2 200
    < date: Mon, 27 Jul 2026 06:31:24 GMT
    < content-type: text/plain
    < content-length: 215
    < if-modified-since: off
    < expires: Thu, 01 Jan 1970 00:00:01 GMT
    < access-control-allow-origin: *
    < set-cookie: __cf_bm=ZPt9gxPfZROfxF.5B6YsdoktFy909ZJwoxnL0p8mFPQ-1785133884.148892-1.0.1.1-tWwoW6Ou21p9X707clm4BMb_9RLOHbZg5wuPkQ0hOHO5jlTPb.Gr9e9.hWRCDW59fK9aXo9x9aYI5Ig3RPKdSQGHVTh78jZKEUr4YJc.gKnKN5eFa1tSsVEi0LI6sZOk; HttpOnly; SameSite=None; Secure; Path=/; Domain=www.cloudflare.com; Expires=Mon, 27 Jul 2026 07:01:24 GMT
    < report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=apaNN9Ur9X392fY28kPniHc9Wd1YnKS2eWWX37voZcaxaVapc5WnHWYkatD4r%2FPshNXxa5nbiFo46%2B10vDgrcvDYy0QonTgvpMdzO%2FCOWbKXKBC%2FtOFiH5HYzf%2F5krieIKIdNg%3D%3D"}]}
    < nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    < server: cloudflare
    < cf-ray: a21999d7ee52e48b-DME
    <
    fl=903f63
    h=www.cloudflare.com
    ip=85.234.24.182
    ts=1785133884.000
    visit_scheme=https
    uag=curl/8.14.1
    colo=DME
    sliver=none
    http=http/2
    loc=RU
    tls=TLSv1.3
    sni=plaintext
    warp=off
    gateway=off
    rbi=off
    kex=X25519MLKEM768
  • Connection #0 to host www.cloudflare.com left intact
<!-- gh-comment-id:5088060072 --> @goldnayk-cyber commented on GitHub (Jul 27, 2026): The result changed after adding Google DNS. # nano /etc/resolv.conf ***@d****f:/home/*****# curl -sv --max-time 10 https://www.cloudflare.com/cdn-cgi/trace * Host www.cloudflare.com:443 was resolved. * IPv6: 2606:4700::6810:7b60, 2606:4700::6810:7c60 * IPv4: 104.16.124.96, 104.16.123.96 * Trying [2606:4700::6810:7b60]:443... * Immediate connect fail for 2606:4700::6810:7b60: Сеть недоступна * Trying [2606:4700::6810:7c60]:443... * Immediate connect fail for 2606:4700::6810:7c60: Сеть недоступна * Trying 104.16.124.96:443... * ALPN: curl offers h2,http/1.1 * TLSv1.3 (OUT), TLS handshake, Client hello (1): * CAfile: /etc/ssl/certs/ca-certificates.crt * CApath: /etc/ssl/certs * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS change cipher, Change cipher spec (1): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey * ALPN: server accepted h2 * Server certificate: * subject: CN=www.cloudflare.com * start date: Jul 19 12:47:34 2026 GMT * expire date: Oct 17 13:47:32 2026 GMT * subjectAltName: host "www.cloudflare.com" matched cert's "www.cloudflare.com" * issuer: C=US; O=Google Trust Services; CN=WE1 * SSL certificate verify ok. * Certificate level 0: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA256 * Certificate level 1: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA384 * Certificate level 2: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384 * Connected to www.cloudflare.com (104.16.124.96) port 443 * using HTTP/2 * [HTTP/2] [1] OPENED stream for https://www.cloudflare.com/cdn-cgi/trace * [HTTP/2] [1] [:method: GET] * [HTTP/2] [1] [:scheme: https] * [HTTP/2] [1] [:authority: www.cloudflare.com] * [HTTP/2] [1] [:path: /cdn-cgi/trace] * [HTTP/2] [1] [user-agent: curl/8.14.1] * [HTTP/2] [1] [accept: */*] > GET /cdn-cgi/trace HTTP/2 > Host: www.cloudflare.com > User-Agent: curl/8.14.1 > Accept: */* > * Request completely sent off * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): < HTTP/2 200 < date: Mon, 27 Jul 2026 06:31:24 GMT < content-type: text/plain < content-length: 215 < if-modified-since: off < expires: Thu, 01 Jan 1970 00:00:01 GMT < access-control-allow-origin: * < set-cookie: __cf_bm=ZPt9gxPfZROfxF.5B6YsdoktFy909ZJwoxnL0p8mFPQ-1785133884.148892-1.0.1.1-tWwoW6Ou21p9X707clm4BMb_9RLOHbZg5wuPkQ0hOHO5jlTPb.Gr9e9.hWRCDW59fK9aXo9x9aYI5Ig3RPKdSQGHVTh78jZKEUr4YJc.gKnKN5eFa1tSsVEi0LI6sZOk; HttpOnly; SameSite=None; Secure; Path=/; Domain=www.cloudflare.com; Expires=Mon, 27 Jul 2026 07:01:24 GMT < report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=apaNN9Ur9X392fY28kPniHc9Wd1YnKS2eWWX37voZcaxaVapc5WnHWYkatD4r%2FPshNXxa5nbiFo46%2B10vDgrcvDYy0QonTgvpMdzO%2FCOWbKXKBC%2FtOFiH5HYzf%2F5krieIKIdNg%3D%3D"}]} < nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800} < server: cloudflare < cf-ray: a21999d7ee52e48b-DME < fl=903f63 h=www.cloudflare.com ip=85.234.24.182 ts=1785133884.000 visit_scheme=https uag=curl/8.14.1 colo=DME sliver=none http=http/2 loc=RU tls=TLSv1.3 sni=plaintext warp=off gateway=off rbi=off kex=X25519MLKEM768 * Connection #0 to host www.cloudflare.com left intact
Author
Owner

@goldnayk-cyber commented on GitHub (Jul 27, 2026):

The server came back to life after adding Google DNS to the file # nano /etc/resolv.conf
However, the file was overwritten again.

resolv.conf(5) file generated by tailscale

For more info, see https://tailscale.com/s/resolvconf-overwrite

DO NOT EDIT THIS FILE BY HAND -- CHANGES WILL BE OVERWRITTEN

nameserver 100.100.100.100
nameserver fd7a:115c:a1e0::53
search tailf3234c.ts.net

<!-- gh-comment-id:5088097862 --> @goldnayk-cyber commented on GitHub (Jul 27, 2026): The server came back to life after adding Google DNS to the file # nano /etc/resolv.conf However, the file was overwritten again. # resolv.conf(5) file generated by tailscale # For more info, see https://tailscale.com/s/resolvconf-overwrite # DO NOT EDIT THIS FILE BY HAND -- CHANGES WILL BE OVERWRITTEN nameserver 100.100.100.100 nameserver fd7a:115c:a1e0::53 search tailf3234c.ts.net
Author
Owner

@MHSanaei commented on GitHub (Jul 27, 2026):

Closing this as an environment issue — your own last two comments identified it, and the evidence is conclusive.

While the failure was active:

curl -sv --max-time 10 https://www.cloudflare.com/cdn-cgi/trace
* Could not resolve host: www.cloudflare.com

DNS resolution was dead, and everything else follows from that. Adding a working nameserver to /etc/resolv.conf brought the server back immediately, and the file was then overwritten:

# resolv.conf(5) file generated by tailscale
nameserver 100.100.100.100

Tailscale's MagicDNS takes over /etc/resolv.conf and points the system at 100.100.100.100. When that resolver stops answering, the box can no longer resolve anything: Xray cannot resolve destinations so proxied connections time out while the tunnel itself looks established, and the panel's own node traffic sync: fetch from … failed warnings are the same failure on the outbound side. SSH and the panel keep working because both are reached by IP.

It also explains the two things that looked most confusing:

  • Restarting Xray did not help, because Xray was never the broken component.
  • A reboot did help, because it re-established the resolver.

The fail2ban check you ran rules out the IP-limit jail (Currently banned: 0, no f2b-3x-ipl chain), so that is not involved.

To fix it properly, configure DNS through Tailscale rather than by editing resolv.conf, which Tailscale will keep rewriting:

  • In the Tailscale admin console → DNS, add a global nameserver (e.g. 1.1.1.1 or 8.8.8.8) so MagicDNS has an upstream to fall back on; or
  • tailscale set --accept-dns=false on this host, which leaves /etc/resolv.conf under your control.

There is one genuine panel-side observation in your log worth acting on separately: x-ui started before PostgreSQL was reachable and exited with Error initializing database: … dial tcp 127.0.0.1:5432. Restart=on-failure recovered it on the next attempt, so it is only a failed start, but a systemd drop-in with After=docker.service (or your PostgreSQL unit) removes it.

If connections stop again while curl can resolve and reach the internet from that box, please reopen with Xray's log at debug level covering the moment it happens — that would be a different problem and worth tracing.

<!-- gh-comment-id:5091404724 --> @MHSanaei commented on GitHub (Jul 27, 2026): Closing this as an environment issue — your own last two comments identified it, and the evidence is conclusive. While the failure was active: ``` curl -sv --max-time 10 https://www.cloudflare.com/cdn-cgi/trace * Could not resolve host: www.cloudflare.com ``` DNS resolution was dead, and everything else follows from that. Adding a working nameserver to `/etc/resolv.conf` brought the server back immediately, and the file was then overwritten: ``` # resolv.conf(5) file generated by tailscale nameserver 100.100.100.100 ``` Tailscale's MagicDNS takes over `/etc/resolv.conf` and points the system at `100.100.100.100`. When that resolver stops answering, the box can no longer resolve anything: Xray cannot resolve destinations so proxied connections time out while the tunnel itself looks established, and the panel's own `node traffic sync: fetch from … failed` warnings are the same failure on the outbound side. SSH and the panel keep working because both are reached by IP. It also explains the two things that looked most confusing: - Restarting Xray did not help, because Xray was never the broken component. - A reboot did help, because it re-established the resolver. The fail2ban check you ran rules out the IP-limit jail (`Currently banned: 0`, no `f2b-3x-ipl` chain), so that is not involved. To fix it properly, configure DNS through Tailscale rather than by editing `resolv.conf`, which Tailscale will keep rewriting: - In the Tailscale admin console → **DNS**, add a global nameserver (e.g. `1.1.1.1` or `8.8.8.8`) so MagicDNS has an upstream to fall back on; or - `tailscale set --accept-dns=false` on this host, which leaves `/etc/resolv.conf` under your control. There is one genuine panel-side observation in your log worth acting on separately: `x-ui` started before PostgreSQL was reachable and exited with `Error initializing database: … dial tcp 127.0.0.1:5432`. `Restart=on-failure` recovered it on the next attempt, so it is only a failed start, but a systemd drop-in with `After=docker.service` (or your PostgreSQL unit) removes it. If connections stop again while `curl` *can* resolve and reach the internet from that box, please reopen with Xray's log at `debug` level covering the moment it happens — that would be a different problem and worth tracing.
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#4223
No description provided.