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,040 points
220 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 65,840 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
• 65,840 points
62 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
96 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
63 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 112 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
• 65,840 points
49 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.