question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to run Monero miner on raspberry pi

See original GitHub issue

(node:5095) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Timed out after 30000 ms while trying to connect to Chrome! The only Chrome revision guaranteed to work is r497674 (node:5095) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

node -v v8.9.3

uname -a Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux

chromium-browser -version Chromium 60.0.3112.89 Built on Ubuntu 14.04, running on Raspbian 9.1

Code: `const CoinHive = require(‘coin-hive’);

(async() => {

// Create miner const miner = await CoinHive(‘address’, { launch: { executablePath: ‘/usr/bin/chromium-browser’, args: [‘–disable-setuid-sandbox’, ‘–no-sandbox’] } });

// Start miner await miner.start();

// Listen on events miner.on(‘found’, () => console.log(‘Found!’)) miner.on(‘accepted’, () => console.log(‘Accepted!’)) miner.on(‘update’, data => console.log( Hashes per second: ${data.hashesPerSecond} Total hashes: ${data.totalHashes} Accepted hashes: ${data.acceptedHashes} ));

// Stop miner setTimeout(async() => await miner.stop(), 60000); })();`

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
felixgalindocommented, Dec 20, 2017

The way I did it was by downloading the chromium build from this url https://drive.google.com/a/chromium.org/uc?id=0B7RLEApsOKBLZUZuQl9JR3dXS2c&export=download Then set executablePath to where you extracted it to. For example:

const miner = await CoinHive('something', { launch: { executablePath: '/home/pi/coin-hive/headless-chrome/chrome', args: ['--disable-setuid-sandbox', '--no-sandbox'] } });

This has been tested on Pi 3.

1reaction
felixgalindocommented, Dec 23, 2017

No problem. Glad it worked for you too.

On Dec 23, 2017, at 2:37 AM, Antonio Gomez notifications@github.com wrote:

@felixgalindo Thanks for that man, it worked! I was about to buy ExaGear to run Chrome instead of Chromium and then I found your hack. Awesome!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raspberry Pi stops mining unintentionally : r/MoneroMining
Run screen on the Pi then run xmrig from in there, CTRL-a d detaches. Then on disconnection you just ssh back in and...
Read more >
How to mine Monero on the Raspberry Pi | Geek Culture
Mining Monero. To start mining, we just need to run the following command: ### Running xmrig (be sure to run the command on...
Read more >
Mining Monero on raspi 4 · Issue #2027 · xmrig/xmrig - GitHub
Hello, I'm new in the world of mining, I'm mining monero via terminal on ... false disable hardware AES (raspberry pi doesn't support...
Read more >
Xmrig on Raspberrypi OS 32-bit
Steps to install Xmrig XMR miner on your raspberypi OS 32-bit. ... or "sudo systemctl start xmrig" failed to start xmrig.
Read more >
Monero wallet GUI, unable to execute on KDE Raspbian OS ...
There isn't currently a release build of the GUI wallet for ARM (which is the architecture of Raspberry Pi's). So if you want...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found