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

ss-server doesn't start with init-scripts when obfs-server enabled in config #1082

Closed
epizza opened this issue Jan 16, 2017 · 3 comments
Closed

Comments

@epizza
Copy link

epizza commented Jan 16, 2017

Please answer these questions before submitting your issue. Thanks!

What version of shadowsocks-libev are you using?

2.6.2

What operating system are you using?

Ubuntu 14.04.5 LTS

What did you do?

service shadowsocks-libev start

What did you expect to see?

ss-server run

What did you see instead?

Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: using tcp fast open
Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: onetime authentication enabled
Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: plugin "obfs-server" enabled
Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: UDP relay enabled
Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: initializing ciphers... chacha20
Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: tcp port reuse enabled
Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: tcp server listening at 127.0.0.1:21535
Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: udp port reuse enabled
Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: udp server listening at 0.0.0.0:1234
Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: running from root user
Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: plugin service exit unexpectedly
Jan 16 13:03:26 hk-az /usr/bin/ss-server[54702]: closed gracefully
root@hk-az:~# ss-server -c /etc/shadowsocks-libev/config.json.bak -v
 2017-01-16 13:12:06 INFO: using tcp fast open
 2017-01-16 13:12:06 INFO: onetime authentication enabled
 2017-01-16 13:12:06 INFO: plugin "obfs-server" enabled
 2017-01-16 13:12:06 INFO: UDP relay enabled
 2017-01-16 13:12:06 INFO: initializing ciphers... chacha20
 2017-01-16 13:12:06 INFO: tcp port reuse enabled
 2017-01-16 13:12:06 INFO: tcp server listening at 127.0.0.1:18699
 2017-01-16 13:12:06 INFO: udp port reuse enabled
 2017-01-16 13:12:06 INFO: udp server listening at 0.0.0.0:1234
 2017-01-16 13:12:06 INFO: running from root user
 2017-01-16 13:12:06 [simple-obfs] INFO: obfuscating enabled
 2017-01-16 13:12:06 [simple-obfs] INFO: tcp port reuse enabled
 2017-01-16 13:12:06 [simple-obfs] INFO: listening at 0.0.0.0:1234
 2017-01-16 13:12:06 [simple-obfs] INFO: running from root user

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

{
    "server": "0.0.0.0",
    "server_port": 1234,
    "password": "password",
    "local_address": "127.0.0.1",
    "local_port": 4321,
    "timeout": 3600,
    "method": "chacha20",
    "auth": true,
    "fast_open": true,
    "mode": "tcp_and_udp",
    "plugin": "obfs-server",
    "plugin_opts": "obfs=http"
}
@madeye
Copy link

madeye commented Jan 16, 2017

Could you run which obfs-server? Please make sure obfs-server located at /usr/bin/.

@epizza
Copy link
Author

epizza commented Jan 16, 2017

OK I get it, thank you.

root@hk-az:~# which obfs-server
/usr/local/bin/obfs-server
root@hk-az:~# ln -s /usr/local/bin/obfs-server /usr/bin
root@hk-az:~# service shadowsocks-libev restart
root@hk-az:~# cat /var/log/syslog

Jan 16 13:35:19 hk-az /usr/bin/ss-server[56375]: using tcp fast open
Jan 16 13:35:19 hk-az /usr/bin/ss-server[56375]: onetime authentication enabled
Jan 16 13:35:19 hk-az /usr/bin/ss-server[56375]: plugin "obfs-server" enabled
Jan 16 13:35:19 hk-az /usr/bin/ss-server[56375]: UDP relay enabled
Jan 16 13:35:19 hk-az /usr/bin/ss-server[56375]: initializing ciphers... chacha20
Jan 16 13:35:19 hk-az /usr/bin/ss-server[56375]: tcp port reuse enabled
Jan 16 13:35:19 hk-az /usr/bin/ss-server[56375]: tcp server listening at 127.0.0.1:61361
Jan 16 13:35:19 hk-az /usr/bin/ss-server[56375]: udp port reuse enabled
Jan 16 13:35:19 hk-az /usr/bin/ss-server[56375]: udp server listening at 0.0.0.0:1443
Jan 16 13:35:19 hk-az /usr/bin/ss-server[56375]: running from root user

@whudwl
Copy link

whudwl commented Jul 17, 2017

saved my day.

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

3 participants