Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xray exit code 2 #1248

Open
LoicMaster opened this issue May 10, 2024 · 2 comments
Open

xray exit code 2 #1248

LoicMaster opened this issue May 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@LoicMaster
Copy link

Describe the bug
Xray server halts after adding an inbound, restarts crash with the following message "github.com/xtls/xray-core/main/main.go:22"

To Reproduce
Steps to reproduce the behavior:

  1. Go to Inbounds
  2. Create a Vless - xtls inbound
  3. Try to connect (Connection refused)
  4. Restart xray server (error message)

Expected behavior
Inbound should accept connections

Additional context
Latest release from dockerhub

Logs
2024/05/10 14:10:34 ERROR - X-UI: Failure in running xray-core: exit status 2
2024/05/10 14:10:34 DEBUG - XRAY: github.com/xtls/xray-core/infra/conf.(*Config).Build(0xc000196a80)
2024/05/10 14:10:34 DEBUG - XRAY: , 0x2b?}, {0xc0000457e8?, 0xc000168890?, 0x0?})
2024/05/10 14:10:34 DEBUG - XRAY: ?
2024/05/10 14:10:34 DEBUG - XRAY: 0xc0000b6c00
2024/05/10 14:10:34 DEBUG - XRAY: ,
2024/05/10 14:10:34 DEBUG - XRAY: ?
2024/05/10 14:10:34 DEBUG - XRAY: 0xc00021ef78
2024/05/10 14:10:34 DEBUG - XRAY: {
2024/05/10 14:10:34 DEBUG - XRAY: (
2024/05/10 14:10:34 DEBUG - XRAY: encoding/hex.Decode
2024/05/10 14:10:34 DEBUG - XRAY: ]:
2024/05/10 14:10:34 DEBUG - XRAY: running
2024/05/10 14:10:34 DEBUG - XRAY: [
2024/05/10 14:10:34 DEBUG - XRAY: 1
2024/05/10 14:10:34 DEBUG - XRAY: goroutine
2024/05/10 14:10:34 DEBUG - XRAY: runtime error: index out of range [8] with length 8
2024/05/10 14:10:34 DEBUG - XRAY: panic:
2024/05/10 14:10:34 INFO - XRAY: infra/conf/serial: Reading config: bin/config.json

@LoicMaster LoicMaster added the bug Something isn't working label May 10, 2024
@pulsarice
Copy link

xtls security is not supported in recent versions of xray.
You can use vless+tcp+(tls or reality) and set user flow to xtls-rprx-vision to get the latest security features of xray.

@alireza0
Copy link
Owner

@LoicMaster
Please provide more information.
Which configuration do you use and by which version of x-ui/xray ?
Which type of configuration did you try to add ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants