Shadowsocks-libev: service cannot start with a config file

Created on 10 Feb 2017  ·  14Comments  ·  Source: shadowsocks/shadowsocks-libev

What version of shadowsocks-libev are you using?

shadowsocks-libev 3.0.0

What operating system are you using?

Arch Linux x86_64

What did you do?

I try to start shadawsocks-liev(ss-server, ss-local) with a config file. The command line:

ss-server -c shadowsocks.json

What did you expect to see?

Started info.

What did you see instead?

An help message just like excueted ss-server -h.

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

{
        "server": "0.0.0.0:1234",
        "local_address": "127.0.0.1",
        "loccal_port": 1080,
        "password": "mypassword",
        "time_out": 3000,
        "method": "aes-256-cfb",
}

All 14 comments

{
        "server": "0.0.0.0:1234",
        "local_address": "127.0.0.1",
        "loccal_port": 1080,
        "password": "mypassword",
        "time_out": 3000,
        "method": "aes-256-cfb"
}

any wrong?

json syntax invalid,
{
"server": "0.0.0.0:1234",
"local_address": "127.0.0.1",
"loccal_port": 1080,
"password": "mypassword",
"time_out": 3000,
"method": "aes-256-cfb"
}

It is not an syntax error, I just try

{
        "server": "0.0.0.0",
        "server_port": "1234",
        "local_address": "127.0.0.1",
        "loccal_port": 1080,
        "password": "mypassword",
        "time_out": 3000,
        "method": "aes-256-cfb"
}

It works.
But I want to config multiport with diff passwords, likt this:

{
        "server": "0.0.0.0",
        "local_address": "127.0.0.1",
        "loccal_port": 1080,
        "port_password": 
        {
                "8003": "password1",
                "8004": "password2"
        },
        "time_out": 3000,
        "method": "aes-256-cfb",
        "fast_open": false
}

It can not start.

"port_password" was never ever supported by ss-libev.

so what can i used to replace "port_password"? The doc never note it.

Doc (man page) said you can't do it. Please use multiple config files instead.

ok, thank you.

I can not find any infomation you mention above by man ss-server or man shadowsocks-libev, can you tell me it in whitch section?

Try ss-manager -c config.json --manager-address 127.0.0.1:9090

OK maybe I didn't memorize it well. Thing about "port_password" can be repeatedly found in issues, like #5, #65, #383, #385, #444, #543, #684, #859, #1023. Maybe we should update documentation and say "port_password" can only be used by ss-manager and not understood by ss-server.

@hosiet I just remembered that I'd implemented it... So, it's my bad.

yes, it just works with ss-maager. the doc should be update

thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

viennadd picture viennadd  ·  3Comments

mcmxciv picture mcmxciv  ·  3Comments

alfal picture alfal  ·  3Comments

qianguozheng picture qianguozheng  ·  4Comments

rule2c picture rule2c  ·  4Comments