cazala / coin-hive-stratum

use CoinHive's JavaScript miner on any stratum pool
http://npmjs.com/package/coin-hive-stratum
416 stars 463 forks source link

pool connection error error: { code: -1, message: 'Unauthenticated' } } #93

Open cron13 opened 6 years ago

cron13 commented 6 years ago

Hi, I'm constantly getting these messages: pool connection error error: {code: -1, message: 'Unauthenticated'}}

After restarting the proxy, everything becomes fine. I am mine through pool.supportxmr.com 8892 and use scripts from this guide https://github.com/cazala/coin-hive-stratum/wiki/Deploy-to-now.sh-and-GitHub-Pages on frontend

cazala commented 6 years ago

Hi,

which version of the proxy are you using? make sure you are using the latest one v2.6.2.

You can see the version logged as the first line when starting the proxy, or by hitting the /version endpoint.

osfcacuk commented 6 years ago

I have noticed that if I kill the process that is mining rather than exit sometimes the proxy thinks the miner is still connected then after a while I got the same error message. However it didn't affect miners re-joining

cazala commented 6 years ago

If that's the case it shouldn't impact the hashrate, but it does impact on memory (garbage collector is not purging dead miners) and bandwidth usage (if the keepalives from disconnected miners are still being sent).

I'll look into it when I find some time. Thanks for reporting!

tjosm commented 6 years ago

I'm seeing this on V2.6.4

cazala commented 6 years ago

which pool?

tjosm commented 6 years ago

I'm behind XNP

cron13 commented 6 years ago

i update proxy to v2.6.2 and problem gone

matthewlilley commented 6 years ago

I see this on 2.6.4 mining on Electroneum pools, not sure about Monero.

matthewlilley commented 6 years ago

Just checked, I see it on Monero pools also.

patrickbau commented 6 years ago

Can anyone help me with this error sometimes i see this error ,But i don't know how to know which version of the proxy and how to update to the version 2.6.4 Thank you

cazala commented 6 years ago

npm install -g coin-hive-stratum@latest if you use it from the CLI, or npm install --save coin-hive-stratum@latest if you use it from node_modules

patrickbau commented 6 years ago

Thank you Is that ok ?

cazala commented 6 years ago

yes, you can check when you start the proxy it should log the version as the first line in the logs, or you can hit the /version endpoint while it's running to get the version as well.

procloud commented 6 years ago

something is definitely up with 2.6.6... i woke up this morning with a handful of miners connected but none where hashing.

cazala commented 6 years ago

have you tried v2.6.7?

procloud commented 6 years ago

i havent!

matthewlilley commented 6 years ago

Still present in 2.6.7, quite often I see:

pool connection error (7dcffa94-1c68-43a0-b6d0-71488badd4d8): {"code":-1,"message":"Invalid job id"} proxy error: undefined

procloud commented 6 years ago

still same issue, woke up this morning, miners connected, but not hashing with 2.6.7. no jobs coming from pool.

matthewlilley commented 6 years ago

There an issue mining to electroneum pools, I'd avoid it for now.