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

是不是都用不了了,这个代码,显示未运行,并且连接失败 #923

Closed
WZL233 opened this issue Sep 8, 2022 · 41 comments
Closed

Comments

@WZL233
Copy link

WZL233 commented Sep 8, 2022

● v2ray.service - V2Ray Service
Loaded: loaded (/lib/systemd/system/v2ray.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-09-07 23:09:07 CST; 9min ago
Docs: https://www.v2ray.com/
https://www.v2fly.org/
Process: 23193 ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json (code=exited, status=2)
Main PID: 23193 (code=exited, status=2)
CPU: 16ms

Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: v2ray.service: Failed with result 'exit-code'.
Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: v2ray.service: Scheduled restart job, restart counter is at 5.
Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: Stopped V2Ray Service.
Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: v2ray.service: Start request repeated too quickly.
Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: v2ray.service: Failed with result 'exit-code'.
Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: Failed to start V2Ray Service.

@WZL233
Copy link
Author

WZL233 commented Sep 8, 2022

日志显示这样
root@ip-172-31-45-215:~# journalctl -u v2ray
-- Journal begins at Wed 2022-09-07 16:11:45 CST, ends at Wed 2022-09-07 23:38:45 CST. --
Sep 07 16:47:28 ip-172-31-45-215 systemd[1]: Started V2Ray Service.
Sep 07 16:47:28 ip-172-31-45-215 env[11301]: flag provided but not defined: -config
Sep 07 16:47:28 ip-172-31-45-215 env[11301]: Usage of /usr/bin/v2ray/v2ray:
Sep 07 16:47:28 ip-172-31-45-215 systemd[1]: v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 07 16:47:28 ip-172-31-45-215 systemd[1]: v2ray.service: Failed with result 'exit-code'.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Scheduled restart job, restart counter is at 1.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: Stopped V2Ray Service.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: Started V2Ray Service.
Sep 07 16:47:29 ip-172-31-45-215 env[11307]: flag provided but not defined: -config
Sep 07 16:47:29 ip-172-31-45-215 env[11307]: Usage of /usr/bin/v2ray/v2ray:
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Failed with result 'exit-code'.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Scheduled restart job, restart counter is at 2.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: Stopped V2Ray Service.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: Started V2Ray Service.
Sep 07 16:47:29 ip-172-31-45-215 env[11311]: flag provided but not defined: -config
Sep 07 16:47:29 ip-172-31-45-215 env[11311]: Usage of /usr/bin/v2ray/v2ray:
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Failed with result 'exit-code'.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Scheduled restart job, restart counter is at 3.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: Stopped V2Ray Service.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: Started V2Ray Service.
Sep 07 16:47:29 ip-172-31-45-215 env[11315]: flag provided but not defined: -config
Sep 07 16:47:29 ip-172-31-45-215 env[11315]: Usage of /usr/bin/v2ray/v2ray:
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Failed with result 'exit-code'.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Scheduled restart job, restart counter is at 4.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: Stopped V2Ray Service.
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: Started V2Ray Service.
Sep 07 16:47:29 ip-172-31-45-215 env[11319]: flag provided but not defined: -config
Sep 07 16:47:29 ip-172-31-45-215 env[11319]: Usage of /usr/bin/v2ray/v2ray:
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 07 16:47:29 ip-172-31-45-215 systemd[1]: v2ray.service: Failed with result 'exit-code'.
Sep 07 16:47:30 ip-172-31-45-215 systemd[1]: v2ray.service: Scheduled restart job, restart counter is at 5.
Sep 07 16:47:30 ip-172-31-45-215 systemd[1]: Stopped V2Ray Service.
Sep 07 16:47:30 ip-172-31-45-215 systemd[1]: v2ray.service: Start request repeated too quickly.
Sep 07 16:47:30 ip-172-31-45-215 systemd[1]: v2ray.service: Failed with result 'exit-code'.
Sep 07 16:47:30 ip-172-31-45-215 systemd[1]: Failed to start V2Ray Service.
Sep 07 17:14:35 ip-172-31-45-215 systemd[1]: Started V2Ray Service.
Sep 07 17:14:35 ip-172-31-45-215 env[11475]: flag provided but not defined: -config

@dadnna3633
Copy link

我这也是同样的问题.
v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
从昨天下午开始 所有的安装都不行了..

@WZL233
Copy link
Author

WZL233 commented Sep 8, 2022

我这也是同样的问题. v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT 从昨天下午开始 所有的安装都不行了..

的确啊,昨天下午连续十几个实例都不行,最后用别的脚本可以成功,才知道是这个脚本坏了

@erwrwerwerqwe
Copy link

w

我这也是同样的问题。v2ray.service: 主进程退出, code=exited, status=2/INVALIDARGUMENT 从昨天下午开始所有的安装都行了..

确实啊,最后一个实例行,最后一个单独的脚本可以成功了,才知道是这个异常的坏了

什么脚本可以发一下麻烦

@leeleelee333
Copy link

关键是怎么换脚本呢。。。

@devilq90
Copy link

devilq90 commented Sep 8, 2022

我这也是同样的问题. v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT 从昨天下午开始 所有的安装都不行了..

的确啊,昨天下午连续十几个实例都不行,最后用别的脚本可以成功,才知道是这个脚本坏了

哪个脚本啊

@tomphere
Copy link

tomphere commented Sep 8, 2022

我这也是同样的问题. v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT 从昨天下午开始 所有的安装都不行了..

的确啊,昨天下午连续十几个实例都不行,最后用别的脚本可以成功,才知道是这个脚本坏了

麻烦能提供一下脚本吗?

@vipusername
Copy link

● v2ray.service - V2Ray Service Loaded: loaded (/lib/systemd/system/v2ray.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2022-09-07 23:09:07 CST; 9min ago Docs: https://www.v2ray.com/ https://www.v2fly.org/ Process: 23193 ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json (code=exited, status=2) Main PID: 23193 (code=exited, status=2) CPU: 16ms

Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: v2ray.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: v2ray.service: Failed with result 'exit-code'. Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: v2ray.service: Scheduled restart job, restart counter is at 5. Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: Stopped V2Ray Service. Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: v2ray.service: Start request repeated too quickly. Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: v2ray.service: Failed with result 'exit-code'. Sep 07 23:09:07 ip-172-31-45-215 systemd[1]: Failed to start V2Ray Service.

我的也是的,同样的脚本以前可以用,最近全部不行,试了好多都用不了,查看v2ray状态:未在运行。是什么原因?

@13544171247
Copy link

你试试是不是vps ping不通gitgub.com 我是昨天下午才这样的,问了vps技术,说是昨天github官网发布了公告,但是我的还没恢复

PING github.com (192.30.255.113) 56(84) bytes of data.
^C
--- github.com ping statistics ---

@aaron5551
Copy link

PING github.com (140.82.112.3) 56(84) bytes of data.
^C
--- github.com ping statistics ---
212 packets transmitted, 0 received, 100% packet loss, time 216045ms

我也是这个情况
要不再等等看吧
请问,github官网的公告在哪看?

@WZL233
Copy link
Author

WZL233 commented Sep 8, 2022

知道问题在哪里了,他更新了版本,但是版本号更新错了

V2Ray 版本: v / V2Ray 状态: 未在运行

@qsxazcv
Copy link

qsxazcv commented Sep 8, 2022

知道问题在哪里了,他更新了版本,但是版本号更新错了

V2Ray 版本: v / V2Ray 状态: 未在运行

我不小心更新了 现在也启动不了 不知道怎么来修复它

@13544171247
Copy link

13544171247 commented Sep 8, 2022

PING github.com (140.82.112.3) 56(84) bytes of data. ^C --- github.com ping statistics --- 212 packets transmitted, 0 received, 100% packet loss, time 216045ms

我也是这个情况 要不再等等看吧 请问,github官网的公告在哪看?

https://www.githubstatus.com/incidents/pz0bvrjx9ztp

已经恢复了
PING github.com (192.30.255.113) 56(84) bytes of data.
64 bytes from lb-192-30-255-113-sea.github.com (192.30.255.113): icmp_seq=1 ttl=52 time=25.7 ms
64 bytes from lb-192-30-255-113-sea.github.com (192.30.255.113): icmp_seq=2 ttl=52 time=25.7

@jason0809
Copy link

知道问题在哪里了,他更新了版本,但是版本号更新错了

V2Ray 版本: v / V2Ray 状态: 未在运行

@WZL233 请问有解决办法吗?

@Yang-Zhuo95
Copy link

Yang-Zhuo95 commented Sep 8, 2022

vim /usr/lib/systemd/system/v2ray.service

把ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json
就是config前面加个run

systemctl daemon-reload
systemctl restart v2ray

@vipusername
Copy link

知道问题在哪里了,他更新了版本,但是版本号更新错了

V2Ray 版本: v / V2Ray 状态: 未在运行

@WZL233 请问有解决办法吗?

#923 (comment)
这个可用,进去只能选第一个有效,其它的无效

@vipusername
Copy link

知道问题在哪里了,他更新了版本,但是版本号更新错了

V2Ray 版本: v / V2Ray 状态: 未在运行

@WZL233 请问有解决办法吗?

#923 (comment) 这个可用,进去只能选第一个有效,其它的无效

#923 (comment)

知道问题在哪里了,他更新了版本,但是版本号更新错了

V2Ray 版本: v / V2Ray 状态: 未在运行

@WZL233 请问有解决办法吗?

bash <(curl -s -L #923 (comment)) 这个可用,进去只能选第一个有效,其它的无效
image

@qsxazcv
Copy link

qsxazcv commented Sep 8, 2022

vim /usr/lib/systemd/system/v2ray.service

把ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json 就是config前面加个run

systemctl daemon-reload systemctl restart v2ray

改了 可以启动了 但是还是连接不了 不知道为什么

@leeleelee333
Copy link

vim /usr/lib/systemd/system/v2ray.service
把ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json 就是config前面加个run
systemctl daemon-reload systemctl restart v2ray

改了 可以启动了 但是还是连接不了 不知道为什么

大佬我是新手,想问一下这个命令行改完以后怎么退出到能输入systemctl daemon-reload systemctl restart v2ray这行命令的地方呢?

@qsxazcv
Copy link

qsxazcv commented Sep 8, 2022

vim /usr/lib/systemd/system/v2ray.service
把ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json 就是config前面加个run
systemctl daemon-reload systemctl restart v2ray

改了 可以启动了 但是还是连接不了 不知道为什么

大佬我是新手,想问一下这个命令行改完以后怎么退出到能输入systemctl daemon-reload systemctl restart v2ray这行命令的地方呢?

:wq!

@leeleelee333
Copy link

vim /usr/lib/systemd/system/v2ray.service
把ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json 就是config前面加个run
systemctl daemon-reload systemctl restart v2ray

改了 可以启动了 但是还是连接不了 不知道为什么

大佬我是新手,想问一下这个命令行改完以后怎么退出到能输入systemctl daemon-reload systemctl restart v2ray这行命令的地方呢?

:wq!

这是啥意思?输入 wq 和叹号?

@qsxazcv
Copy link

qsxazcv commented Sep 8, 2022

vim /usr/lib/systemd/system/v2ray.service
把ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json 就是config前面加个run
systemctl daemon-reload systemctl restart v2ray

改了 可以启动了 但是还是连接不了 不知道为什么

大佬我是新手,想问一下这个命令行改完以后怎么退出到能输入systemctl daemon-reload systemctl restart v2ray这行命令的地方呢?

我搞完可以启动 但是连接不了 不知道哪里出问题了

@Yang-Zhuo95
Copy link

vim /usr/lib/systemd/system/v2ray.service
把ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json 就是config前面加个run
systemctl daemon-reload systemctl restart v2ray

改了 可以启动了 但是还是连接不了 不知道为什么

大佬我是新手,想问一下这个命令行改完以后怎么退出到能输入systemctl daemon-reload systemctl restart v2ray这行命令的地方呢?

:wq!

这是啥意思?输入 wq 和叹号?
左上角ESC
输入 冒号wq
:wq

@Yang-Zhuo95
Copy link

vim /usr/lib/systemd/system/v2ray.service
把ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json 就是config前面加个run
systemctl daemon-reload systemctl restart v2ray

改了 可以启动了 但是还是连接不了 不知道为什么

大佬我是新手,想问一下这个命令行改完以后怎么退出到能输入systemctl daemon-reload systemctl restart v2ray这行命令的地方呢?

我搞完可以启动 但是连接不了 不知道哪里出问题了

ip可以正常访问吗? 先ping一下ip

@leeleelee333
Copy link

vim /usr/lib/systemd/system/v2ray.service
把ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json 就是config前面加个run
systemctl daemon-reload systemctl restart v2ray

改了 可以启动了 但是还是连接不了 不知道为什么

大佬我是新手,想问一下这个命令行改完以后怎么退出到能输入systemctl daemon-reload systemctl restart v2ray这行命令的地方呢?

:wq!

这是啥意思?输入 wq 和叹号?
左上角ESC
输入 冒号wq
:wq

谢啦!

@qsxazcv
Copy link

qsxazcv commented Sep 8, 2022

vim /usr/lib/systemd/system/v2ray.service
把ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json 就是config前面加个run
systemctl daemon-reload systemctl restart v2ray

改了 可以启动了 但是还是连接不了 不知道为什么

大佬我是新手,想问一下这个命令行改完以后怎么退出到能输入systemctl daemon-reload systemctl restart v2ray这行命令的地方呢?

我搞完可以启动 但是连接不了 不知道哪里出问题了

ip可以正常访问吗? 先ping一下ip

可以的,我就是今天手贱升级了下版本 不行了,启动不了。。

@leeleelee333
Copy link

vim /usr/lib/systemd/system/v2ray.service
把ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json 就是config前面加个run
systemctl daemon-reload systemctl restart v2ray

改了 可以启动了 但是还是连接不了 不知道为什么

大佬我是新手,想问一下这个命令行改完以后怎么退出到能输入systemctl daemon-reload systemctl restart v2ray这行命令的地方呢?

我搞完可以启动 但是连接不了 不知道哪里出问题了

ip可以正常访问吗? 先ping一下ip

可以的,我就是今天手贱升级了下版本 不行了,启动不了。。

我这边可以了!在 v2rayNG 那 restart 一下,然后修改了shadowrocket 的端口,居然可以了。。。泪奔

@CangMang1
Copy link

还是不行。。。还是启动不了

@Yang-Zhuo95
Copy link

systemctl daemon-reload
有没有执行
systemctl daemon-reload
或者执行
systemctl status v2ray
看下是什么错误
v2fly/fhs-install-v2ray#243

@AskedYORK
Copy link

systemctl daemon-reload
有没有执行
systemctl daemon-reload
或者执行
systemctl status v2ray
看下是什么错误
v2fly/fhs-install-v2ray#243

端口被占用了,原来的服务没有stop掉

@jwang287
Copy link

jwang287 commented Sep 8, 2022

用不了

@Sanjogahara
Copy link

有没有大神输入一下退版本的行命令?

@lanruo942
Copy link

有没有大神输入一下退版本的行命令?

请参考这里的回答:
v2fly/fhs-install-v2ray#243 (comment)

@233boy
Copy link
Owner

233boy commented Sep 8, 2022

@AskedYORK
@jason0809
@lanruo942
@Sanjogahara
@WZL233

请使用如下命令修复:
v2ray update.sh; v2ray restart

@CangMang1 CangMang1 mentioned this issue Sep 9, 2022
@tomphere
Copy link

tomphere commented Sep 9, 2022

v2ray restart

更新之后状态还是启动失败
image

@233boy
Copy link
Owner

233boy commented Sep 9, 2022

@tomphere

你执行 v2ray reload; v2ray restart; v2ray status 看看

还是不行,重装解决;
v2ray reinstall

@WZL233
Copy link
Author

WZL233 commented Sep 9, 2022

好像是系统版本号错了,重装了还是没解决哦

@aawwsslll
Copy link

aawwsslll commented Sep 9, 2022

因为v2ray核心刚刚才升级到5.0的版本,目前还是不太稳定,在用4.5的不建议这么急着升级。等一两个月后稳定了再说。

编辑:
新版管理脚本有bug,我没升级v2ray核心,只升级了v2ray管理脚本3.6 现在也报错了

@233boy
Copy link
Owner

233boy commented Sep 9, 2022

因为v2ray核心刚刚才升级到5.0的版本,目前还是不太稳定,在用4.5的不建议这么急着升级。等一两个月后稳定了再说。

编辑: 新版管理脚本有bug,我没升级v2ray核心,只升级了v2ray管理脚本3.6 现在也报错了

其实得两个都升级才行……我再修一下吧

@233boy
Copy link
Owner

233boy commented Sep 9, 2022

@aawwsslll
@WZL233
你把管理脚本,跟核心版本都升级一下看看;还会不会出错?
v2ray U; v2ray u; v2ray restart

@aba666666
Copy link

image
这是什么意思,启动不了,官方的安装脚本也这样

@233boy 233boy closed this as completed May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests