cazala / coin-hive

CoinHive cryptocurrency miner for node.js
https://www.npmjs.com/package/coin-hive
MIT License
1.98k stars 400 forks source link

coin-hive installs non ARM puppeteer build on ARM system #96

Open 0x15f opened 6 years ago

0x15f commented 6 years ago

I'm attempting to run coin-hive on a Raspberry PI 3 running Raspbian. The puppeteer/chromium module installed by coin-hive isn't an ARM build.

Error:

/usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: 1: /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: ELF: not found
/usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: 1: /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: cannot open S: No such file
/usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: 1: /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: �hP��PôPô����: not found
/usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: 1: /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: @�: not found
/usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: 2: /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: @%$@@@0ppp�c�c��c��c��c@�@�,#�,#Q�td��c��c��c: not found
/usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: 3: /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: �: not found
/usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: 4: /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: �: not found
/usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: 5: /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: �: not found
/usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: 6: /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: �: not found
/usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: 7: /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: �: not found
/usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: 8: /usr/local/lib/node_modules/coin-hive/node_modules/puppeteer/.local-chromium/linux-497674/chrome-linux/chrome: Syntax error: ")" unexpected

Node Version: v9.4.0

NPM Version: 5.6.0

Output of uname -a: Linux raspberrypi 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l GNU/Linux

0x15f commented 6 years ago

I read #75 and installed an ARM build and set the executablePath to the extracted directory. I'm now getting this empty error:

An error occured Failed to launch chrome!

TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
subspan commented 6 years ago

Any update on this @0x15f ?

0x15f commented 6 years ago

No update @Scibot-Dev, I had to use a different miner.

mirotvorez5 commented 6 years ago

Благодарю за письмо.Иван

t133 commented 6 years ago

Hey , i have tha same thing .. Which miner did you find? Cab mine for another miner to coinhive??