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,310 points
203 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,310 points
200 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,720 points
1,435 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
2,931 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,150 points
1,347 views
0 votes
1 answer

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

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,440 points
521 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,830 points
720 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, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 1,435 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,310 points
1,367 views