Rückverfolgung (letzter Anruf): Ablegen "/home/wwwroot/sss/shadowsocks-rm/shadowsocks/dbtransfer.py", Zeile 207, in thread_push DbTransfer.get_instance().push_db_all_user() Ablegen "/home/wwwroot/sss/shadowsocks-rm/shadowsocks/dbtransfer.py", Zeile 119, in push_db_all_user Antwort = urllib2.urlopen(req) Datei "/usr/lib/python2.6/urllib2.py", Zeile 126, in urlopen return _opener.open(URL, Data, Timeout) Datei "/usr/lib/python2.6/urllib2.py", Zeile 397, in offen Antwort = Meth(Anforderung, Antwort) Datei "/usr/lib/python2.6/urllib2.py", Zeile 510, in http_response 'http', Anfrage, Antwort, Code, MSG, HDRs) Datei "/usr/lib/python2.6/urllib2.py", Zeile 435, fehlerhaft Rückkehren self._call_chain(*args) Datei "/usr/lib/python2.6/urllib2.py", Zeile 369, in _call_chain Ergebnis = func(*args) Datei "/usr/lib/python2.6/urllib2.py", Zeile 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
Lösung:
Der Code wurde aktualisiert, und das Tutorial wurde nicht aktualisiert API_PASS Es ist im Frontend genauso geschrieben wie das muKey API_URL = 'http:// dein Domain/mu' NODE_ID schreibe die ID dieses Knotens in die Datenbank
Problem gelöst: Die API_URL in der cofig.py muss auf ihren eigenen Domainnamen/mu geändert werden; API_PAS muss mit dem Mukey in sspanel .env konsistent sein.
|