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.service: Failed #3402

Open
Martronic-SA opened this issue Jun 12, 2024 · 12 comments
Open

xray.service: Failed #3402

Martronic-SA opened this issue Jun 12, 2024 · 12 comments

Comments

@Martronic-SA
Copy link

Expected Behavior

Current Behavior

Specifications

  • OpenMPTCProuter version: 0.60-6.6
  • OpenMPTCProuter VPS version: Linux 6.1.0-21-amd64
  • OpenMPTCProuter VPS provider: ovh
  • OpenMPTCProuter platform: x86_64

Jun 12 11:57:14 de1 OMR-Service[2513829]: ss-server not detected, restart XRay
Jun 12 11:57:14 de1 systemd[1]: Started xray.service - XRay Service.
Jun 12 11:57:14 de1 xray[2513831]: Xray 1.8.6 (Xray, Penetrates Everything.) Custom (go1.21.5 linux/amd64)
Jun 12 11:57:14 de1 xray[2513831]: A unified platform for anti-censorship.
Jun 12 11:57:14 de1 xray[2513831]: 2024/06/12 11:57:14 [Info] infra/conf/serial: Reading config: /etc/xray/xray-server.json
Jun 12 11:57:14 de1 xray[2513831]: Failed to start: main: failed to load config files: [/etc/xray/xray-server.json] > infra/conf: shadowsocks 2022 (multi-user): only blake3-aes--gcm methods are supported
Jun 12 11:57:14 de1 systemd[1]: xray.service: Main process exited, code=exited, status=23/n/a
Jun 12 11:57:14 de1 systemd[1]: xray.service: Failed with result 'exit-code'.
Jun 12 11:57:18 de1 ss-server[838822]: getpeername: Transport endpoint is not connected
Jun 12 11:57:23 de1 ss-server[838822]: getpeername: Transport endpoint is not connected
Jun 12 11:57:27 de1 OMR-Service[2514601]: ss-server not detected, restart XRay
Jun 12 11:57:27 de1 systemd[1]: Started xray.service - XRay Service.
Jun 12 11:57:27 de1 xray[2514603]: Xray 1.8.6 (Xray, Penetrates Everything.) Custom (go1.21.5 linux/amd64)
Jun 12 11:57:27 de1 xray[2514603]: A unified platform for anti-censorship.
Jun 12 11:57:27 de1 xray[2514603]: 2024/06/12 11:57:27 [Info] infra/conf/serial: Reading config: /etc/xray/xray-server.json
Jun 12 11:57:27 de1 xray[2514603]: Failed to start: main: failed to load config files: [/etc/xray/xray-server.json] > infra/conf: shadowsocks 2022 (multi-user): only blake3-aes-
-gcm methods are supported
Jun 12 11:57:27 de1 systemd[1]: xray.service: Main process exited, code=exited, status=23/n/a
Jun 12 11:57:27 de1 systemd[1]: xray.service: Failed with result 'exit-code'.
Jun 12 11:57:28 de1 ss-server[838822]: getpeername: Transport endpoint is not connected
Jun 12 11:57:33 de1 ss-server[838822]: getpeername: Transport endpoint is not connected

@Ysurac
Copy link
Owner

Ysurac commented Jun 12, 2024

What is the result of uci show xray ?

@Martronic-SA
Copy link
Author

I don't understand the question, is this a command to execute?

uci show xray
-bash: uci: command not found

@Ysurac
Copy link
Owner

Ysurac commented Jun 12, 2024

hum sorry it's on VPS side.
I would need the file /etc/xray/xray-server.json (remove the password/id)

@Martronic-SA
Copy link
Author

Voici:
{
"log": {
"loglevel": "error",
"error": "/tmp/v2rayError.log"
},
"transport": {
"tcpSettings": {},
"wsSettings": {},
"kcpSettings": {
"mtu": 1460,
"tti": 10,
"uplinkCapacity": 100,
"downlinkCapacity": 100,
"congestion": false,
"readBufferSize": 8,
"writeBufferSize": 8
}
},
"inbounds": [
{
"tag": "omrin-tunnel",
"port": 65248,
"protocol": "vless",
"settings": {
"decryption": "none",
"clients": [
{
"id": "XXXXX",
"level": 0,
"alterId": 0,
"email": "openmptcprouter"
}
]
},
"streamSettings": {
"sockopt": {
"tcpMptcp": true,
"mark": 0
},
"network": "tcp",
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/etc/openvpn/ca/pki/issued/server.crt",
"keyFile": "/etc/openvpn/ca/pki/private/server.key"
}
]
}
}
},
{
"tag": "omrin-vmess-tunnel",
"port": 65250,
"protocol": "vmess",
"settings": {
"decryption": "none",
"clients": [
{
"id": "XXXXX",
"level": 0,
"alterId": 0,
"email": "openmptcprouter"
}
]
},
"streamSettings": {
"sockopt": {
"tcpMptcp": true,
"mark": 0
},
"network": "tcp",
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/etc/openvpn/ca/pki/issued/server.crt",
"keyFile": "/etc/openvpn/ca/pki/private/server.key"
}
]
}
}
},
{
"tag": "omrin-socks-tunnel",
"port": 65251,
"protocol": "socks",
"settings": {
"auth": "password",
"accounts": [
{
"pass": "XXXXX",
"user": "openmptcprouter"
}
]
},
"streamSettings": {
"sockopt": {
"tcpMptcp": true,
"mark": 0
},
"network": "tcp",
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/etc/openvpn/ca/pki/issued/server.crt",
"keyFile": "/etc/openvpn/ca/pki/private/server.key"
}
]
}
}
},
{
"tag": "omrin-trojan-tunnel",
"port": 65249,
"protocol": "trojan",
"settings": {
"clients": [
{
"password": "XXXXX",
"email": "openmptcprouter",
"level": 0
}
]
},
"streamSettings": {
"sockopt": {
"tcpMptcp": true,
"mark": 0
},
"network": "tcp",
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/etc/openvpn/ca/pki/issued/server.crt",
"keyFile": "/etc/openvpn/ca/pki/private/server.key"
}
]
}
}
},
{
"tag": "omrin-shadowsocks-tunnel",
"port": 65252,
"protocol": "shadowsocks",
"settings": {
"password": "t7yZ0XNlv8qbTGu1gnRcuZto9K5VpsjUqZArZSmhKng=",
"method": "2022-blake3-chacha20-poly1305",
"network": "tcp,udp",
"clients": [
{
"password": "s27d3h4EuyVu/n0gyGxKuEgaBb0iROpPQoFs+5ZWIiA=",
"email": "openmptcprouter"
}
]
},
"streamSettings": {
"sockopt": {
"tcpMptcp": true,
"mark": 0
},
"network": "tcp"
}
},
{
"listen": "127.0.0.1",
"port": 10086,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {
"userLevel": 0
},
"tag": "direct"
}
],
"routing": {
"rules": [
{
"type": "field",
"inboundTag": [
"omrin-tunnel",
"omrin-vless-reality",
"omrin-vmess-tunnel",
"omrin-socks-tunnel",
"omrin-trojan-tunnel"
],
"outboundTag": "OMRLan",
"domain": [
"full:omr.lan"
]
},
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
}
]
},
"reverse": {
"portals": [
{
"tag": "OMRLan",
"domain": "omr.lan"
}
]
},
"stats": {},
"api": {
"tag": "api",
"services": [
"HandlerService",
"LoggerService",
"StatsService"
]
},
"policy": {
"levels": {
"0": {
"uplinkOnly": 0,
"downlinkOnly": 0,
"bufferSize": 512,
"connIdle": 2400,
"statsUserUplink": true,
"statsUserDownlink": true
}
},
"system": {
"statsInboundUplink": true,
"statsInboundDownlink": true
}
}
}

@Ysurac
Copy link
Owner

Ysurac commented Jun 13, 2024

It's fixed in latest snapshot: chacha20 encryption is not supported for XRay Shadowsocks proxy so AES-256-GCM is used in all cases.

@Martronic-SA
Copy link
Author

Thank you very much the error is solved, now I have the error: getpeername: Transport endpoint is not connected
here is the configuration:
{
"server": "0.0.0.0",
"port_key": {
"65101": "XXX"
},
"local_port": 1081,
"mode": "tcp_and_udp",
"timeout": 1000,
"method": "aes-256-gcm",
"verbose": 0,
"ipv6_first": true,
"prefer_ipv6": false,
"fast_open": true,
"no_delay": true,
"reuse_port": true,
"mptcp": true,
"ebpf": 0,
"acl": "/etc/shadowsocks-libev/local.acl"
}

@Ysurac
Copy link
Owner

Ysurac commented Jun 13, 2024

You have this error on router side ? The error mean that some website can't be reached via the VPS.

@Martronic-SA
Copy link
Author

no on the vps, I am trying to resolve a connection problem to the vpn because on the router at regular intervals the router cannot reach the vpn

@Ysurac
Copy link
Owner

Ysurac commented Jun 13, 2024

As you are on kernel 6.6, set the proxy to Shadowsocks-Rust in System->OpenMPTCProuter, Wizard tab, "Advanced settings" checkbox.
Should be better than Shadowsocks-libev.
Your VPN is UDP or TCP ?

@Martronic-SA
Copy link
Author

VPN par défaut : Glorytun TCP et MPTCP sur VPN WireGuard

@Ysurac
Copy link
Owner

Ysurac commented Jun 13, 2024

Try with OpenVPN TCP (the new default VPN) and why are you using MPTP over VPN ? This is only a workaround when connections are blocking MPTCP.

(thanks for the donation)

@Martronic-SA
Copy link
Author

I have been using OpenMPTCProuter for a year with version 0.59.1-5.4 and its default configuration, which gave me complete satisfaction. I decided to update to version 0.60-6.6 and eventually reinstalled both the router and the VPS, which is a dedicated server.

Since making changes to OpenVPN TCP, it seems there are no more disconnections.

Donating is normal when there is a project we use regularly, and especially with someone who answers questions, we will support this project regularly.

A big thank you for your project and your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants