-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
V2ray 5.1.0 unable to run as a systemd service #1956
Comments
Thank you, I rolled back to v4.45.0 with the command |
In your output: Your systemd unit is still using a wrong command. You should use |
处理方式1: |
Don't see any benefit of adding a 'run' to break the software, do not like breaking updates.
|
The issue is this was a fresh install. It's not working out the box. I understand that I can edit files to get it working. The problem is it's not working on a fresh install. Editing files shouldn't be necessary on a new install just to get it to work. |
I don't see anything wrong of the systemd script in the repo, it uses This is the repo for the v2ray itself, not for installation script or third party packages. Nothing here in this repo can install or configure the software for you, instead, it only provides all the necessary files (including the correct systemd script) for you to install. So it's an issue of the installation script you uses, not v2ray. Also, there is nothing wrong to introduce break changes in a major version update, on the contrary, that's exactly what's a major version update for. |
Well I installed from the script install-release.sh downloaded from the v2fly GitHub. I followed official documentation for install and this is the result of how it was setup. |
Me too, I used install-release.sh to do the updating, and it's just broken and cannot work any more, until reverted to an old version.
To me, the most important point to a software is backward compatibility, a good one does its job silently, without causing trouble to its users. |
I don't use the Now I wonder why the |
Install-release.sh is the official script from the v2fly documentation to install v2ray. So the issue appears to be in the script. |
Exactly, this is not the repo for the script, you got an error because of an install script, it's better to report the issue to the script instead.
|
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Hi, I just had the same |
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days |
What version of V2Ray are you using?
5.1.0
What's your scenario of using V2Ray?
I have installed a new server, and the script automatically installed v 5.1.0, unable to run v2ray as a service on Debian 10 Server.
What problems have you encountered?
Starting v2ray as a service exits with (code=exited, status=2). Full error is the following
Process: 1173 ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json (code=exited, status=2)
The problem is ExecStart. If I run the line
/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json
in terminal directly I get the following output:flag provided but not defined: -config Usage of /usr/local/bin/v2ray:
However if I run this
/usr/local/bin/v2ray run -c /usr/local/etc/v2ray/config.json
then v2ray will run.So I edited as root /etc/systemd/system/v2ray.service and changed the file to have the following line
ExecStart=/usr/local/bin/v2ray run -c /usr/local/etc/v2ray/config.json
I then ran the following
systemctl daemon-reload && systemctl restart v2ray
However when I run
systemctl status v2ray
I get the following output:Please note that it is defaulting back to
ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json
and not accepting my editedExecStart=/usr/local/bin/v2ray run -c /usr/local/etc/v2ray/config.json
What's your expectation?
v2ray should run as a service on the server, however unable to as ExeStart is defaulting back to a faulty launch command.
Please attach your configuration here
{
"inbounds": [{
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"port": 8388,
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "4a4a022b-a073-4094-899a-ca04a5c232cd",
"level": 1,
"alterId": 0,
"security": "auto"
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/websocket/"
}
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
},{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": ["geoip:private", "geoip:cn"],
"outboundTag": "block",
"protocol": ["bittorrent"]
}
]
}
}
If V2Ray cannot start up, please attach output from
--test
commandflag provided but not defined: -config
Usage of /usr/local/bin/v2ray:
The text was updated successfully, but these errors were encountered: