[Ethereum] How to fix “address already in use” error when attempting to launch geth console

blockchainsynchronization

I'm downloading the chain and I've processed more than 2 million blocks so far. I'm trying to attach to the geth console to view the syncing status, but I've tried typing geth console in another terminal (on Mac) and I get an error:

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

If I've understood correctly I should type geth console and then eth.syncing.

Best Answer

The error is most likely because the geth is already running and when you are trying to start another geth process using the same 30303 default port. If you know the datadir of the geth process which is downloading the chain, find a geth.ipc file in that datadir and use geth attach ipc:<geth.ipc path> to connect to the existing process.

Related Topic