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

Please update your config.json file on server side after upgrading shadowsocks-libev to 3.2.0 #831

Closed
iROCKBUNNY opened this issue Jun 4, 2018 · 14 comments

Comments

@iROCKBUNNY
Copy link

Well, ironically, this is not a ShadowsocksX-NG issue, but it is a critical one! So I opened this issue to provide a simple work-around on Ubuntu 16.04 LTS.

After upgrading shadowsocks-libev to 3.2.0 on your server side, you might as well update your config.json file.

On Ubuntu 16.04 LTS, it is usually located at /etc/shadowsocks-libev/config.json. If you have a previous version installed, like 3.1.3, the config.json file would not update, thus causing your shadowsocks-libev connection invalid argument errors.

The work-around is simple, just replace your config.json file as folllows:

{
    "server": "your.server.i.p",
    "server_port": port_number_like_8388,
    "local_port": 1080,
    "password": "some_password_nobody_knows",
    "timeout": 60,
    "method": "chacha20-ietf-poly1305"
}

Good luck!

@qiuyuzhou
Copy link
Collaborator

My server config file is always in this format. What is the wrong format?

@iROCKBUNNY
Copy link
Author

@qiuyuzhou It came with an additional local key in the json dict, in the 3.1.3 release.

@qiuyuzhou
Copy link
Collaborator

Do you mean local_port is a required key?

@iROCKBUNNY
Copy link
Author

It looks like this in the 3.1.3 configuration file.

{
    "server": "your.server.i.p",
    "server_port": port_number_like_8388,
    "local": "your.local.i.p",
    "local_port": 1080,
    "password": "some_password_nobody_knows",
    "timeout": 300,
    "method": "chacha20-ietf-poly1305",
    "fast_open": false
}

@qiuyuzhou
Copy link
Collaborator

You mean remove the local key-value in config then it is work?

@iROCKBUNNY
Copy link
Author

@qiuyuzhou as well as the fast_open key.

@zhouxl
Copy link

zhouxl commented Jun 4, 2018

{
"server":"0.0.0.0",
"server_port":443,
"password":"",
"method":"chacha20-ietf-poly1305",
"timeout":1800,
"udp_timeout":1800,
"plugin":"obfs-server",
"plugin_opts":"obfs=tls;fast-open;failover=mzstatic.com:443",
"fast_open":true,
"reuse_port":true,
"nofile":512000,
"nameserver":"8.8.8.8,8.8.4.4",
"dscp":"EF",
"mode":"tcp_and_udp",
"mtu":1500,
"mptcp":false,
"ipv6_first":false,
"use_syslog":true,
"no_delay":true,
}

but it not work

@tkizm1
Copy link

tkizm1 commented Jun 5, 2018

now mac --fast-open make sense?

@qiuyuzhou
Copy link
Collaborator

qiuyuzhou commented Jun 5, 2018

@tkisme As I known, --fast-open is depend on the feature of linux kernel.

@qiuyuzhou
Copy link
Collaborator

@zhouxl Please try without plugin first.

@zhouxl
Copy link

zhouxl commented Jun 6, 2018

@qiuyuzhou I need the plugin, I notice in 1.8.0 will install plugin,when release it.

@zhouyong1d1
Copy link

@iROCKBUNNY 楼主咋搞

@iROCKBUNNY
Copy link
Author

@zhouyong1d1 Please follow the instructions described above. Good luck.

@zhouyong1d1
Copy link

@iROCKBUNNY I will pay your time value.Only solve the problem.My computer is Mac,not Ubuntu

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

5 participants