Traceback (most recent call last): File "/home/wwwroot/sss/shadowsocks-rm/shadowsocks/dbtransfer.py", line 207, in thread_push DbTransfer.get_instance().push_db_all_user() File "/home/wwwroot/sss/shadowsocks-rm/shadowsocks/dbtransfer.py", line 119, in push_db_all_user response = urllib2.urlopen(req) File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.6/urllib2.py", line 397, in open response = meth(req, response) File "/usr/lib/python2.6/urllib2.py", line 510, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.6/urllib2.py", line 435, in error return self._call_chain(*args) File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain result = func(*args) File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized
WARNING:root:db thread except:HTTP Error 401: Unauthorized
Solution:
The code has been updated, and the tutorial has not been updated API_PASS It is written the same as the muKey on the frontend API_URL = 'http:// your domain/mu' NODE_ID write the ID of this node in the database
Problem solved: The API_URL in the cofig.py needs to be changed to its own domain name/mu; API_PAS needs to be consistent with the mukey in sspanel .env.
|