Hi all! could anyone shed some light on what is happening? been working for 3 days and broke today:
:~/proxypool/payout$ python payout.py
2014-05-07 16:43:22.600987 Share processing thread started...
2014-05-07 16:43:22.601237 Payment processing thread started...
2014-05-07 16:43:22.611682 Fetching shares from database...
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner
self.run()
File "/home/cal/proxypool/payout/sharelogger.py", line 41, in run
self.log_share(json.loads(raw_share))
File "/home/cal/proxypool/payout/sharelogger.py", line 90, in log_share
moninfo = self.get_info("mon")
File "/home/cal/proxypool/payout/sharelogger.py", line 52, in get_info
info = self.walletcmd(self.wallets[wallet], "getinfo")
File "/home/cal/proxypool/payout/sharelogger.py", line 48, in walletcmd
return HttpClient(**wallet).call(method, *params)
File "/usr/local/lib/python2.7/dist-packages/pyjsonrpc/http.py", line 98, in call
password = self.password
File "/usr/local/lib/python2.7/dist-packages/pyjsonrpc/http.py", line 33, in http_request
response = urllib2.urlopen(request)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Authorization Required
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 761, in run
self.__target(*self.__args, **self.__kwargs)
File "payout.py", line 337, in run_sharepayout
vtc_txhash, vtc_tx, mon_txhash, mon_tx = pay_shares()
File "payout.py", line 129, in pay_shares
mon_balance = mon_wallet.get_balance()- config["minbalance"]
File "payout.py", line 50, in get_balance
return self.walletcmd("getbalance") - self.walletcmd("getbalance", config["feeaccount"])
File "payout.py", line 43, in walletcmd
return HttpClient(**self.walletcfg).call(method, *params)
File "/usr/local/lib/python2.7/dist-packages/pyjsonrpc/http.py", line 98, in call
password = self.password
File "/usr/local/lib/python2.7/dist-packages/pyjsonrpc/http.py", line 33, in http_request
response = urllib2.urlopen(request)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Authorization Required
Off topic : There is an update for payout.py in github. Pull it and try again.