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

0 votes

First I ran this command: 

geth  --datadir “/home/blockchain/Downloads/privatechain/data” --networkid 99 --port 30303

And now I am trying to attach geth.ipc and start geth console but the connection is not happening.

$ geth attach /home/user/.ethereum/geth.ipc console
Fatal: Unable to attach to remote geth: dial unix /home/user/.ethereum/geth.ipc: connect: connection refused
Dec 6, 2018 in Blockchain by slayer
• 29,170 points
459 views

1 answer to this question.

0 votes

You should not mention double quotes for path. Run the first command without quotes:

geth  --datadir /home/blockchain/Downloads/privatechain/data --networkid 99 --port 30303
answered Dec 6, 2018 by Omkar
• 67,660 points

Related Questions In Blockchain

–1 vote
1 answer

Not able to use geth attach

You are getting this error because you ...READ MORE

answered Jan 17 in Blockchain by Omkar
• 67,660 points
310 views
0 votes
1 answer

Not able to invoke a contract in Ethereum Private chain using geth

Hope this helps: contract mortal { /* ...READ MORE

answered Oct 22, 2018 in Blockchain by Omkar
• 67,660 points
50 views
+2 votes
3 answers

Hyperledger Fabric: Peer Connection error: Failed obtaining connection: Could not connect to any of the endpoints.

 You can extend your /etc/hosts file and make orderer.example.com domain name ...READ MORE

answered Nov 13, 2018 in Blockchain by Omkar
• 67,660 points
982 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
170 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 508 views
0 votes
1 answer

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

Seems like the geth.ipc file is not present in ...READ MORE

answered Jan 16 in Blockchain by Omkar
• 67,660 points
159 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,660 points
122 views