shadowsocks-manager icon indicating copy to clipboard operation
shadowsocks-manager copied to clipboard

捕获异常

Open ioOiOiOoi opened this issue 9 years ago • 9 comments

shadowsocks-manager 0.5.33,centos 7系统

使用https://teddysun.com/486.html 一键安装脚本,安装了shadowsocks libev版

执行ss-manager -m aes-256-cfb -u --manager-address 127.0.0.1:4000 运行正常

在/root/.ssmgr/目录下新建了ss.yml文件,

执行ssmgr -c ss.yml的时候出现以下错误: [email protected] alert: uncaughtException: 0152a09b48bd41dcad1d685e8d57ac59 [2017-03-16 09:29:24.726] [ERROR] system - Caught exception: TypeError: Path must be a string. Received undefined

ioOiOiOoi avatar Mar 16 '17 09:03 ioOiOiOoi

请贴出你的配置文件,另外运行的时候加上--debug可以显示更详细的错误信息

gyteng avatar Mar 16 '17 09:03 gyteng

原来是手误,多了一个空格,执行ssmgr -c webgui.yml的时候出现了以下错误: [2017-03-16 10:50:00.595] [ERROR] system - Error: The GCM API Key should be a non-empty string or null. at Object.WebPushLib.setGCMAPIKey (/usr/lib/node_modules/shadowsocks-manager/node_modules/web-push/src/web-push-lib.js:35:11) at Object. (/usr/lib/node_modules/shadowsocks-manager/lib/plugins/webgui/server/push.js:8:9) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at global.appRequire.filePath (/usr/lib/node_modules/shadowsocks-manager/lib/init/utils.js:6:10) at Object. (/usr/lib/node_modules/shadowsocks-manager/lib/plugins/webgui/server/home.js:11:14) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at global.appRequire.filePath (/usr/lib/node_modules/shadowsocks-manager/lib/init/utils.js:6:10) at Object. (/usr/lib/node_modules/shadowsocks-manager/lib/plugins/webgui/server/route.js:6:14) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at global.appRequire.filePath (/usr/lib/node_modules/shadowsocks-manager/lib/init/utils.js:6:10) at Object. (/usr/lib/node_modules/shadowsocks-manager/lib/plugins/webgui/index.js:74:1) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at global.appRequire.filePath (/usr/lib/node_modules/shadowsocks-manager/lib/init/utils.js:6:10) at Promise.all.then (/usr/lib/node_modules/shadowsocks-manager/lib/init/loadPlugins.js:36:9)

ioOiOiOoi avatar Mar 16 '17 10:03 ioOiOiOoi

ss.yml文件内容: type: s empty: false shadowsocks: address: 127.0.0.1:4000 manager: address: 0.0.0.0:4001 password: '123456' db: 'ss.sqlite'

ioOiOiOoi avatar Mar 16 '17 10:03 ioOiOiOoi

webgui.yml文件内容: type: m empty: false

manager: address: 180.76.151.137:4001 password: '123456'

这部分的端口和密码需要跟上一步 manager 参数里的保持一致

plugins: flowSaver: use: true user: use: true account: use: true pay: hour: price: 0.03 flow: 500000000 day: price: 0.5 flow: 7000000000 week: price: 3 flow: 50000000000 month: price: 10 flow: 200000000000 email: use: true username: '[email protected]' password: 'xxx' host: 'smtp.163.com' # 这部分的邮箱和密码是用于发送注册验证邮件,重置密码邮件使用的 webgui: use: true host: '0.0.0.0' port: '80' #自己的域名 site: 'http://xxx.com/' alipay: use: true appid: 2015012108272442 notifyUrl: '' merchantPrivateKey: 'xxxxxxxxxxxx' alipayPublicKey: 'xxxxxxxxxxx' gatewayUrl: 'https://openapi.alipay.com/gateway.do'

db: 'webgui.sqlite'

ioOiOiOoi avatar Mar 16 '17 10:03 ioOiOiOoi

配置文件里的参数gcmSenderId没有填写。这个是用于Chrome消息推送的,后面的版本我把它改成选填吧。

gyteng avatar Mar 16 '17 10:03 gyteng

这个gcmSenderId是随便写,还是什么?

ioOiOiOoi avatar Mar 16 '17 11:03 ioOiOiOoi

不是随便填写,需要去firebase里申请一个账号做推送用的

gyteng avatar Mar 16 '17 11:03 gyteng

好的,谢谢你,我去申请一个

ioOiOiOoi avatar Mar 16 '17 11:03 ioOiOiOoi

登陆的时候一直提示网络异常请稍后再试怎么办, User[[email protected]] login fail: MaxRetriesPerRequestError: Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details.

KmustXH avatar Mar 08 '19 10:03 KmustXH