Autolykos-GPU-miner icon indicating copy to clipboard operation
Autolykos-GPU-miner copied to clipboard

Miner Error: Some of expected fields not present in /block/candidate

Open ralampay opened this issue 5 years ago • 13 comments

Hi

I set up the node and miner. However the output seems to give this error:

2020-08-31 17:50:01,770 INFO [main thread] Waiting for block data to be published by node...
2020-08-31 17:50:01,772 ERROR [main thread] Some of expected fields not present in /block/candidate
2020-08-31 17:50:01,772 ERROR [main thread] Block data: {
  "MSG" : "AB8F6C28FC99A500A15E9F69583D0126E1F7345804664880C99496E890B914C3",
  "B" : 138044468569478798123221394308315099788204054836980398382911928,
  "PK" : "0311A4FB0054F7955366C5FCB224A0BD0A9BF19EF38098E37C0245C594B0ADEA97"
}

My nvidia-smi output:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100      Driver Version: 440.100      CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla T4            Off  | 00000000:00:1E.0 Off |                    0 |
| N/A   43C    P0    27W /  70W |   7410MiB / 15109MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0     49956      C   ./auto.out                                  7399MiB |
+-----------------------------------------------------------------------------+

I've tried every possible configuration and the node seems to be working ok. What could be the issue?

ralampay avatar Aug 31 '20 17:08 ralampay

I'm also getting the same output:

2020-09-01 15:18:24,668 INFO [main thread] Waiting for block data to be published by node...
2020-09-01 15:18:24,672 ERROR [main thread] Some of expected fields not present in /block/candidate
2020-09-01 15:18:24,672 ERROR [main thread] Block data: {
  "MSG" : "93CD5F7C74BFCC89A5BC2137211987CBAC2C708AA1606C0A6982D7471D399FF5",
  "B" : 138044468569478798123221394308315099788204054836980398382911928,
  "PK" : "03CB90D844ED8994A283D084891D2AC2B978B482799356310E97FB9C0BD380F2E7"
}

magick93 avatar Sep 01 '20 03:09 magick93

I'm also getting the same output:

2020-09-01 15:18:24,668 INFO [main thread] Waiting for block data to be published by node...
2020-09-01 15:18:24,672 ERROR [main thread] Some of expected fields not present in /block/candidate
2020-09-01 15:18:24,672 ERROR [main thread] Block data: {
  "MSG" : "93CD5F7C74BFCC89A5BC2137211987CBAC2C708AA1606C0A6982D7471D399FF5",
  "B" : 138044468569478798123221394308315099788204054836980398382911928,
  "PK" : "03CB90D844ED8994A283D084891D2AC2B978B482799356310E97FB9C0BD380F2E7"
}

Any luck in solving this? I tried different configurations for the node as well as the miner but still getting the same error. Currently I'm trying a released version 3.3.1 instead of the compiled one and reset all the blocks.

ralampay avatar Sep 01 '20 05:09 ralampay

Any luck in solving this?

None yet.

Currently I'm trying a released version 3.3.1 instead of the compiled one and reset all the blocks.

Yes I'm also using 3.3.1.

magick93 avatar Sep 01 '20 05:09 magick93

Any luck in solving this?

None yet.

Currently I'm trying a released version 3.3.1 instead of the compiled one and reset all the blocks.

Yes I'm also using 3.3.1.

No luck. Already fully synced but still experiencing the same error.

ralampay avatar Sep 01 '20 05:09 ralampay

There seems to be a problem to be pool only according to mhs_sam over at Discord which confuses me because I thought there would be no pool mining in Ergo.

Anyway, the quick fix is to revert to the previous commit and recompile the miner. Currently reverted to commit 1c1f3144732d98578b6a06a2fea92fd9b0259361 and everything seems to be working now.

ralampay avatar Sep 01 '20 11:09 ralampay

I tried to checkout this commit and recompile but it fails to compile:

nvcc -O3 -c --std=c++11 --compiler-options -Wall  src/bip39/bip39.cc -o src/bip39/bip39.o
nvcc -O3 -c --std=c++11 --compiler-options -Wall  src/bip39/util.cc -o src/bip39/util.o
nvcc -O3 -c --compiler-options -Wall src/jsmn.c -o src/jsmn.o
mkdir -p ./lib;
ar rc ./lib/lib.a ./src/mining.o ./src/prehash.o ./src/httpapi.o ./src/cryptography.o ./src/conversion.o ./src/processing.o ./src/easylogging++.o ./src/definitions.o ./src/request.o ./src/bip39/bip39.o ./src/bip39/util.o ./src/jsmn.o
ranlib ./lib/lib.a
nvcc ./src/test.cu ./lib/lib.a -L/usr/local/lib -lcurl -I/usr/local/include -lssl -lcrypto -lnvidia-ml -O3 --std=c++11 \
	-gencode arch=compute_30,code=sm_30 -gencode arch=compute_75,code=compute_75 -gencode arch=compute_30,code=compute_30   -DBLOCK_DIM=64 \
	-DNONCES_PER_ITER=0x400000 -o test.out
./src/test.cu(149): error: too few arguments in function call

./src/test.cu(152): warning: variable "solFound" was declared but never referenced

./src/test.cu(341): error: too few arguments in function call

./src/test.cu(480): warning: conversion from a string literal to "char *" is deprecated

./src/test.cu(477): warning: variable "pkstr" was declared but never referenced

./src/test.cu(478): warning: variable "pk" was declared but never referenced

2 errors detected in the compilation of "/tmp/tmpxft_0000be77_00000000-9_test.compute_75.cpp1.ii".
make: *** [Makefile:100: testexec] Error 1

magick93 avatar Sep 01 '20 19:09 magick93

any progress on this?

MrMaik avatar Sep 26 '20 04:09 MrMaik

You don't need test.cu, it seems like that's just for building the tests (Which are not the miner). It should have built the miner.exe fine by that point. If not, you can try removing any reference to test.cu from the build script. It will fail to build the second half (test.exe) but the miner should appear. Worked fine for me.

Zennii avatar Dec 28 '20 09:12 Zennii

please revert to this commit: https://github.com/ergoplatform/Autolykos-GPU-miner/commit/7b0d424802df5a7442f37ab15226cac205df066c

mhssamadani avatar Dec 29 '20 19:12 mhssamadani

Using commit https://github.com/ergoplatform/Autolykos-GPU-miner/tree/7b0d424802df5a7442f37ab15226cac205df066c I get error "Generated and received public keys do not match". This is even using Miner.exe -G and copy pasting into config so it should be the correct memonics. Using master I get the same error as reported above.

Willburn avatar Jan 03 '21 19:01 Willburn

Update: Thanks to help on discord - Deleted wallet. Restored it with a mnemonic phrase and now it works. Had to use the commit linked by mhssamadani. But it works!

Willburn avatar Jan 03 '21 21:01 Willburn

Issue still present.

Myridium avatar Mar 06 '21 13:03 Myridium

I am still getting this same error. I deleted the wallet and ran from scratch and waited for sync, like Willburn with the older commit, but this error persists in both cases.

2021-03-26 07:45:55,164 INFO [main thread] Waiting for block data to be published by node... 2021-03-26 07:45:55,165 ERROR [main thread] Some of expected fields not present in /block/candidate 2021-03-26 07:45:55,165 ERROR [main thread] Block data: { "MSG" : "2AA64C57C71494AFA7FCE6282A96420442CE960947244D89E653FBA0F69F71AB", "B" : 299451818453095487050760461252453384651247500367733723092982602, "H" : 453569, "PK" : "02725D4775B2ECAD63E8A2D62DF4647ED7FBA8F0E5066C1E234288ACC8A027818D" }

lewis421 avatar Mar 26 '21 12:03 lewis421