shadowsocks / v2ray-plugin

A SIP003 plugin based on v2ray
MIT License
2.7k stars 576 forks source link

Can't start shadowsocks-rust as service via systemctl with v2ray-plugin activated #323

Open Trogvars opened 1 month ago

Trogvars commented 1 month ago

Can't start shadowsocks-rust as service via systemctl with v2ray-plugin activated. Says it can''t find file, certificate i guess.

Sep 28 04:41:25 vpn4 ssserver[52693]: 2024-09-28T04:41:25.447157224Z INFO shadowsocks server 1.21.0 build 2024-09-22T14:50:01.940728947+00:00 Sep 28 04:41:25 vpn4 ssserver[52693]: 2024-09-28T04:41:25.44925582Z ERROR failed to start plugin "v2ray-plugin" for server 0.0.0.0:8388, err: No such file or directory (os error 2) Sep 28 04:41:25 ssserver[52693]: server aborted with No such file or directory (os error 2)

But it perfectly run under root user.

{ "server": "0.0.0.0", "server_port": 8388, "password": "Nu8ahch1weiPahn4Vo1e", "method": "chacha20-ietf-poly1305", "timeout": 300, "mode": "tcp_and_udp", "plugin": "v2ray-plugin", "plugin_opts": "server;tls;cert=/opt/ss/fullchain.pem;key=/opt/ss/privkey.pem;host=my.domain.com;loglevel=debug;" }

Trogvars commented 1 month ago

changed path of plugin to full path "plugin": "/opt/ss/v2ray-plugin", and it worked!