v2ray
v2ray copied to clipboard
Failed at step CAPABILITIES spawning /usr/bin/env: Invalid argument v2ray start Failed
v2ray start successfully, but status of v2ray do not run.

[root@ConsciousUnrealistic-VM bin]# journalctl -xe
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: v2ray.service holdoff time over, scheduling restart.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: Stopped V2Ray Service.
-- Subject: Unit v2ray.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit v2ray.service has finished shutting down.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: Started V2Ray Service.
-- Subject: Unit v2ray.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit v2ray.service has finished starting up.
--
-- The start-up result is done.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[3476]: Failed at step CAPABILITIES spawning /usr/bin/env: Invalid argument
-- Subject: Process /usr/bin/env could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /usr/bin/env could not be executed and failed.
--
-- The error number returned by this process is 22.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: v2ray.service: main process exited, code=exited, status=218/CAPABILITIES
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: Unit v2ray.service entered failed state.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: v2ray.service failed.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: v2ray.service holdoff time over, scheduling restart.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: Stopped V2Ray Service.
-- Subject: Unit v2ray.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit v2ray.service has finished shutting down.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: Started V2Ray Service.
-- Subject: Unit v2ray.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit v2ray.service has finished starting up.
--
-- The start-up result is done.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[3478]: Failed at step CAPABILITIES spawning /usr/bin/env: Invalid argument
-- Subject: Process /usr/bin/env could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /usr/bin/env could not be executed and failed.
--
-- The error number returned by this process is 22.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: v2ray.service: main process exited, code=exited, status=218/CAPABILITIES
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: Unit v2ray.service entered failed state.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: v2ray.service failed.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: v2ray.service holdoff time over, scheduling restart.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: Stopped V2Ray Service.
-- Subject: Unit v2ray.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit v2ray.service has finished shutting down.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: start request repeated too quickly for v2ray.service
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: Failed to start V2Ray Service.
-- Subject: Unit v2ray.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit v2ray.service has failed.
--
-- The result is failed.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: Unit v2ray.service entered failed state.
Jan 19 01:14:23 ConsciousUnrealistic-VM systemd[1]: v2ray.service failed.
@shuai102102
run below command to fix!
sed -i '/Capabili/d' /lib/systemd/system/v2ray.service
systemctl daemon-reload
systemctl restart v2ray