Empowering you to understand your world

Geth Error: ‘Unable to attach to remote geth’

If you have a Go Ethereum (Geth) node running in the background you’d like to interact with via console, but the ‘geth attach’ command yields an error like this:

Fatal: Unable to attach to remote geth: dial unix /home/user/snap/geth/477/.ethereum/geth.ipc: connect: no such file or directory

Specifying the address of localhost and the port your Geth node is listening on will work in some cases:

geth attach

If successful you should see something like this come up:

Welcome to the Geth JavaScript console!

instance: Geth/v1.9.6-unstable/linux-amd64/go1.11.13
at block: 2598340 (Mon, 27 Apr 2020 12:11:37 EST)
 modules: eth:1.0 net:1.0 rpc:1.0 web3:1.0

Leave a Reply

Subscribe to our newsletter
Get notified when new content is published