mack-a / v2ray-agent

Xray、Tuic、hysteria2、sing-box 八合一一键脚本
https://www.592083.xyz
GNU Affero General Public License v3.0
13.77k stars 4.49k forks source link

[BUG] 2.5.10 重新安装xray不会结束trojan-go进程导致重装失败 #204

Closed MFYDev closed 3 years ago

MFYDev commented 3 years ago

image

Xray 1.4.2 (Xray, Penetrates Everything.) Custom (go1.16.2 linux/amd64)
A unified platform for anti-censorship.
2021/06/28 17:01:45 Using confdir from arg: /etc/v2ray-agent/xray/conf
2021/06/28 17:01:45 [Info] infra/conf/serial: Reading config: /etc/v2ray-agent/xray/conf/00_log.json
2021/06/28 17:01:45 [Info] infra/conf/serial: Reading config: /etc/v2ray-agent/xray/conf/02_VLESS_TCP_inbounds.json
2021/06/28 17:01:45 [Info] infra/conf/serial: Reading config: /etc/v2ray-agent/xray/conf/03_VLESS_WS_inbounds.json
xctl> [ /etc/v2ray-agent/xray/conf/03_VLESS_WS_inbounds.json ] appended inbound with tag:  VLESSWS
2021/06/28 17:01:45 [Info] infra/conf/serial: Reading config: /etc/v2ray-agent/xray/conf/04_trojan_TCP_inbounds.json
xctl> [ /etc/v2ray-agent/xray/conf/04_trojan_TCP_inbounds.json ] appended inbound with tag:  trojanTCP
2021/06/28 17:01:45 [Info] infra/conf/serial: Reading config: /etc/v2ray-agent/xray/conf/05_VMess_WS_inbounds.json
xctl> [ /etc/v2ray-agent/xray/conf/05_VMess_WS_inbounds.json ] appended inbound with tag:  VMessWS
2021/06/28 17:01:45 [Info] infra/conf/serial: Reading config: /etc/v2ray-agent/xray/conf/06_VLESS_gRPC_inbounds.json
xctl> [ /etc/v2ray-agent/xray/conf/06_VLESS_gRPC_inbounds.json ] appended inbound with tag:  VLESSGRPC
2021/06/28 17:01:45 [Info] infra/conf/serial: Reading config: /etc/v2ray-agent/xray/conf/10_ipv4_outbounds.json
2021/06/28 17:01:45 [Info] infra/conf/serial: Reading config: /etc/v2ray-agent/xray/conf/11_dns.json
Failed to start: app/proxyman/inbound: failed to listen TCP on 31296 > transport/internet: failed to listen on address: 127.0.0.1:31296 > transport/internet/tcp: failed to listen TCP on 127.0.0.1:31296 > listen tcp 127.0.0.1:31296: bind: address already in use

必须手动结束trojan-go才可以

malikshi commented 3 years ago

the latest version/master version doesn't install trojan-go/trojan-gfw it's using trojan from Xray-core. you need to add/edit manually.

MFYDev commented 3 years ago

@malikshi Thanks for the reply.

I am aware of that the latest version does not install trojan-go anymore, but when we use the latest version to reinstall xray, this issue will happen.

So I am talking about making the reinstall process more thorough, which should make the uninstalling of trojan-go smooth. After all, we have to admit that not everyone always use the latest version to do fresh install every time, right?

malikshi commented 3 years ago

So I am talking about making the reinstall process more thorough

I see, yes some people prefer to update(reinstall) instead of fresh install every time newly released version. I am not a fan of trojan-go so I don't really know the configuration setting.

MFYDev commented 3 years ago

The solution is pretty easy in Ubuntu:

lsof -i:{trojan-go port number}

kill {PID}

Just made this feedback to let @mack-a know

mack-a commented 3 years ago

需要用stable版本卸载,再用最新的安装