“geth attach” command shows error: Fatal: Unable to attach to remote geth

0 votes

I am trying to run get attach to attach to another node running on my system. But when I run it, I am getting the following error:

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

Jan 16 in Blockchain by slayer
• 29,170 points
116 views

1 answer to this question.

0 votes

Seems like the geth.ipc file is not present in the path mentioned in your command. 

If you have initialized the genesis block correctly then you should have the file in ./data directory. Anyways you can find it like this:

locate geth.ipc

It will show the location and then use that location

geth attach ipc:/<path to file>/geth.ipc console
answered Jan 16 by Omkar
• 67,620 points

Related Questions In Blockchain

0 votes
1 answer

geth attach command showing error: bind: address already in use

Seems like there is already a geth instance ...READ MORE

answered Jan 16 in Blockchain by Omkar
• 67,620 points
548 views
+1 vote
5 answers

How to solve "truffle: command not found" error in blockchain?

First try restarting the system and then ...READ MORE

answered Jul 16, 2018 in Blockchain by slayer
• 29,170 points
932 views
0 votes
1 answer

'Invalid sender' error after upgrading to geth 1.4.0

Guessing that the JSON RPC stuff changed ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
58 views
0 votes
1 answer

Unboxing truffle: Shows error: Stopping to prevent overwriting data.

As mentioned in the error: unboxing or ...READ MORE

answered Nov 30, 2018 in Blockchain by Omkar
• 67,620 points
181 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
153 views
0 votes
1 answer
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6 in Blockchain by saeedi
• 120 points

edited Mar 6 by Omkar 422 views
0 votes
1 answer

Not able to attach geth.ipc: Fatal: Unable to attach to remote geth: connect: connection refused

You should not mention double quotes for ...READ MORE

answered Dec 6, 2018 in Blockchain by Omkar
• 67,620 points
410 views
–1 vote
1 answer

geth attach Fatal: Unable to attach to remote geth: no known transport for URL scheme "c"

Seems like geth.ipc path is not set. When ...READ MORE

answered Jan 16 in Blockchain by Omkar
• 67,620 points
101 views