unable to read config from stdin / /dev/stdin

Author: divinity76Created Apr 22, 2022Updated Jun 17, 2026
Labelsenhancement

Please answer these questions before submitting your issue. Thanks!

What version of shadowsocks-libev are you using?

shadowsocks-libev 3.3.4 (probably an outdated version, it's whatever ships with Ubuntu 20.04, but because nobody has complained here before about /dev/stdin, i presume nobody has fixed it either)

What operating system are you using?

Ubuntu 20.04

What did you do?

root@x2ratma:/home/hans# echo '{"server":["0.0.0.0"]}' | ss-server -c - 2022-04-22 09:21:46 ERROR: Invalid config path. root@x2ratma:/home/hans# echo '{"server":["0.0.0.0"]}' | ss-server -c /dev/stdin 2022-04-22 09:22:30 ERROR: Invalid config path.

What did you expect to see?

loading the config, i guess?

What did you see instead?

ERROR: Invalid config path.

What is your config in detail (with all sensitive info masked)?

{"server":["0.0.0.0"]}

Source: shadowsocks/shadowsocks-libev