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

加载提示ERROR: Invalid config path #20

Closed
luckwang opened this issue Jan 15, 2017 · 7 comments
Closed

加载提示ERROR: Invalid config path #20

luckwang opened this issue Jan 15, 2017 · 7 comments

Comments

@luckwang
Copy link

插件模式下加载obfs提示错误
sudo ss-server -c /etc/shadowsocks-libev/config.json --plugin obfs-server --plugin-opts "obfs=http"
2017-01-15 18:43:14 INFO: plugin "obfs-server" enabled
2017-01-15 18:43:14 INFO: initializing ciphers... chacha20
2017-01-15 18:43:14 INFO: tcp port reuse enabled
2017-01-15 18:43:14 INFO: tcp server listening at 127.0.0.1:60862
2017-01-15 18:43:14 INFO: running from root user
2017-01-15 18:43:14 [simple-obfs] ERROR: Invalid config path.
2017-01-15 18:43:14 ERROR: plugin service exit unexpectedly

sudo ss-server -c /etc/shadowsocks-libev/config.json
2017-01-15 18:45:53 INFO: initializing ciphers... chacha20
2017-01-15 18:45:53 INFO: tcp port reuse enabled
2017-01-15 18:45:53 INFO: tcp server listening at xxx.xxx.xxx.xxx:443
2017-01-15 18:45:53 INFO: running from root user

@rampageX
Copy link

same here, use old way ok:
"plugin": "obfs-local --obfs http --obfs-host www.baidu.com",
new way error:

  "plugin": "obfs-local",
  "plugin-opts": "obfs=http;obfs-host=www.baidu.com"
Jan 15 20:38:34 asus kern.info /opt/sbin/ss-local[10777]: initializing ciphers... aes-128-cfb
Jan 15 20:38:34 asus kern.info /opt/sbin/ss-local[10777]: udprelay enabled
Jan 15 20:38:34 asus kern.info /opt/sbin/ss-local[10777]: listening at 0.0.0.0:7171
Jan 15 20:38:34 asus kern.info /opt/sbin/ss-local[10777]: running from root user
Jan 15 20:38:34 asus kern.err /opt/sbin/ss-local[10777]: plugin service exit unexpectedly

@madeye
Copy link
Contributor

madeye commented Jan 16, 2017

Please update https://github.com/shadowsocks/simple-obfs to the latest.

@rampageX
Copy link

rampageX commented Jan 16, 2017

@madeye ss and obfs all update to the last git version.
command line ok:

ss-local -c /opt/etc/shadowsocks.json --plugin obfs-local --plugin-opts "obfs=http;obfs-host=www.baidu.com" -v -l 7171
 2017-01-16 09:47:29 INFO: plugin "obfs-local" enabled
 2017-01-16 09:47:29 INFO: initializing ciphers... aes-128-cfb
 2017-01-16 09:47:29 INFO: listening at 127.0.0.1:7171
 2017-01-16 09:47:29 INFO: running from root user
 2017-01-16 09:47:29 [simple-obfs] INFO: obfuscating enabled
 2017-01-16 09:47:29 [simple-obfs] INFO: obfuscating hostname: www.baidu.com
 2017-01-16 09:47:29 [simple-obfs] INFO: listening at 127.0.0.1:17523
 2017-01-16 09:47:29 [simple-obfs] INFO: running from root user
 2017-01-16 09:47:39 INFO: connect to clients4.google.com:443

but with json config file error:

ss-local -c /opt/etc/shadowsocks.json -v -l 7171
 2017-01-16 09:49:38 INFO: plugin "obfs-local" enabled
 2017-01-16 09:49:38 INFO: initializing ciphers... aes-128-cfb
 2017-01-16 09:49:38 INFO: listening at 127.0.0.1:7171
 2017-01-16 09:49:38 INFO: running from root user

simple-obfs 0.0.1

  maintained by Max Lv <max.c.lv@gmail.com>

  usage:

    obfs-local

       -s <server_host>           Host name or IP address of your remote server.
       -p <server_port>           Port number of your remote server.
       -l <local_port>            Port number of your local server.
       --obfs <http|tls>          Enable obfuscating: HTTP or TLS (Experimental).
       --obfs-host <host_name>    Hostname for obfuscating (Experimental).

       [-a <user>]                Run as another user.
       [-f <pid_file>]            The file path to store pid.
       [-t <timeout>]             Socket timeout in seconds.
       [-c <config_file>]         The path to config file.
       [-n <number>]              Max number of open files.
       [-b <local_address>]       Local address to bind.


       [--fast-open]              Enable TCP fast open.
                                  with Linux kernel > 3.7.0.
       [--mptcp]                  Enable Multipath TCP on MPTCP Kernel.

       [-v]                       Verbose mode.
       [-h, --help]               Print this message.

 2017-01-16 09:49:38 ERROR: plugin service exit unexpectedly
 2017-01-16 09:49:38 INFO: closed gracefully

my config json file:

{
  "server": "xxxxx",
  "server_port": 13026,
  "password": "fuckugfw",
  "method": "aes-128-cfb",
  "plugin": "obfs-local",
  "plugin-opts": "obfs=http;obfs-host=www.baidu.com",
  "remarks": "SS-OBFS",
  "auth": false
}

@madeye
Copy link
Contributor

madeye commented Jan 16, 2017

It should be plugin_opts in JSON. All the config keys follow this naming convention: plugin-opts in CLI to plugin_opts in JSON and fast-open in CLI to fast_open in JSON.

@madeye
Copy link
Contributor

madeye commented Jan 16, 2017

For more details: https://github.com/shadowsocks/shadowsocks-libev/blob/master/doc/shadowsocks-libev.asciidoc#config-file

@rampageX
Copy link

@madeye done! Thanks!

@luckwang
Copy link
Author

@madeye it works! thxs

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