zone117x / node-cryptonote-pool

Mining pool for CryptoNote based coins such as Bytecoin and Monero
GNU General Public License v2.0
826 stars 1.14k forks source link

Error: Failed to parse block #163

Open Ozhiganov opened 7 years ago

Ozhiganov commented 7 years ago

Help to understand the problem, when connecting to the pool, the miner issues an error

Error: Failed to parse block at Object.BlockTemplate.nextBlob (/home/USER/fork/lib/pool.js:128:23) at Object.Miner.getJob (/home/USER/fork/lib/pool.js:302:41) at handleMinerMethod (/home/USER/fork/lib/pool.js:531:28) at handleMessage (/home/USER/fork/lib/pool.js:660:13) at Socket.socket.on.on.on.pushMessage (/home/USER/fork/lib/pool.js:714:25) at Socket.emit (events.js:95:17) at Socket. (_streamreadable.js:765:14) at Socket.emit (events.js:92:17) at emitReadable (_stream_readable.js:427:10) at emitReadable (_stream_readable.js:423:5)

2017-06-07 07:28:44 [master] Pool fork 1 died, spawning replacement worker...

crc-32 commented 7 years ago

I'm having the same issue, tried code from other forks and scanned through issues and solutions to no avail, really hope there is an easy fix.

MelonSmasher commented 7 years ago

Same issue

dinho-afsn commented 7 years ago

same issue

OfficiallyUndead commented 7 years ago

same issue

dinho-afsn commented 7 years ago

try here https://github.com/zone117x/node-cryptonote-pool/issues/176

Replace in your package.json "cryptonote-util": "git://github.com/forknote/node-cryptonote-util.git"

Remove the folder node_modules or the module to be replaced And run npm update again

c0urier commented 7 years ago

I have a similar problem:

Basic info: $USER@host:~/pool> lsb_release -d Description: Ubuntu 16.04.3 LTS

$USER@host:~/pool> nodejs -v v6.11.2

$USER@host:~/pool> npm -v 3.10.10

$USER@host:~/pool> redis-server -v Redis server v=4.0.1 sha=00000000:0 malloc=jemalloc-4.0.3 bits=64 build=eaeb3715173af01a

The error message happens when a client tries to connect - Everything is starting up correctly.: Error: Failed to parse block at Error (native) at Object.nextBlob (/home/$USER/pool/lib/pool.js:128:23) at Object.getJob (/home/$USER/pool/lib/pool.js:301:41) at handleMinerMethod (/home/$USER/pool/lib/pool.js:510:28) at handleMessage (/home/$USER/pool/lib/pool.js:644:13) at Socket. (/home/$USER/pool/lib/pool.js:698:25) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at Socket.Readable.push (_stream_readable.js:134:10)

The above comment by dinho-afsn did not have any positive effect. Any advice greatly appreciated.

mxjoe commented 7 years ago

I have the same problem and the error comes up only when a client connects.

Error: Failed to parse block at Error (native) at Object.nextBlob (/home/secumine-adm/pool/lib/pool.js:131:23) at Object.getJob (/home/secumine-adm/pool/lib/pool.js:305:41) at handleMinerMethod (/home/secumine-adm/pool/lib/pool.js:514:28) at handleMessage (/home/secumine-adm/pool/lib/pool.js:648:13) at Socket. (/home/secumine-adm/pool/lib/pool.js:702:25) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at Socket.Readable.push (_stream_readable.js:134:10)

OfficiallyUndead commented 7 years ago

Use NVM (node version manager) and install more 0.10.48. Then remove node_modules folder. Run npm update and your ready to go.

mxjoe commented 7 years ago

Thanks d3ancole1995! My XMR pool under secumine.net is working now. There where two things I had to adjust:

  1. Revert back in package.json to git://github.com/Snipa22/node-cryptonote-util#xmr-Nan-2.0
  2. Install nodejs v0.10.48, check that v0.10.48 is default nodejs version in my system, remove the node_modules folder and run npm update.
Jjarrard commented 7 years ago

@mxjoe I wish I could hug you! nvm install v0.10.48 (you are now using v0.10.48) rm -rf node_modules npm update node init.js running smooth as silk

dinho-afsn commented 7 years ago

dead project!

Jjarrard commented 7 years ago

@dinho-afsn with a few tweaks it still works

dinho-afsn commented 7 years ago

besides not working properly you will never be able to make the automatic payments work, I am a programmer and I know what I am talking about. I have 2 pools currently online

Jjarrard commented 7 years ago

Tell that to my automatic payments

dinho-afsn commented 7 years ago

because you do not say that it does not work properly, because if you say that your mining payments are working is a lie, another thing that nobody talks about is that every miner that enters the pool using this script will generate a fake miner, so if you have 10 miners will generate 10 more fakes by paying fees

dinho-afsn commented 7 years ago

no lies please

dinho-afsn commented 7 years ago

I worked in pools for years

Jjarrard commented 7 years ago

You should become a life guard

dinho-afsn commented 7 years ago

I already am! https://github.com/cryptonotefoundation/cryptonote

Jjarrard commented 7 years ago

https://www.reddit.com/r/Monero/comments/6k078b/nodecryptonotepool_automatic_payout_not_working/ all it took to fix autopayments TLDR: add --disable-rpc-login --trusted-daemon arguments to the monero-wallet-rpc

dinho-afsn commented 7 years ago

The problem with this pool is not rpc or something. I do not recommend using these scripts, it pays to waste time and mount one using packages node js https://github.com/lucasjones/node-cryptonote-util

dinho-afsn commented 7 years ago

please note the staff you developed do not support it. Do you need to say something else?

Jjarrard commented 7 years ago

It's a free, open sourced product, I got it working, and it suits my needs

RavenHuginn commented 6 years ago

Error: Failed to parse block at Object.BlockTemplate.nextBlob (/opt/pool/lib/pool.js:128:23) at Object.Miner.getJob (/opt/pool/lib/pool.js:301:41) at handleMinerMethod (/opt/pool/lib/pool.js:510:28) at handleMessage (/opt/pool/lib/pool.js:644:13) at Socket.socket.on.on.on.pushMessage (/opt/pool/lib/pool.js:698:25) at Socket.emit (events.js:95:17) at Socket. (_streamreadable.js:765:14) at Socket.emit (events.js:92:17) at emitReadable (_stream_readable.js:427:10) at emitReadable (_stream_readable.js:423:5)

2017-11-10 12:37:01 [master] Pool fork 1 died, spawning replacement worker...

"cryptonote-util": "git://github.com/forknote/node-cryptonote-util.git"

node -v v0.10.48

Not work, help