[GH-ISSUE #4602] [Bug]: Xray-core crashes (exit status 23) when Hysteria inbound is enabled instead of throwing a validation error #3161

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

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

Describe the bug

When using Xray-core as the panel's core, users can accidentally or intentionally create and enable a Hysteria inbound. Since the original Xray-core does not support Hysteria, it causes a critical crash with exit status 23 on startup.

Because Xray crashes in a loop, it completely locks down the panel web interface, forcing users to manually fix the database via CLI (sqlite3).

Image

How to reproduce the problem

  1. Set the panel core to Xray-core.
  2. Create a new inbound with the Hysteria protocol.
  3. Enable it and save.
  4. Xray crashes with status 23, and the web UI becomes completely inaccessible.

Expected behavior

The panel should prevent users from enabling or saving a Hysteria/TUIC inbound if the active core is set to Xray-core. A validation error message should pop up in the UI (e.g., "Hysteria requires Sing-box core").

Actual behavior

The panel allows saving the inbound, generates an invalid config.json for Xray, and crashes the core with:
ERROR - XRAY: Failed to start: main: failed to load config files... > infra/conf: failed to build inbound config

Relevant logs


Screenshots

No response

3x-ui version

3.1.0

Xray-core version

26.5.9

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04.4

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 @mardrake on GitHub (May 27, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4602 ### Describe the bug When using `Xray-core` as the panel's core, users can accidentally or intentionally create and enable a `Hysteria` inbound. Since the original Xray-core does not support Hysteria, it causes a critical crash with `exit status 23` on startup. Because Xray crashes in a loop, it completely locks down the panel web interface, forcing users to manually fix the database via CLI (`sqlite3`). <img width="761" height="617" alt="Image" src="https://github.com/user-attachments/assets/85fa1085-93b6-438e-b94a-7f78c6c2adc7" /> ### How to reproduce the problem 1. Set the panel core to `Xray-core`. 2. Create a new inbound with the `Hysteria` protocol. 3. Enable it and save. 4. Xray crashes with status 23, and the web UI becomes completely inaccessible. ### Expected behavior The panel should prevent users from enabling or saving a Hysteria/TUIC inbound if the active core is set to `Xray-core`. A validation error message should pop up in the UI (e.g., "Hysteria requires Sing-box core"). ### Actual behavior The panel allows saving the inbound, generates an invalid `config.json` for Xray, and crashes the core with: `ERROR - XRAY: Failed to start: main: failed to load config files... > infra/conf: failed to build inbound config` ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.1.0 ### Xray-core version 26.5.9 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04.4 ### 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:30:29 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@GamesIS commented on GitHub (May 29, 2026):

Image I have the same problem, only in outbound
<!-- gh-comment-id:4572044851 --> @GamesIS commented on GitHub (May 29, 2026): <img width="486" height="286" alt="Image" src="https://github.com/user-attachments/assets/99e7ef32-12bc-4af0-900c-333398360569" /> I have the same problem, only in outbound
Author
Owner

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

What are you talking about of course xray support hysteria
https://xtls.github.io/en/config/inbounds/hysteria.html

<!-- gh-comment-id:4572930862 --> @MHSanaei commented on GitHub (May 29, 2026): What are you talking about of course xray support hysteria https://xtls.github.io/en/config/inbounds/hysteria.html
Author
Owner

@SweatierUnicorn commented on GitHub (Jun 23, 2026):

I have same issue

<!-- gh-comment-id:4781366827 --> @SweatierUnicorn commented on GitHub (Jun 23, 2026): I have same issue
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#3161
No description provided.