Closed mysticaltech closed 6 years ago
Try pulling the latest master. I was missing some exceptions in the handler for these sort of conditions.
Thanks Ryan, will do!
Ryan, I reinstalled the latest version from master but when my wifi went out for 1 minute, it crashed again, if you could somehow make it more robust would be great!
2018-11-18 03:41:45,729 DEBUG: [03:41:45][0x00007fafa658f780][info] net | x16r | Share #244 accepted
2018-11-18 03:42:07,836 WARNING: NiceHash stats: <urlopen error [Errno -2] Name or service not known>
Traceback (most recent call last):
File "/usr/bin/nuxhashd", line 11, in <module>
load_entry_point('nuxhash==1.0.0b2', 'console_scripts', 'nuxhashd')()
File "/usr/lib/python3.6/site-packages/nuxhash/__init__.py", line 3, in nuxhashd
main()
File "/usr/lib/python3.6/site-packages/nuxhash/daemon.py", line 108, in main
session.run()
File "/usr/lib/python3.6/site-packages/nuxhash/daemon.py", line 266, in run
self._scheduler.run()
File "/usr/lib64/python3.6/sched.py", line 154, in run
action(*argument, **kwargs)
File "/usr/lib/python3.6/site-packages/nuxhash/daemon.py", line 297, in _switch_algos
for device in self._devices}
File "/usr/lib/python3.6/site-packages/nuxhash/daemon.py", line 297, in <dictcomp>
for device in self._devices}
File "/usr/lib/python3.6/site-packages/nuxhash/daemon.py", line 296, in <dictcomp>
for algorithm in self._algorithms}
File "/usr/lib/python3.6/site-packages/nuxhash/daemon.py", line 292, in revenue
for i in range(len(algorithm.algorithms))])
File "/usr/lib/python3.6/site-packages/nuxhash/daemon.py", line 292, in <listcomp>
for i in range(len(algorithm.algorithms))])
NameError: free variable 'payrates' referenced before assignment in enclosing scope
2018-11-18 03:42:07,843 CRITICAL: Crash! Killing all miners.
Fixed! Apologies for the all of the bugs, I restructured a lot of this code and didn't quite anticipate all of the effects.
Thanks man! Keep up the good work.
Hey man, it crashes when the internet drops for a few minutes. Anyway to fix this? Maybe set some kind of incremental backoff retry in the code?