{"action":"created","issue":{"url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/54","repository_url":"https://api.github.com/repos/mengskysama/shadowsocks-rm","labels_url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/54/comments","events_url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/54/events","html_url":"https://github.com/mengskysama/shadowsocks-rm/issues/54","id":176822950,"number":54,"title":"ss-panel 无法统计流量、在线人数问题","user":{"login":"tlzzu","id":13477114,"avatar_url":"https://avatars.githubusercontent.com/u/13477114?v=3","gravatar_id":"","url":"https://api.github.com/users/tlzzu","html_url":"https://github.com/tlzzu","followers_url":"https://api.github.com/users/tlzzu/followers","following_url":"https://api.github.com/users/tlzzu/following{/other_user}","gists_url":"https://api.github.com/users/tlzzu/gists{/gist_id}","starred_url":"https://api.github.com/users/tlzzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlzzu/subscriptions","organizations_url":"https://api.github.com/users/tlzzu/orgs","repos_url":"https://api.github.com/users/tlzzu/repos","events_url":"https://api.github.com/users/tlzzu/events{/privacy}","received_events_url":"https://api.github.com/users/tlzzu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2016-09-14T06:07:33Z","updated_at":"2016-09-14T09:04:32Z","closed_at":null,"body":"以下是config.py内容：\r\nimport logging\r\n\r\n#Config\r\nMYSQL_HOST = 'localhost'\r\nMYSQL_PORT = 3306\r\nMYSQL_USER = 'root'\r\nMYSQL_PASS = '123456789a'\r\nMYSQL_DB = 'sspanel'\r\n\r\nMANAGE_PASS = 'aliyu4Seff'\r\n#if you want manage in other server you should set this value to global ip\r\nMANAGE_BIND_IP = '127.0.0.1'\r\n#make sure this port is idle\r\nMANAGE_PORT = 23333\r\n\r\nPANEL_VERSION = 'V3' # V2 or V3. V2 not support API\r\nAPI_URL = 'http://vps.demo.com/mu'\r\nAPI_PASS = 'aliyu4Seff'\r\nNODE_ID = '1'\r\nCHECKTIME = 15\r\nSYNCTIME = 600\r\n\r\n#BIND IP\r\n#if you want bind ipv4 and ipv6 '[::]'\r\n#if you want bind all of ipv4 if '0.0.0.0'\r\n#if you want bind all of if only '4.4.4.4'\r\nSS_BIND_IP = '0.0.0.0'\r\nSS_METHOD = 'rc4-md5'\r\n\r\n#LOG CONFIG\r\nLOG_ENABLE = False\r\nLOG_LEVEL = logging.DEBUG\r\nLOG_FILE = '/var/log/shadowsocks.log'\r\n\r\n其中 /var/log/shadowsocks.log中什么都没有。\r\n=============================================\r\n以下是/home/www/ss-panel/.env 中的信息：\r\n//  ss-panel v3 ▒~E~M置\r\n//\r\n// !!! 修▒~T▒此key为▒~Z~O▒~\\▒▒~W符串确▒~]▒~Q▒~Y▒~I▒~E▒ !!!\r\nkey = 'aliyu4Seff'\r\nenv = 'prod'  // 正▒~O▒~N▒▒~C请▒~]▒~L~Aenv为prod确▒~]▒~I▒~E▒\r\ndebug =  'false'  //  正▒~O▒~N▒▒~C请确▒~]为false\r\nappName = 'ss-panel3'             //▒~Y▒~B▒▒~P~M称\r\nbaseUrl = 'http://vps.demo.com'            // ▒~Y▒~B▒▒~\\▒▒~]~@\r\ntimeZone = 'PRC'        // RPC 天▒~\\~]▒~W▒▒~W▒  UTC ▒| ▒▒~^~W▒~W▒▒~W▒\r\npwdMethod = 'md5'       // ▒~F▒| ~A▒~J| ▒~F   ▒~O▒▒~@~I md5,sha256\r\nsalt = ''               // ▒~F▒| ~A▒~J| ▒~F▒~T▒▒~L▒~N▒~W▒▒~I~H▒~M~G级请▒~U~Y空\r\ntheme    = 'default'   // 主▒~X\r\n// v3.4 ▒~P~N使▒~T▒ session代▒~[▒authDriver\r\n// session,cache  ▒~O▒▒~@~I file/redis\r\nsession = 'file'\r\ncache   = 'file'\r\ntokenDriver = 'db'\r\n// mu key ▒~T▒▒~N▒| ▒▒~Lss-go mu▒~Z~D请▒~B\r\nmuKey = 'aliyu4Seff'\r\n// ▒~B▒件\r\nmailDriver = 'mailgun'   // mailgun   #smtp▒~M▒~\\▒▒~T▒▒~L~A,▒~E▒~[▒~K▒~U\r\n\r\n// 注▒~F~L▒~Y~P▒~H▒,▒~O天▒~O个ip▒~C▒注▒~F~L▒~Z~D次▒~U▒\r\nipDayLimit = '10'\r\n\r\n// ▒~B▒箱▒~L▒~A设置\r\nemailVerifyEnabled = 'false' // ▒~X▒▒~P▒▒~@▒~P▒注▒~F~L▒~W▒▒~B▒箱▒~L▒~A (true:▒~@▒~P▒ faa\r\nlse:▒~E▒▒~W▒)\r\nemailVerifyCodeLength = '8'  // ▒~B▒箱▒~L▒~A代▒| ~A▒~U▒度\r\nemailVerifyTTL = '30'        // ▒~L▒~A代▒| ~A▒~\\~I▒~U~H▒~W▒▒~W▒ ▒~M~U▒~M▒~H~F▒~R~_\r\n\r\n// ▒~T▒▒~H▒签▒~H▒设置\r\ncheckinTime = '22'      // 签▒~H▒▒~W▒▒~Z~T▒~W▒▒~W▒ ▒~M~U▒~M▒~O▒~W▒\r\nr\r\ncheckinMin = '93'       // 签▒~H▒▒~\\~@▒~Q▒~A▒~G~O ▒~M~U▒~MMB\r\ncheckinMax = '97'       // 签▒~H▒▒~\\~@▒~Z▒~A▒~G~O\r\n\r\n//\r\ndefaultTraffic = '1'      // ▒~T▒▒~H▒▒~H~]▒~K▒~A▒~G~O ▒~M~U▒~MGB\r\n// 注▒~F~L▒~P~N▒~N▒▒~W▒~Z~D▒~B~@请▒| ~A▒~U▒▒~G~O\r\ninviteNum = '0'\r\n\r\n// 记▒~U▒~A▒~G~O▒~W▒▒~W▒~H▒dynamodb ,beta,请▒~K▒▒~@▒~P▒\r\nlog_traffic_dynamodb = 'false'\r\n\r\n# database ▒~U▒▒~M▒▒~S▒~E~M置\r\ndb_driver = 'mysql'\r\ndb_host = 'localhost'\r\ndb_port = '3306'\r\ndb_database = 'sspanel'\r\ndb_username = 'root'\r\ndb_password = '123456789a'\r\ndb_charset = 'utf8'\r\ndb_collation = 'utf8_general_ci'\r\ndb_prefix = ''\r\n\r\n# redis\r\nredis_scheme = 'tcp'\r\nredis_host = '127.0.0.1'\r\nredis_port = '6379'\r\nredis_database = '0'\r\nredis_pass = ''\r\n\r\n# mailgun\r\nmailgun_key = ''\r\nmailgun_domain = ''\r\nmailgun_sender = ''\r\n\r\n# smtp\r\nsmtp_host = ''\r\nsmtp_username = ''\r\nsmtp_port = ''\r\nsmtp_name = ''\r\nsmtp_sender = ''\r\nsmtp_passsword = ''\r\nsmtp_ssl = 'true'\r\n\r\n# aws\r\naws_access_key_id = ''\r\naws_secret_access_key = ''\r\naws_region = 'ap-northeast-1'\r\naws_ses_region = 'us-east-1'\r\naws_ses_sender = ''\r\n                             \r\n=======================================================\r\n现在代理可以运行，可以翻墙（有点慢），vps用的是搬瓦工的年付$19.9，安装后内存占用\r\nRAM:\t155.46/256 MB\r\nSWAP:\t108.66/128 MB\r\n但是ss-panel 无法统计流量、在线人数问题\r\n安装时采用这个哥们的一键安装包：\r\nhttps://www.echoteen.com/yijian-sspanel-many-user.html\r\n=======================================================\r\n使用代理时putty远程连接出现以下问题：\r\n[root@localhost shadowsocks]# python servers.py\r\nERROR:root:[Errno 104] Connection reset by peer\r\nWARNING:root:one time auth fail\r\nWARNING:root:header is too short\r\nERROR:root:[1025]can not parse header when handling connection from 27.211.59.191:14094\r\nTraceback (most recent call last):\r\n  File \"../shadowsocks/tcprelay.py\", line 328, in _handle_stage_addr\r\n    raise Exception('[%s]can not parse header'%(self._config['server_port']))\r\nException: [1025]can not parse header\r\nERROR:root:[Errno 32] Broken pipe\r\nERROR:root:[Errno 104] Connection reset by peer\r\nWARNING:root:timed out: maps.google.com:80\r\nTraceback (most recent call last):\r\n  File \"/root/shadowsocks-rm/shadowsocks/dbtransfer.py\", line 197, in thread_push\r\n    DbTransfer.get_instance().push_db_all_user()\r\n  File \"/root/shadowsocks-rm/shadowsocks/dbtransfer.py\", line 98, in push_db_all_user\r\n    response = urllib2.urlopen(req)\r\n  File \"/usr/lib64/python2.7/urllib2.py\", line 154, in urlopen\r\n    return opener.open(url, data, timeout)\r\n  File \"/usr/lib64/python2.7/urllib2.py\", line 437, in open\r\n    response = meth(req, response)\r\n  File \"/usr/lib64/python2.7/urllib2.py\", line 550, in http_response\r\n    'http', request, response, code, msg, hdrs)\r\n  File \"/usr/lib64/python2.7/urllib2.py\", line 475, in error\r\n    return self._call_chain(*args)\r\n  File \"/usr/lib64/python2.7/urllib2.py\", line 409, in _call_chain\r\n    result = func(*args)\r\n  File \"/usr/lib64/python2.7/urllib2.py\", line 558, in http_error_default\r\n    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)\r\nHTTPError: HTTP Error 500: Internal Server Error\r\nWARNING:root:db thread except:HTTP Error 500: Internal Server Error\r\nERROR:root:[Errno 104] Connection reset by peer\r\nWARNING:root:timed out: id.google.com.hk:443\r\nERROR:root:[Errno 104] Connection reset by peer\r\nWARNING:root:unsupported addrtype 47, maybe wrong password or encryption method\r\nERROR:root:[1025]can not parse header when handling connection from 117.36.118.226:9368\r\nTraceback (most recent call last):\r\n  File \"../shadowsocks/tcprelay.py\", line 328, in _handle_stage_addr\r\n    raise Exception('[%s]can not parse header'%(self._config['server_port']))\r\nException: [1025]can not parse header\r\nERROR:root:[Errno 104] Connection reset by peer\r\nWARNING:root:timed out: www.gstatic.com:443\r\nERROR:root:[Errno 104] Connection reset by peer\r\nERROR:root:[Errno 104] Connection reset by peer\r\nWARNING:root:timed out: www.google.com.hk:443\r\nERROR:root:[Errno 111] Connection refused\r\n\r\n=============================================\r\n注：整个过程（运行10分钟）多次出现（不下百次）\r\nERROR:root:[Errno 104] Connection reset by peer\r\n这个错误，为了方便查看，基本只保留了少许的几条。中间流量统计同步时依旧出现\r\nDbTransfer.get_instance().push_db_all_user()\r\n这个错误。\r\n那么问题来了，请问怎么解决 无法统计流量、在线人数问题？\r\n@zuoruizhi\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/comments/246950845","html_url":"https://github.com/mengskysama/shadowsocks-rm/issues/54#issuecomment-246950845","issue_url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/54","id":246950845,"user":{"login":"zuoruizhi","id":8614920,"avatar_url":"https://avatars.githubusercontent.com/u/8614920?v=3","gravatar_id":"","url":"https://api.github.com/users/zuoruizhi","html_url":"https://github.com/zuoruizhi","followers_url":"https://api.github.com/users/zuoruizhi/followers","following_url":"https://api.github.com/users/zuoruizhi/following{/other_user}","gists_url":"https://api.github.com/users/zuoruizhi/gists{/gist_id}","starred_url":"https://api.github.com/users/zuoruizhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuoruizhi/subscriptions","organizations_url":"https://api.github.com/users/zuoruizhi/orgs","repos_url":"https://api.github.com/users/zuoruizhi/repos","events_url":"https://api.github.com/users/zuoruizhi/events{/privacy}","received_events_url":"https://api.github.com/users/zuoruizhi/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T09:04:32Z","updated_at":"2016-09-14T09:04:32Z","body":"日志看了，后端这几天等更新吧，另外前端版本多少"}}
{"actor":{"display_login":"zuoruizhi"}}