cryptonote-universal-pool icon indicating copy to clipboard operation
cryptonote-universal-pool copied to clipboard

Error: Failed to parse block

Open phucvinh52 opened this issue 8 years ago • 16 comments

Hello all, I have a poblem with my pool. When i run "node init.js" and run minerd, it occur that error.


2017-01-22 06:18:18 [api] Broadcasting to 2 visitors and 0 address lookups
Error: Failed to parse block
    at Object.BlockTemplate.nextBlob (/pool/lib/pool.js:120:23)
    at Object.Miner.getJob (/pool/lib/pool.js:297:41)
    at handleMinerMethod (/pool/lib/pool.js:492:28)
    at handleMessage (/pool/lib/pool.js:606:13)
    at Socket.socket.on.on.on.pushMessage (/pool/lib/pool.js:660:25)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:746:14)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:404:5)

2017-01-22 06:18:20 [master] Pool fork 1 died, spawning replacement worker...

Do you have any way to resolve this poblem? Thank all

phucvinh52 avatar Jan 22 '17 06:01 phucvinh52

Who solved this problem?


Tuned coin bytecoin. When the miner is turned on, the error "Error: Failed to parse block" appears.

Once it was possible to begin to extract a coin for a minute, after the restart of the miner again such an error went.

Bytecoind and sipmlewallet updated. All the default settings, added only sipmlewallet (--rpc-bind-port 8082 --daemon-port 8081)

Tell me, what's the problem? I beat the fifth day, I can not find an error.

2017-03-17 01:29:44 [payments] No workers' balances reached the minimum payment threshold 2017-03-17 01:29:53 [api] Stat collection finished: 27 ms redis, 9004 ms daemon 2017-03-17 01:29:53 [api] Broadcasting to 0 visitors and 0 address lookups 2017-03-17 01:29:55 [pool] (Thread 1) New block to mine at height 1222720 w/ difficulty of 46961927 2017-03-17 01:29:55 [pool] (Thread 1) Started server listening on port 5555 2017-03-17 01:30:12 [pool] (Thread 2) New block to mine at height 1222720 w/ difficulty of 46961927 2017-03-17 01:30:12 [pool] (Thread 2) Started server listening on port 5555 2017-03-17 01:30:14 [unlocker] No blocks candidates in redis

Error: Failed to parse block at Object.BlockTemplate.nextBlob (/home/ub14/poolx/lib/pool.js:128:23) at Object.Miner.getJob (/home/ub14/poolx/lib/pool.js:301:41)` at handleMinerMethod (/home/ub14/poolx/lib/pool.js:510:28) at handleMessage (/home/ub14/poolx/lib/pool.js:644:13) at Socket.socket.on.on.on.pushMessage (/home/ub14/poolx/lib/pool.js:698:25) at Socket.EventEmitter.emit (events.js:95:17) at Socket. (stream_readable.js:746:14) at Socket.EventEmitter.emit (events.js:92:17) at emitReadable (_stream_readable.js:408:10) at emitReadable (_stream_readable.js:404:5)

2017-03-17 01:30:37 [master] Pool fork 2 died, spawning replacement worker... 2017-03-17 01:30:42 [pool] (Thread 1) New block to mine at height 1222721 w/ difficulty of 47045153 2017-03-17 01:30:42 [api] Stat collection finished: 6 ms redis, 43443 ms daemon 2017-03-17 01:30:42 [api] Broadcasting to 0 visitors and 0 address lookups 2017-03-17 01:30:44 [unlocker] No blocks candidates in redis

ub14 avatar Mar 17 '17 12:03 ub14

+1 on Monero

Nashatyrev avatar Apr 20 '17 12:04 Nashatyrev

Any fix for this for non-monero coins like DigitalNote that you're aware of? I'm getting the same error but only when a miner tries to connect and can't figure it out: https://i.imgur.com/5vh9yQK.jpg

nibbons avatar Jun 06 '17 05:06 nibbons

same issue with monero. any solution?

armpdq avatar Jul 07 '17 21:07 armpdq

Same issue

MelonSmasher avatar Jul 13 '17 03:07 MelonSmasher

same issue. any solution? I have found that the error is coming from the cryptonote-util package

OfficiallyUndead avatar Jul 19 '17 21:07 OfficiallyUndead

Same issue for me too. Any solution? Hoping...

KelvinJones avatar Aug 21 '17 05:08 KelvinJones

Still looking for solution if somebody has one?

OfficiallyUndead avatar Sep 15 '17 12:09 OfficiallyUndead

Mine is fine now. I can't remember exactly but I believe it has to do with syncing the block chain. Once you bytecoin Daemon is fully up to date, not just connected to the network, the pool will run fine. That seemed to work for for me. Hope that helps.


From: Dean Cole [email protected] Sent: Friday, September 15, 2017 2:43:45 PM To: fancoder/cryptonote-universal-pool Cc: KelvinJones; Comment Subject: Re: [fancoder/cryptonote-universal-pool] Error: Failed to parse block (#36)

Still looking for solution if somebody has one?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/fancoder/cryptonote-universal-pool/issues/36#issuecomment-329772049, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ab1E9O5fmcD3-P4nkVPB2keKaaSPtg_oks5sinEBgaJpZM4LqS4A.

KelvinJones avatar Sep 15 '17 18:09 KelvinJones

That was the problem but also node version was wrong.

I have one other question, I have pool working now but it's not adding pending balance to miners. So they never get processed for payments. Any ideas what could be the issue?

OfficiallyUndead avatar Sep 15 '17 18:09 OfficiallyUndead

Not sure about that, I'm seeing the same behaviour on mine. However, I think it has to do with the "maturity". My guess is after it collects 10 blocks it will start paying out...but that's purely a guess.


From: Dean Cole [email protected] Sent: Friday, September 15, 2017 8:52:07 PM To: fancoder/cryptonote-universal-pool Cc: KelvinJones; Comment Subject: Re: [fancoder/cryptonote-universal-pool] Error: Failed to parse block (#36)

That was the problem but also node version was wrong.

I have one other question, I have pool working now but it's not adding pending balance to miners. So they never get processed for payments. Any ideas what could be the issue?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/fancoder/cryptonote-universal-pool/issues/36#issuecomment-329869484, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ab1E9ACQ0fwvaH9GqNoCQPOfBHIomNHfks5sisdXgaJpZM4LqS4A.

KelvinJones avatar Sep 15 '17 18:09 KelvinJones

+1

danielbjornadal avatar Sep 25 '17 20:09 danielbjornadal

lol guys. you have to set "async": "1.5.2", and "cryptonote-util": "git://github.com/Snipa22/node-cryptonote-util#xmr-Nan-2.0" in your package.json and rebuild app

armpdq avatar Sep 26 '17 08:09 armpdq

Thanks @armpdq ! Now it's working.

msilvoli avatar Nov 26 '17 20:11 msilvoli

Oh these pools are terrible :-( Have been trying to get my pool to accept connections from a windows wallet but just crashes every time.

2018-01-21 21:36:19 [api] Broadcasting to 0 visitors and 0 address lookups

Error: Failed to parse block at Object.BlockTemplate.nextBlob (/home/karol/DigitalNoteServ/lib/pool.js:122:23) at Object.Miner.getJob (/home/karol/DigitalNoteServ/lib/pool.js:299:41) at handleMinerMethod (/home/karol/DigitalNoteServ/lib/pool.js:494:28) at handleMessage (/home/karol/DigitalNoteServ/lib/pool.js:624:13) at Socket.socket.on.on.on.pushMessage (/home/karol/DigitalNoteServ/lib/pool.js:678:25) at Socket.emit (events.js:95:17) at Socket. (stream_readable.js:765:14) at Socket.emit (events.js:92:17) at emitReadable (_stream_readable.js:427:10) at emitReadable (_stream_readable.js:423:5)

2018-01-21 21:36:19 [master] Pool fork 3 died, spawning replacement worker...

Have really tried everything possible. I see there is a lot of warnings when doing npm update. This is for XDN. Tried changing cryptonote-util and still nothng. Is it maybe that I am using ubuntu 14.04?

karoljoc avatar Jan 21 '18 20:01 karoljoc

Any luck fixing this? I'm trying with ITNS, and no matter what I do I can't seem to fix this error. I get the same error as Karoljoc does

Error: Failed to parse block at Object.BlockTemplate.nextBlob (/home/paul/pool/lib/pool.js:120:23) at Object.Miner.getJob (/home/paul/pool/lib/pool.js:297:41) at handleMinerMethod (/home/paul/pool/lib/pool.js:492:28) at handleMessage (/home/paul/pool/lib/pool.js:606:13) at Socket.socket.on.on.on.pushMessage (/home/paul/pool/lib/pool.js:660:25) at Socket.EventEmitter.emit (events.js:95:17) at Socket. (stream_readable.js:746:14) at Socket.EventEmitter.emit (events.js:92:17) at emitReadable (_stream_readable.js:408:10) at emitReadable (_stream_readable.js:404:5)

2018-02-18 20:55:45 [pool] (Thread 4) Invalid method: mining.subscribe ([]) from

I've tried several miners and they all cause the same error. Thanks.

CerveloFellow avatar Feb 19 '18 02:02 CerveloFellow