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,260 points
83 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,260 points
44 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,660 points
695 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, 2019 in Blockchain by Omkar
• 68,840 points
275 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
• 68,840 points
672 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,340 points
119 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,810 points
202 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 617 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,260 points
677 views