Mist: Mist not connecting to running geth

Created on 2 Mar 2017  路  7Comments  路  Source: ethereum/mist

System information

Version: `0.8.9` OS & Version: macOS Sierra Node type: `geth 1.5.9`
When starting Mist with geth already running, Mist will not connect. The attached screen shots show the error and the console. Unfortunately, Mist will not allow me to resize at this point in the start cycle, so I can't get a larger screen shot of the console window.
When this happens, Mist will not exit gracefully and will not respond to quit. It must be forcibly killed from Activity Monitor. If geth is not already running, Mist will start up without any problem and will exit normally too.

node.zip

screen shot 2017-03-02 at 14 23 07
screen shot 2017-03-02 at 14 16 43

v0.8.9

Most helpful comment

Fatal: Error starting protocol stack: listen udp :30303: bind: address already in use

When this pops up using Mist on Mac while opening your private network, then you have to specify the exact path to the ipc file. The exact path is printed when geth is started in the command line!

For GETH:

geth attach ipc:/path/to/the/file/geth.ipc

For MIST:

/Applications/Mist.app/Contents/MacOS/Mist --rpc <path to chaindata>/geth.ipc

All 7 comments

Could you please check if there is any instance of geth running in the background?

There is a version of geth running. That is precisely the point - I want Mist to connect to the geth instance that is already running.

In this case please make sure the IPC paths match: https://github.com/ethereum/mist/issues/1666#issuecomment-283467107

Looks like that was the problem for me.

When using "testnet it seems that" geth defaults to putting geth.ipc at ~/Library/Ethereum/testnet/geth.ipc while Mist defults to putting it at ~/Library/Ethereum/geth.ipc

Running geth with the option --ipcpath ~/Library/Ethereum/geth.ipc solved the issue for me.

Thanks

Fatal: Error starting protocol stack: listen udp :30303: bind: address already in use

When this pops up using Mist on Mac while opening your private network, then you have to specify the exact path to the ipc file. The exact path is printed when geth is started in the command line!

For GETH:

geth attach ipc:/path/to/the/file/geth.ipc

For MIST:

/Applications/Mist.app/Contents/MacOS/Mist --rpc <path to chaindata>/geth.ipc

Step by step article of connecting Mist with Geth on a locally running network (in MacOS X) can be found here. Might be useful if you want to connect via RPC instead of IPC.

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chanukya246 picture chanukya246  路  5Comments

Raindownchips picture Raindownchips  路  6Comments

keznerve picture keznerve  路  5Comments

stbregeon picture stbregeon  路  3Comments

pingram3541 picture pingram3541  路  6Comments