Deprecated according to regulations.
noahziheng / ssr-helper Goto Github PK
View Code? Open in Web Editor NEWA CLI helper of ShadowsocksR Python
A CLI helper of ShadowsocksR Python
SSR START 提示已经连接成功。
但是SSR status的时候提示:
hand@hand:~$ ssr status SSR Python Client Status: Running PID:5358 Current: [Ungrouped](jp.jpnode.zihaoc.tk:59607) ✖ Connection test failed!
确定配置是正确的,在win下就可以正常使用。
能否添加一个本地监听地址的修改接口?对应配置文件里是"local_address": "127.0.0.1"
在树莓派上执行的时候提示下面的内容。
pi@raspberrypi:/usr/local/bin $ node -v
v8.9.4
pi@raspberrypi:/usr/local/bin $ npm -v
5.6.0
pi@raspberrypi:/usr/local/bin $ ssr -V
v1.1.0
pi@raspberrypi:/usr/local/bin $ ssr config /srv/approot/shadowsocksr/
ssr-config(1) does not exist, try --help
pi@raspberrypi:/usr/local/bin $ ssr status
ssr-status(1) does not exist, try --help
pi@raspberrypi:/usr/local/bin $ uname -m
armv6l
想在docker下实现多开
我想到的方案是,
1.从config.json中,把default属性移植出来(因为多开要共用一个config.json)放入单独的一个json中,比如default-server.json.
2.不依赖于default.json(每次start根据default-server.json的名字,找到对应的server,然后和local.json动态生成default.json).这样方便,lazy load,配置也不方便.
这些我能写,可能引入一些bug.不知道这个提议的怎么样.可以的话,我就改了
您好:
我在 ssr connect 成功后 使用 ssr status 出现 Connection test failed!
➜ ~ ssr status
SSR Python Client Status: Running
PID:3763
Current: [渡口 - 单端口]美3_|NF - 单端口()
✖ Connection test failed!
已确认节点是没有问题的
请问这是什么情况呀
Downloading ssr-helper to /opt/node-v8.9.4-linux-x64/lib/node_modules/ssr-helper_tmp
Copying /opt/node-v8.9.4-linux-x64/lib/node_modules/ssr-helper_tmp/_ssr-helper@1.0.9@ssr-helper to /opt/node-v8.9.4-linux-x64/lib/node_modules/ssr-helper
Installing ssr-helper's dependencies to /opt/node-v8.9.4-linux-x64/lib/node_modules/ssr-helper/node_modules
[1/14] base64-js@^1.2.1 installed at node_modules/_base64-js@1.2.1@base64-js
[2/14] bluebird@^3.5.0 installed at node_modules/_bluebird@3.5.1@bluebird
[3/14] commander@^2.9.0 installed at node_modules/_commander@2.13.0@commander
[4/14] fs-extra@^2.1.2 installed at node_modules/_fs-extra@2.1.2@fs-extra
[5/14] chalk@^1.1.3 installed at node_modules/_chalk@1.1.3@chalk
[6/14] query-string@^5.0.0 installed at node_modules/_query-string@5.0.1@query-string
[7/14] ora@^1.2.0 installed at node_modules/_ora@1.3.0@ora
[8/14] socks-proxy-agent@^3.0.1 installed at node_modules/_socks-proxy-agent@3.0.1@socks-proxy-agent
[9/14] shelljs@^0.7.8 installed at node_modules/_shelljs@0.7.8@shelljs
[10/14] conf@^1.2.0 installed at node_modules/_conf@1.4.0@conf
[11/14] then-request@^4.1.0 installed at node_modules/_then-request@4.1.0@then-request
[12/14] iconv-lite@^0.4.15 installed at node_modules/_iconv-lite@0.4.19@iconv-lite
[13/14] inquirer@^3.0.6 installed at node_modules/_inquirer@3.3.0@inquirer
[14/14] figlet@^1.2.0 installed at node_modules/_figlet@1.2.0@figlet
anti semver [email protected] › @types/[email protected] › @types/node@* delcares @types/node@(resolved as 9.3.0) but using ancestor(then-request)'s dependency @types/node@^8.0.0(resolved as 8.5.9)
anti semver [email protected] › @types/[email protected] › @types/node@ delcares @types/node@*(resolved as 9.3.0) but using ancestor(then-request)'s dependency @types/node@^8.0.0(resolved as 8.5.9)
Recently updated (since 2018-01-11): 3 packages (detail see file /opt/node-v8.9.4-linux-x64/lib/node_modules/ssr-helper/node_modules/.recently_updates.txt)
Today:
→ [email protected] › @types/node@^8.0.0(8.5.9) (06:19:04)
2018-01-16
→ [email protected] › agent-base@^4.1.0(4.2.0) (07:46:08)
2018-01-11
→ commander@^2.9.0(2.13.0) (15:09:55)
All packages installed (119 packages installed from npm registry, used 6s, speed 394.79kB/s, json 112(183.26kB), tarball 2.05MB)
[[email protected]] link /opt/node-v8.9.4-linux-x64/bin/ssr@ -> /opt/node-v8.9.4-linux-x64/lib/node_modules/ssr-helper/bin/index.js
[[email protected]] link /opt/node-v8.9.4-linux-x64/bin/ssr-subscribe@ -> /opt/node-v8.9.4-linux-x64/lib/node_modules/ssr-helper/bin/subscribe.js
程序“ssr”尚未安装。 您可以使用以下命令安装:
ssr config /the/path/shadowsocksr
ssr-subscribe add https://xxxx
ssr start
Error: the default connection is unset!
.config/ssr-helper-nodejs/default.json里面就一对花括号
是少了什么步骤吗
是不是我必须手工添加服务器
[hidden@hidden-pc ~]$ npm -v
6.9.0
[hidden@hidden-pc ~]$ npm install -g ssr-helper
npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm WARN checkPermissions Missing write access to /usr/lib/node_modules
npm ERR! path /usr/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules'
npm ERR! { [Error: EACCES: permission denied, access '/usr/lib/node_modules']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access '/usr/lib/node_modules'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/lib/node_modules' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! /home/hidden/.npm/_logs/2019-06-09T03_11_58_956Z-debug.log
[hidden@hidden-pc ~]$
Node.js版本:v13.1.0
更新失败,ssr-subscribe-update.js:63 catch到了错误(由于没有报错信息,我个人也不懂JavaScript难以调试)
可以确定的是并非由网络原因造成,响应状态码为200
我个人认为可能是在parse时出现错误
系统有python环境,不知道为什么会报这个错误
执行ssr ls命令时,除了输出节点的详细信息,建议增加另起一行输出节点的ssr链接,方便分享。另外,不知npm支持在终端打印二维码不?
"obfsparam": "C�;",
"protoparam": "C�;",
原始的SSR URI经base64解码后的原文(同样可隐去密码端口等)
请问这个怎么操作?
在树霉派上使用npm安装时出现以下错误:
pi@raspberrypi:~ $ sudo npm install -g ssr-helper
(node:2969) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm ERR! tar.unpack untar error /root/.npm/figlet/1.2.3/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/ssr-helper/node_modules/shelljs/src'
npm ERR! error rolling back [email protected] { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/ssr-helper/node_modules/shelljs/src'
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/ssr-helper/node_modules/shelljs/src' }
npm ERR! Error: Method Not Allowed
npm ERR! at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR! at /usr/share/npm/lib/cache/add-named.js:120:12
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR! at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Linux 4.19.42-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "ssr-helper"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR! tar.unpack untar error /root/.npm/socks/1.1.10/package.tgz
npm ERR! tar.unpack untar error /root/.npm/agent-base/4.3.0/package.tgz
npm ERR! tar.unpack untar error /root/.npm/bluebird/3.5.5/package.tgz
npm ERR! tar.unpack untar error /root/.npm/dot-prop/4.2.0/package.tgz
npm ERR! tar.unpack untar error /root/.npm/make-dir/1.3.0/package.tgz
npm ERR! tar.unpack untar error /root/.npm/fs-extra/2.1.2/package.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/npm-debug.log
npm ERR! not ok code 0
完整的debug文件:
npm-debug.log
Traceback (most recent call last):
File "/media/cc/下载/linux/解压/shadowsocksr/shadowsocks/local.py", line 81, in
main()
File "/media/cc/下载/linux/解压/shadowsocksr/shadowsocks/local.py", line 43, in main
config = shell.get_config(True)
File "/media/cc/下载/linux/解压/shadowsocksr/shadowsocks/../shadowsocks/shell.py", line 299, in get_config
check_config(config, is_local)
File "/media/cc/下载/linux/解压/shadowsocksr/shadowsocks/../shadowsocks/shell.py", line 129, in check_config
encrypt.try_cipher(config['password'], config['method'])
File "/media/cc/下载/linux/解压/shadowsocksr/shadowsocks/../shadowsocks/encrypt.py", line 46, in try_cipher
Encryptor(key, method)
File "/media/cc/下载/linux/解压/shadowsocksr/shadowsocks/../shadowsocks/encrypt.py", line 90, in init
random_string(self._method_info[1]))
File "/media/cc/下载/linux/解压/shadowsocksr/shadowsocks/../shadowsocks/encrypt.py", line 119, in get_cipher
return m[2](method, key, iv, op)
File "/media/cc/下载/linux/解压/shadowsocksr/shadowsocks/../shadowsocks/crypto/sodium.py", line 71, in init
load_libsodium()
File "/media/cc/下载/linux/解压/shadowsocksr/shadowsocks/../shadowsocks/crypto/sodium.py", line 42, in load_libsodium
raise Exception('libsodium not found')
Exception: libsodium not found
Error: Script execute failed!
请问这个是什么回事,我尝试安装了libsodium-1.0.1,但是还是不行,不知道把libsodium-1.0.1放在哪个文件夹,谢谢
打不开local文件
Hi:
配置python客户端,添加了订阅地址,连接服务器
ssr status查看是成功的
但是用浏览器不能访问google,以前还可以用呢,上周重装了系统就不行了
这几次使用发现订阅节点更新后,如果还是相同的会自动覆盖,有新增的会添加,但是之前不能用的不会自动删除。
有没有什么好的解决方案能去除过期节点呢(或者说是我不会用)?
Linux Mint 18.3
rpm insall
git manyuser okay
then I type below
get error message
XXXXX@NAS ~ $ ssr config /home/XXXXX/shadowsocksr
/usr/local/lib/node_modules/ssr-helper/bin/ssr-config.js:7
let path = program.args[0]
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
I run ssr connect
command and get error
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'undefined/shadowsocks/local.py': [Errno 2] No such file or directory
Error: Script execute failed!
I've check the code in lib/exec.js, and figured out that config.get('ssr-path')
output undefine path
Is there any way to configure ssr-path or did I get anything wrong?
Thanks in advance :)
如题
ERROR daemon.py:155 not running
gnuhpc@gnuhpc-desktop:~$ ssr connect
? Please select group t.me/SSRSUB
? Please select server [t.me/SSRSUB]TelePlus Server 143(134.209.180.224:39216)
[t.me/SSRSUB]TelePlus Server 143(134.209.180.224:39216) is set to default!
ERROR: found an error in config.json: chr() arg not in range(256)
IPv6 support
Error: Script execute failed!
2018-01-25 13:06:55 INFO util.py:85 loading libsodium from libsodium.so.13
2018-01-25 13:06:55 ERROR shell.py:50 [Errno 2] No such file or directory: '/var/run/shadowsocksr.pid'
2018-01-25 13:06:55 ERROR daemon.py:146 not running
IPv6 support
Success!
SSR Python版直连没问题
发现Ubuntu18.04可以用,但是在centos7不可以用,在centos7里一直提示错误:✖ Connection test failed!
ssr connect 的时候
ERROR: found an error in config.json: chr() arg not in range(256)
IPv6 support
Error: Script execute failed!
请问这个如何解决呢
订阅解析的参数都是乱码。。
非常感谢作者提供这么好用的工具,极大提高了大家的工作效率!
如果订阅里边服务器数量较多的话,使用ssr delay 就要等很久才能测试完毕,不知道能不能添加多线程计算时延呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.