{"action":"created","issue":{"url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/57","repository_url":"https://api.github.com/repos/mengskysama/shadowsocks-rm","labels_url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/57/comments","events_url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/57/events","html_url":"https://github.com/mengskysama/shadowsocks-rm/issues/57","id":177493439,"number":57,"title":"运行servers.py 启动服务不起来","user":{"login":"cuidaohan","id":13152313,"avatar_url":"https://avatars.githubusercontent.com/u/13152313?v=3","gravatar_id":"","url":"https://api.github.com/users/cuidaohan","html_url":"https://github.com/cuidaohan","followers_url":"https://api.github.com/users/cuidaohan/followers","following_url":"https://api.github.com/users/cuidaohan/following{/other_user}","gists_url":"https://api.github.com/users/cuidaohan/gists{/gist_id}","starred_url":"https://api.github.com/users/cuidaohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuidaohan/subscriptions","organizations_url":"https://api.github.com/users/cuidaohan/orgs","repos_url":"https://api.github.com/users/cuidaohan/repos","events_url":"https://api.github.com/users/cuidaohan/events{/privacy}","received_events_url":"https://api.github.com/users/cuidaohan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-16T18:44:26Z","updated_at":"2016-09-21T04:18:23Z","closed_at":null,"body":"一开始老报错后来该配置文件后报这个\r\nTraceback (most recent call last):\r\n  File \"/root/shadowsocks-rm/shadowsocks/dbtransfer.py\", line 206, in thread_push\r\n    DbTransfer.get_instance().push_db_all_user()\r\n  File \"/root/shadowsocks-rm/shadowsocks/dbtransfer.py\", line 66, in push_db_all_user\r\n    last_time = time.time()\r\nUnboundLocalError: local variable 'time' referenced before assignment\r\nWARNING:root:db thread except:local variable 'time' referenced before assignment\r\n\r\n\r\n配置文件\r\n#Config\r\nMYSQL_HOST = '127.0.0.1'\r\nMYSQL_PORT = 3306\r\nMYSQL_USER = 'root'\r\nMYSQL_PASS = 'lnmp.org'\r\nMYSQL_DB = 'sspanel'\r\n\r\nMANAGE_PASS = 'passwd'\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 = 15000\r\n\r\nPANEL_VERSION = 'V2' # V2 or V3. V2 not support API\r\nAPI_URL = 'http://vps.demo/mu'\r\nAPI_PASS = 'mupass'\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'"},"comment":{"url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/comments/248507520","html_url":"https://github.com/mengskysama/shadowsocks-rm/issues/57#issuecomment-248507520","issue_url":"https://api.github.com/repos/mengskysama/shadowsocks-rm/issues/57","id":248507520,"user":{"login":"mengskysama","id":4783870,"avatar_url":"https://avatars.githubusercontent.com/u/4783870?v=3","gravatar_id":"","url":"https://api.github.com/users/mengskysama","html_url":"https://github.com/mengskysama","followers_url":"https://api.github.com/users/mengskysama/followers","following_url":"https://api.github.com/users/mengskysama/following{/other_user}","gists_url":"https://api.github.com/users/mengskysama/gists{/gist_id}","starred_url":"https://api.github.com/users/mengskysama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mengskysama/subscriptions","organizations_url":"https://api.github.com/users/mengskysama/orgs","repos_url":"https://api.github.com/users/mengskysama/repos","events_url":"https://api.github.com/users/mengskysama/events{/privacy}","received_events_url":"https://api.github.com/users/mengskysama/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T04:18:23Z","updated_at":"2016-09-21T04:18:23Z","body":"是不是用了v3的接口，可能会有问题现在修掉了。这个合并我没有测试过。"}}
{"actor":{"display_login":"mengskysama"}}