[GH-ISSUE #4801] [Bug]: XRAY: Failed to start: main: failed to load config files: [bin/config.json] > infra/conf: failed to build inbound config with tag inbound-443 > infra/conf: REALITY only supports RAW, XHTTP and gRPC for now. #3335

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

Originally created by @zabavnov on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4801

Describe the bug

Panel state: Running
Start automatically: Yes
xray state: Not Running

Please enter your selection [0-27]: 15
● x-ui.service - x-ui Service
Loaded: loaded (/etc/systemd/system/x-ui.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2026-06-02 11:31:44 MSK; 10min ago
Main PID: 325149 (x-ui)
Tasks: 9 (limit: 1008)
Memory: 44.3M
CPU: 34.181s
CGroup: /system.slice/x-ui.service
└─325149 /usr/local/x-ui/x-ui

/usr/local/x-ui/x-ui[325149]: 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 > infra/conf: REALITY only supports RAW, XHTTP and gRPC for now.

How to reproduce the problem

I did update via ui and I can't use panel or xray anymore. I tried to edit /usr/local/x-ui/bin/config.json, but looks like it rewrites every restart. How can I fix this error?

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.2.6

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 22.04.5 LTS

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?

None

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 @zabavnov on GitHub (Jun 2, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4801 ### Describe the bug Panel state: Running Start automatically: Yes xray state: Not Running Please enter your selection [0-27]: 15 ● x-ui.service - x-ui Service Loaded: loaded (/etc/systemd/system/x-ui.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2026-06-02 11:31:44 MSK; 10min ago Main PID: 325149 (x-ui) Tasks: 9 (limit: 1008) Memory: 44.3M CPU: 34.181s CGroup: /system.slice/x-ui.service └─325149 /usr/local/x-ui/x-ui /usr/local/x-ui/x-ui[325149]: 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 > infra/conf: REALITY only supports RAW, XHTTP and gRPC for now. ### How to reproduce the problem I did update via ui and I can't use panel or xray anymore. I tried to edit /usr/local/x-ui/bin/config.json, but looks like it rewrites every restart. How can I fix this error? ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.2.6 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 22.04.5 LTS ### 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? None ### 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:31:43 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Jun 2, 2026):

Hi @zabavnov, thanks for the detailed report!

The error message means that one of your inbounds (tagged inbound-443) uses REALITY security with a network type that is no longer allowed. A recent Xray-core update enforces that REALITY can only be used with RAW (TCP), XHTTP, or gRPC — other network types (e.g. WebSocket, HTTP/2, etc.) are now rejected at startup.

How to fix:

Since the 3x-ui panel itself is still running (Panel state: Running), you can fix this directly from the web UI without touching config files:

  1. Open the 3x-ui panel in your browser.
  2. Go to Inbounds and find the inbound on port 443 (tag: inbound-443).
  3. Edit it and either:
    • Change the Network type to one of the supported options: RAW (TCP), XHTTP, or gRPC, or
    • Switch the Security setting away from REALITY (e.g. to TLS or None) if REALITY is not needed for that inbound.
  4. Save and restart Xray from the panel.

The config file is indeed regenerated from the database on every restart, so editing bin/config.json directly won't persist — the panel UI is the right place to fix this.

If you are unable to access the panel UI (e.g. you're connecting through the same broken inbound), try accessing it on its own port directly (the default is 2053 unless you changed it).

<!-- gh-comment-id:4600554271 --> @github-actions[bot] commented on GitHub (Jun 2, 2026): Hi @zabavnov, thanks for the detailed report\! The error message means that one of your inbounds (tagged `inbound-443`) uses **REALITY** security with a network type that is no longer allowed. A recent Xray-core update enforces that REALITY can only be used with **RAW (TCP)**, **XHTTP**, or **gRPC** — other network types (e.g. WebSocket, HTTP/2, etc.) are now rejected at startup. **How to fix:** Since the 3x-ui panel itself is still running (`Panel state: Running`), you can fix this directly from the web UI without touching config files: 1. Open the 3x-ui panel in your browser. 2. Go to **Inbounds** and find the inbound on port **443** (tag: `inbound-443`). 3. Edit it and either: - Change the **Network** type to one of the supported options: **RAW (TCP)**, **XHTTP**, or **gRPC**, **or** - Switch the **Security** setting away from REALITY (e.g. to TLS or None) if REALITY is not needed for that inbound. 4. Save and restart Xray from the panel. The config file is indeed regenerated from the database on every restart, so editing `bin/config.json` directly won't persist — the panel UI is the right place to fix this. If you are unable to access the panel UI (e.g. you're connecting through the same broken inbound), try accessing it on its own port directly (the default is `2053` unless you changed it).
Author
Owner

@MiTereKun commented on GitHub (Jun 2, 2026):

But if you choose TLS, then when someone visits the domain directly in a browser on port 443, the website won’t be displayed — and that makes it more obvious to censors that it’s a tunnel

<!-- gh-comment-id:4600895665 --> @MiTereKun commented on GitHub (Jun 2, 2026): But if you choose TLS, then when someone visits the domain directly in a browser on port 443, the website won’t be displayed — and that makes it more obvious to censors that it’s a tunnel
Author
Owner

@mitrios-hub commented on GitHub (Jun 2, 2026):

@zabavnov just try to edit inbound and then save it. or try to turn it off and then on.

<!-- gh-comment-id:4605027083 --> @mitrios-hub commented on GitHub (Jun 2, 2026): @zabavnov just try to edit inbound and then save it. or try to turn it off and then on.
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#3335
No description provided.