YoRyan / nuxhash

A NiceHash cryptocurrency mining client for Linux.
GNU General Public License v3.0
263 stars 162 forks source link

Error when doing nuxhashd #23

Open nothimofc opened 5 years ago

nothimofc commented 5 years ago

Here is the error


Traceback (most recent call last):
  File "/usr/local/bin/nuxhashd", line 11, in <module>
    load_entry_point('nuxhash==1.0.0b2', 'console_scripts', 'nuxhashd')()
  File "/usr/local/lib/python3.6/dist-packages/nuxhash/__init__.py", line 3, in                         nuxhashd
    main()
  File "/usr/local/lib/python3.6/dist-packages/nuxhash/daemon.py", line 73, in m                        ain
    all_devices = nvidia_devices()
  File "/usr/local/lib/python3.6/dist-packages/nuxhash/devices/nvidia.py", line                         26, in enumerate_devices
    raw = subprocess.check_output(['nvidia-smi', '--query', '--xml-format'])
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['nvidia-smi', '--query', '--xml-format'                        ]' returned non-zero exit status 9.
2019-04-08 12:37:55,635 CRITICAL: Crash! Killing all miners.
Killed
nothimofc commented 5 years ago

I already got python3-wxgtk4.0 and ocl-icd-libopencl1 downloaded

YoRyan commented 5 years ago

What happens when you run nvidia-smi --query --xml-format in the terminal?

UbuntuSteve commented 5 years ago

Would like to use your program but it will not work. nuxhash-gui Traceback (most recent call last): File "/usr/local/bin/nuxhash-gui", line 11, in load_entry_point('nuxhash==1.0.0b2', 'console_scripts', 'nuxhash-gui')() File "/usr/local/lib/python3.6/dist-packages/nuxhash/init.py", line 6, in nuxhash_gui from nuxhash.gui.main import main File "/usr/local/lib/python3.6/dist-packages/nuxhash/gui/main.py", line 9, in import wx ModuleNotFoundError: No module named 'wx'

I have tried a lot of things to get wx working but I welcome to try more things.

Thank you!

YoRyan commented 5 years ago

Distribution? Not all of them include wxPython 4.0.

UbuntuSteve commented 5 years ago

I am running the latest Ubuntu. Most packages offer to download missing dependencies. Are you going to provide a link to where I can get what I need? Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic

Thank you. I really want to run your software.

UbuntuSteve commented 5 years ago

Solved my own problem https://tutorialforlinux.com/2018/05/05/how-to-install-python-3-wxpython-for-ubuntu-18-04-bionic-easy-guide/2/

UbuntuSteve commented 5 years ago

Now I get: Traceback (most recent call last): File "/usr/local/bin/nuxhashd", line 11, in load_entry_point('nuxhash==1.0.0b2', 'console_scripts', 'nuxhashd')() File "/usr/local/lib/python3.6/dist-packages/nuxhash/init.py", line 3, in nuxhashd main() File "/usr/local/lib/python3.6/dist-packages/nuxhash/daemon.py", line 105, in main nx_miners, nx_settings, all_devices, nx_benchmarks) File "/usr/local/lib/python3.6/dist-packages/nuxhash/daemon.py", line 145, in run_missing_benchmarks miner.load() File "/usr/local/lib/python3.6/dist-packages/nuxhash/miners/excavator.py", line 380, in load self.server.start() File "/usr/local/lib/python3.6/dist-packages/nuxhash/miners/excavator.py", line 125, in start raise miner.MinerStartFailed nuxhash.miners.miner.MinerStartFailed 2019-04-09 19:33:31,248 CRITICAL: Crash! Killing all miners. Killed

And with nuxhash-gui I get a menu that wants me to benchmark but just sits there and I get:

nuxhash-gui /home/steve/.local/lib/python3.6/site-packages/wx/lib/pubsub/init.py:25: wxPyDeprecationWarning: wx.lib.pubsub has been deprecated, plese migrate your code to use pypubsub, available on PyPI. wx.wxPyDeprecationWarning) BUG In pixman_region32_init_rect: Invalid rectangle passed Set a breakpoint on '_pixman_log_error' to debug

BUG In pixman_region32_init_rect: Invalid rectangle passed Set a breakpoint on '_pixman_log_error' to debug

(nuxhash-gui:4926): Gtk-CRITICAL **: 19:35:28.941: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed

(nuxhash-gui:4926): Gtk-WARNING **: 19:35:28.941: gtk_widget_size_allocate(): attempt to allocate widget with width 12 and height -12

(nuxhash-gui:4926): Gtk-CRITICAL : 19:35:28.941: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar ** BUG In pixman_region32_init_rect: Invalid rectangle passed Set a breakpoint on '_pixman_log_error' to debug

BUG In pixman_region32_init_rect: Invalid rectangle passed Set a breakpoint on '_pixman_log_error' to debug

(nuxhash-gui:4926): Gtk-CRITICAL **: 19:35:28.944: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(nuxhash-gui:4926): Gtk-WARNING **: 19:35:28.944: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:4926): Gtk-WARNING **: 19:35:28.944: Negative content height -11 (allocation 1, extents 6x6) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:4926): Gtk-WARNING **: 19:35:28.944: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:4926): Gtk-WARNING **: 19:35:28.944: Negative content height -11 (allocation 1, extents 6x6) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:4926): Gtk-WARNING **: 19:35:28.944: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:4926): Gtk-WARNING **: 19:35:28.944: Negative content height -11 (allocation 1, extents 6x6) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:4926): Gtk-WARNING **: 19:35:28.953: Negative content width -15 (allocation 1, extents 8x8) while allocating gadget (node entry, owner GtkEntry)

(nuxhash-gui:4926): Gtk-WARNING **: 19:35:28.966: Negative content height -11 (allocation 1, extents 6x6) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:4926): Gtk-WARNING **: 19:35:28.966: Negative content height -11 (allocation 1, extents 6x6) while allocating gadget (node button, owner GtkButton) Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/local/lib/python3.6/dist-packages/nuxhash/gui/benchmarks.py", line 258, in run miner.load() File "/usr/local/lib/python3.6/dist-packages/nuxhash/miners/excavator.py", line 380, in load self.server.start() File "/usr/local/lib/python3.6/dist-packages/nuxhash/miners/excavator.py", line 125, in start raise miner.MinerStartFailed nuxhash.miners.miner.MinerStartFailed

The GUI just sits there doing nothing an cancel does not work

YoRyan commented 5 years ago

Run ~/.config/nuxhash/excavator/excavator -i 127.0.0.1 -p 5001 in a terminal, what happens?

By the way, if this is an unrelated bug, we should consider opening a separate thread.

UbuntuSteve commented 5 years ago

I have no clue if the failures are related. Is anyone running this successfully? Will it run on OpenSuse? I really don't want to dump Ubuntu for Win 10 Just so that I can run a Nicehash miner.

You are the programmer, right? You tell us if you want a new thread. You are the authority here.

YoRyan commented 5 years ago

Suse? Aren't you running Ubuntu 18.04? I developed this project on Ubuntu 18.04 and Fedora 29, for the record.

Look, lots of people are using this software successfully, as evidenced by the donation fees piling up in my NiceHash balance. Your issues could involve anything from the Nvidia driver to the excavator program that a little Python package like nuxhash has no control over. I need some more information to help you solve this.

UbuntuSteve commented 5 years ago

I have several machines.. One of them is running OpenSuse but no use trying there unless you are sure it would work. I have given you the error messages from the Ubuntu machine. What else do you need? Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic

UbuntuSteve commented 5 years ago

nvidia-smi --query --xml-format <?xml version="1.0" ?> <!DOCTYPE nvidia_smi_log SYSTEM "nvsmi_device_v9.dtd">

Wed Apr 10 16:36:35 2019 390.116 2 GeForce GTX 1050 Ti GeForce Enabled Enabled Disabled Disabled 4000 N/A N/A N/A GPU-e8ae7a0f-82c2-d60e-6f21-55e26ca8e9d6 0 86.07.39.40.99 No 0x500 N/A G001.0000.01.04 1.1 N/A N/A N/A N/A None 05 00 0000 1C8210DE 00000000:05:00.0 37631458 2 1 16x 16x N/A N/A 0 1000 KB/s 7000 KB/s 0 % P8 Active Not Active Not Active Not Active Not Active Not Active Not Active Not Active Not Active 4031 MiB 328 MiB 3703 MiB 256 MiB 6 MiB 250 MiB Default 2 % 7 % 0 % 0 % 0 0 0 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A 49 C 102 C 99 C N/A N/A N/A P8 Supported N/A 72.00 W 72.00 W 72.00 W 52.50 W 75.00 W 151 MHz 151 MHz 405 MHz 544 MHz N/A N/A N/A N/A 1936 MHz 1936 MHz 3504 MHz 1708 MHz N/A N/A N/A N/A 3003 G /usr/lib/xorg/Xorg 18 MiB 3099 G /usr/bin/gnome-shell 48 MiB 3297 G /usr/lib/xorg/Xorg 121 MiB 3575 G /usr/bin/gnome-shell 104 MiB 4545 G /opt/google/chrome/chrome --type=gpu-process --field-trial-handle=1203743215467796045,13468618957907894243,131072 --enable-crash-reporter=bb1377b9-1963-4de9-8e66-045d9a7dd7a3, --gpu-preferences=KAAAAAAAAACAAABAAQAAAAAAAAAAAGAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAA --enable-crash-reporter=bb1377b9-1963-4de9-8e66-045d9a7dd7a3, --service-request-channel-token=17178544975993822337 32 MiB GeForce GTX 1050 Ti GeForce Disabled Disabled Disabled Disabled 4000 N/A N/A N/A GPU-c0adaaa2-5e1f-4156-cb0d-813b201249cd 1 86.07.39.40.99 No 0x2200 N/A G001.0000.01.04 1.1 N/A N/A N/A N/A None 22 00 0000 1C8210DE 00000000:22:00.0 37631458 2 1 16x 16x N/A N/A 0 0 KB/s 0 KB/s 0 % P8 Active Not Active Not Active Not Active Not Active Not Active Not Active Not Active Not Active 4040 MiB 2 MiB 4038 MiB 256 MiB 4 MiB 252 MiB Default 0 % 0 % 0 % 0 % 0 0 0 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A 42 C 102 C 99 C N/A N/A N/A P8 Supported N/A 72.00 W 72.00 W 72.00 W 52.50 W 75.00 W 139 MHz 139 MHz 405 MHz 544 MHz N/A N/A N/A N/A 1936 MHz 1936 MHz 3504 MHz 1708 MHz N/A N/A N/A N/A
YoRyan commented 5 years ago

NiceHash's excavator miner, for whatever reason, may not be starting. Please run it manually (~/.config/nuxhash/excavator/excavator) and check for any error messages.

UbuntuSteve commented 5 years ago

~/.config/nuxhash/excavator/excavator /home/steve/.config/nuxhash/excavator/excavator: error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory

YoRyan commented 5 years ago

You're missing ocl-icd-libopencl1. It's right there in the readme.

UbuntuSteve commented 5 years ago

It is starting to benchmark now but I also got this in the terminal BUG In pixman_region32_init_rect: Invalid rectangle passed Set a breakpoint on '_pixman_log_error' to debug

(nuxhash-gui:22210): Gtk-CRITICAL **: 19:41:33.182: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(nuxhash-gui:22210): Gtk-WARNING **: 19:41:33.182: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:22210): Gtk-WARNING **: 19:41:33.182: Negative content height -11 (allocation 1, extents 6x6) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:22210): Gtk-WARNING **: 19:41:33.182: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:22210): Gtk-WARNING **: 19:41:33.182: Negative content height -11 (allocation 1, extents 6x6) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:22210): Gtk-WARNING **: 19:41:33.182: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:22210): Gtk-WARNING **: 19:41:33.182: Negative content height -11 (allocation 1, extents 6x6) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:22210): Gtk-WARNING **: 19:41:33.191: Negative content width -15 (allocation 1, extents 8x8) while allocating gadget (node entry, owner GtkEntry)

(nuxhash-gui:22210): Gtk-WARNING **: 19:41:33.203: Negative content height -11 (allocation 1, extents 6x6) while allocating gadget (node button, owner GtkButton)

(nuxhash-gui:22210): Gtk-WARNING **: 19:41:33.203: Negative content height -11 (allocation 1, extents 6x6) while allocating gadget (node button, owner GtkButton)

Thank you!

YoRyan commented 5 years ago

Non-critical warning messages, you needn't be concerned.

UbuntuSteve commented 5 years ago

Hopefully I will be sending you some BTC everyday. Will this run on OpenSuse?

UbuntuSteve commented 5 years ago

Is it worth using CPU cores with this? I have two GPU but 16 cores (dual Xeon)

YoRyan commented 5 years ago

You'll need to figure out how to install the dependencies. I only offer instructions for Ubuntu.

Also, nuxhash does not (yet) support CPU mining. My experience is that it's not worth the electricity costs.

If you have any more general questions, I suggest you email me directly.

UbuntuSteve commented 5 years ago

I started mining and it picked one of the slower miners according the the benchmark.