cazala / coin-hive-stratum

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

PM2(?) Issue "Upgrade Required" #152

Open SiemdeNijs opened 6 years ago

SiemdeNijs commented 6 years ago

Hello Everyone,

Currently I'm running the script all fine with the command coin-hive-stratum 8892 --host... , But now when I wanted to run the script with PM2 and make sure that the script is auto-started at system boot, I've run into a different problem: any page ("/stats /miners /version, etc, etc") only returns the text "Upgrade required".

It seems that NPM, Node, PM2 & Coin-Hive-Stratum are all on the latest versions, so I'm not sure how to continue right now. What should be "upgraded", as stated in the message ? I cannot do anything at this moment, other than stare at the text on the webpage.

NPM tells me there are no outdated packages either.

panamantis commented 6 years ago

I could connect to my proxy but it wasn't executing the mining (ie/ 0 H/S on client). Until I did a: npm install pm2 -g pm2 update

cazala commented 6 years ago

mm "Upgrade required" is the response when you access the websocket endpoint with the browser. For some reason those /stats, /miners, /version endpoints are being served as if they were the websocket endpoint..