[GH-ISSUE #2366] Xray reported an error #1631

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

Originally created by @duxngkun on GitHub (Jun 6, 2024).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2366

Welcome

  • Yes, I'm using the latest major release. Only such installations are supported.
  • Yes, I'm using the supported system. Only such systems are supported.
  • Yes, I have read all WIKI document,nothing can help me in my problem.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, log, etc).

Description of the problem,screencshot would be good

Xray reported an error so I couldn't use it. I reset the VPS and tried again, but when I added the client it gave me the error again while adding it manually!

Version of 3x-ui

Failed to start: main: failed to load config files: [bin/config.json] > encoding/hex: invalid byte: U+002D '-'

x-ui log reports or xray log

Jun 06 18:45:04 ubuntu-22-04-64bit-1-1-20 /usr/local/x-ui/x-ui[1809]: INFO - XRAY: infra/conf/serial: Reading config: bin/config.json
Jun 06 18:45:04 ubuntu-22-04-64bit-1-1-20 /usr/local/x-ui/x-ui[1809]: ERROR - Failure in running xray-core:  exit status 23
Originally created by @duxngkun on GitHub (Jun 6, 2024). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2366 ### Welcome - [ ] Yes, I'm using the latest major release. Only such installations are supported. - [ ] Yes, I'm using the supported system. Only such systems are supported. - [ ] Yes, I have read all WIKI document,nothing can help me in my problem. - [ ] Yes, I've searched similar issues on GitHub and didn't find any. - [ ] Yes, I've included all information below (version, config, log, etc). ### Description of the problem,screencshot would be good Xray reported an error so I couldn't use it. I reset the VPS and tried again, but when I added the client it gave me the error again while adding it manually! ### Version of 3x-ui <details> ```console Failed to start: main: failed to load config files: [bin/config.json] > encoding/hex: invalid byte: U+002D '-' ``` </details> ### x-ui log reports or xray log <details> ```console Jun 06 18:45:04 ubuntu-22-04-64bit-1-1-20 /usr/local/x-ui/x-ui[1809]: INFO - XRAY: infra/conf/serial: Reading config: bin/config.json Jun 06 18:45:04 ubuntu-22-04-64bit-1-1-20 /usr/local/x-ui/x-ui[1809]: ERROR - Failure in running xray-core: exit status 23 ``` </details>
Author
Owner

@SteeledOlaf commented on GitHub (Jun 6, 2024):

same thing, reinstalled the whole panel, it worked for like 10 minutes.

ERROR - X-UI: Failure in running xray-core: exit status 23
INFO - XRAY: infra/conf/serial: Reading config: bin/config.json

also 3X-UI reports this

Failed to start: main: failed to load config files: [bin/config.json] > infra/conf: invalid field rule > infra/conf: neither outboundTag nor balancerTag is specified in routing rule

i'm using latest version (2.3.4), i think it might have happened after "apt update && apt upgrade" command, maybe this clue will help.

<!-- gh-comment-id:2152360182 --> @SteeledOlaf commented on GitHub (Jun 6, 2024): same thing, reinstalled the whole panel, it worked for like 10 minutes. > ERROR - X-UI: Failure in running xray-core: exit status 23 > INFO - XRAY: infra/conf/serial: Reading config: bin/config.json also 3X-UI reports this ``` Failed to start: main: failed to load config files: [bin/config.json] > infra/conf: invalid field rule > infra/conf: neither outboundTag nor balancerTag is specified in routing rule ``` i'm using latest version (2.3.4), i think it might have happened after "apt update && apt upgrade" command, maybe this clue will help.
Author
Owner

@duxngkun commented on GitHub (Jun 6, 2024):

same thing, reinstalled the whole panel, it worked for like 10 minutes.

ERROR - X-UI: Failure in running xray-core: exit status 23
INFO - XRAY: infra/conf/serial: Reading config: bin/config.j

also 3X-UI reports this

Failed to start: main: failed to load config files: [bin/config.json] > infra/conf: invalid field rule > infra/conf: neither outboundTag nor balancerTag is specified in routing rule

i'm using latest version (2.3.4), i think it might have happened after "apt update && apt upgrade" command, maybe this clue will help.

Failed to start: main: failed to load config files: [bin/config.json] > encoding/hex: invalid byte: U+002D '-'

My xray says this, so what can I do to fix it?

<!-- gh-comment-id:2152450059 --> @duxngkun commented on GitHub (Jun 6, 2024): > same thing, reinstalled the whole panel, it worked for like 10 minutes. > > > ERROR - X-UI: Failure in running xray-core: exit status 23 > > INFO - XRAY: infra/conf/serial: Reading config: bin/config.j > > also 3X-UI reports this > > ``` > Failed to start: main: failed to load config files: [bin/config.json] > infra/conf: invalid field rule > infra/conf: neither outboundTag nor balancerTag is specified in routing rule > ``` > > i'm using latest version (2.3.4), i think it might have happened after "apt update && apt upgrade" command, maybe this clue will help. `Failed to start: main: failed to load config files: [bin/config.json] > encoding/hex: invalid byte: U+002D '-'` My xray says this, so what can I do to fix it?
Author
Owner

@SteeledOlaf commented on GitHub (Jun 7, 2024):

UPD

It works again just fine, just had to reinstall the whole panel and click "Reset to default" button.
Снимок экрана 2024-06-07 162441

<!-- gh-comment-id:2154837228 --> @SteeledOlaf commented on GitHub (Jun 7, 2024): UPD It works again just fine, just had to reinstall the whole panel and click "Reset to default" button. ![Снимок экрана 2024-06-07 162441](https://github.com/MHSanaei/3x-ui/assets/162361179/2dcf7fbd-eae8-49f6-9182-6d338d2b00c2)
Author
Owner

@mohsenjokar commented on GitHub (Jun 16, 2024):

Just delete last inbound, especially on port 443

<!-- gh-comment-id:2171933353 --> @mohsenjokar commented on GitHub (Jun 16, 2024): Just delete last inbound, especially on port 443
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#1631
No description provided.