[GH-ISSUE #4671] [Bug]: xray metrics unavailable #3222

Closed
opened 2026-10-31 20:30:54 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Toximiner on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4671

Describe the bug

When I try to update the panel from 3.1.0 to 3.2.0, I have a problem with Xray metrics. In the logs:

2026/05/30 01:41:51 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:49 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:47 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:45 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:43 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:41 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:39 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:37 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template

How to reproduce the problem

  1. Update the panel from 3.1.0 to 3.2.0
  2. Try to open Xray metrics on the dashboard

Expected behavior

No response

Actual behavior

No response

Relevant logs

2026/05/30 01:41:51 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:49 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:47 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:45 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:43 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:41 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:39 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template
2026/05/30 01:41:37 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template

Screenshots

Image Image

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?

Statistics / traffic counters

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

No

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 @Toximiner on GitHub (May 29, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4671 ### Describe the bug When I try to update the panel from 3.1.0 to 3.2.0, I have a problem with Xray metrics. In the logs: ``` 2026/05/30 01:41:51 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:49 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:47 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:45 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:43 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:41 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:39 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:37 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template ``` ### How to reproduce the problem 1. Update the panel from 3.1.0 to 3.2.0 2. Try to open Xray metrics on the dashboard ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell 2026/05/30 01:41:51 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:49 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:47 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:45 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:43 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:41 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:39 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template 2026/05/30 01:41:37 DEBUG - X-UI: xray metrics unavailable: metrics block not configured in xray template ``` ### Screenshots <img width="961" height="541" alt="Image" src="https://github.com/user-attachments/assets/d78ae3af-c7df-413d-9ddb-75436fa44f5d" /> <img width="803" height="549" alt="Image" src="https://github.com/user-attachments/assets/805c3f36-2d27-4fd0-9e02-adfb9d393be7" /> ### 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? Statistics / traffic counters ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? No ### 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:30:54 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MHSanaei commented on GitHub (May 30, 2026):

Reset your Xray config to default.

<!-- gh-comment-id:4585172294 --> @MHSanaei commented on GitHub (May 30, 2026): Reset your Xray config to default.
Author
Owner

@pmmodlin commented on GitHub (Jul 23, 2026):

Add
"metrics": {
"listen": "127.0.0.1:11111",
"tag": "metrics_out"
}

<!-- gh-comment-id:5056929890 --> @pmmodlin commented on GitHub (Jul 23, 2026): Add "metrics": { "listen": "127.0.0.1:11111", "tag": "metrics_out" }
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#3222
No description provided.