Mist: Cannot stop mining - 'Start Mining' menu item does not change

Created on 7 Jun 2017  ·  10Comments  ·  Source: ethereum/mist

System information

Version: `0.8.10` OS & Version: osx Node type: `geth(default)`

  • Screenshots

screen shot 2017-06-07 at 1 26 10 pm

Once mining is started the menu item does not change. Is there no way to stop mining?

Triage Bug v0.8.10

Most helpful comment

Thanks for reporting.

in the meantime, there are two ways to solve this:

1.1 open the developer console Develop > Open developer tools > Mist UI
1.2 go to Console tab, and run web3.miner.stop()

2.1 run on your terminal geth attach
2.2 miner.stop()

All 10 comments

I'm experiencing this issue as well.

Thanks for reporting.

in the meantime, there are two ways to solve this:

1.1 open the developer console Develop > Open developer tools > Mist UI
1.2 go to Console tab, and run web3.miner.stop()

2.1 run on your terminal geth attach
2.2 miner.stop()

Both ways didn't work for me. geth not found, web3.miner.stop() raises an error.
I used killall geth to stop mining.

denispeplin, to get the geth command to work , you need to install the command line tools, for what you will need first to install brew

considering geth 1.7.2-stable-1db4ecdc, the block code

if (ret.result) {
    global.mining = true;
    createMenu(webviews);
}

in

const startMining = (webviews) => {
    ethereumNode.send('miner_start', [1])
        .then((ret) => {
            log.info('miner_start', ret.result);
            if (ret.result) {
                global.mining = true;
                createMenu(webviews);
            }
        })
        .catch((err) => {
            log.error('miner_start', err);
        });
};

is never reached because
ret = { isBatch: false, result: null }

ISSUE: Geth RESTARTS all the time automatically, even when you stop get by : killall -hup geth
solution: probably you are running homebrew, go to : ~/Library/LaunchAgents remove homebrew.

this solved the issue for me. 💯

Hi all,

I also had this issue but solved it fairly easily in the following way.

You just need to go to Ethereum Wallet >> Quit Ethereum Wallet. (Short cut is ⌘Q). This will shutdown your node and the mining process.

When you restart your wallet the mining will have stopped. This is evident from the log file. My log file previously showed mining processes being logged. Once I did this step, the log only showed chain updates.

regards,

Arfy

+1
Bug persists, I cannot stop mining when creating a solo network

The solution web3.miner.stop() does not work anymore because of not being able to call functions without callback in Mist anymore

+1
MacOS wallet can't stop minning on both testnet.
web3.miner.stop() does not work.

The first time you start mining will take some time as your node will
need to generate a 1GB dataset for the Proof of Work algorithm. You
will see “generating DAG” messages in the other console log, which
took about 8 minutes on my laptop. You can read more about this here:

https://github.com/ethereum/wiki/wiki/Ethash-DAG

Source:

https://medium.com/@mikesmolenski/getting-started-with-ethereum-4a3841276b6e

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Raindownchips picture Raindownchips  ·  6Comments

stephantual picture stephantual  ·  7Comments

Swift42 picture Swift42  ·  6Comments

ibart7 picture ibart7  ·  6Comments

pingram3541 picture pingram3541  ·  6Comments