Ubuntu get attach command failed

0 votes

I opened a shell and creat a new account and use "miner.start()" than i opened a new shell and use "geth attach" command but failed, and the error message is

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

then i try "geth" and the error message is

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

i want to know how to use geth attach?

Sep 7, 2018 in Blockchain by slayer
• 29,370 points
820 views

1 answer to this question.

0 votes

The geth.ipc gets created when Geth is succesfully launched.It looks like another Geth instance is already running,which could be stopping the succesful launch.Find that Geth process and kill it.

ps -eaux | grep "geth"

Get the process id and kill that process using

kill -9 <pid>

Now invoke geth and attach to it

answered Sep 7, 2018 by Surya

Related Questions In Blockchain

0 votes
1 answer

How to solve "Failed to get identity 'admin'" error?

It seems like this error is caused ...READ MORE

answered Jul 13, 2018 in Blockchain by slayer
• 29,370 points
676 views
0 votes
1 answer

Hyperledger Fabric CA "Failed to get user: User not found"

The problem could be because of the ...READ MORE

answered Jul 23, 2018 in Blockchain by digger
• 26,740 points
2,529 views
0 votes
2 answers

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

please check from root, sudo -i geth attach READ MORE

answered Nov 7, 2020 in Blockchain by balachandar
• 140 points
7,211 views
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, 2019 in Blockchain by Omkar
• 69,220 points
2,723 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,462 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
1,947 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,473 views
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

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

Mar 6, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 2,511 views
+1 vote
4 answers

What is hf.Registrar.Roles in fabric-ca-client command?

The "hf.Registrar.Roles" attribute is used to control ...READ MORE

answered Jul 11, 2018 in Blockchain by slayer
• 29,370 points
2,882 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP