geth: Fatal: Error starting protocol stack: datadir already used by another process

0 votes

When I run geth,  i get the following error. How to solve this?

geth
INFO [12-05|12:10:00.698] Maximum peer count                       ETH=25 LES=0 total=25
Fatal: Error starting protocol stack: datadir already used by another process
Dec 5, 2018 in Blockchain by slayer
• 29,050 points
328 views

1 answer to this question.

0 votes

It seems like geth is already running. Find the process ID and kill that process. 

$ ps

   PID TTY          TIME CMD
 27957 pts/0    00:00:00 bash
 29453 pts/0    00:00:00 nano
 34395 pts/0    00:00:00 geth
 34436 pts/0    00:00:00 ps
$ kill -9 34395
answered Dec 5, 2018 by Omkar
• 67,120 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,120 points
92 views
0 votes
1 answer

Error in Chaincodes not getting picked up by ./startFabric.sh

After changing chaincode in fabric-samples/chaincode/fabcar/go/fabcar.go (this is ...READ MORE

answered Jul 31, 2018 in Blockchain by Shashank
• 10,330 points
119 views
0 votes
1 answer
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
105 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 233 views
0 votes
1 answer
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,120 points
62 views