This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11617|Reply: 0

ss-panel v3 running python servers.py error

[Copy link]
Posted on 10/6/2016 1:55:24 PM | | |
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.





Previous:Unknown character set: utf8mb4
Next:webAPI automatically generates help documentation
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com