Can not open geth console: Fatal: Error starting protocol stack: listen tcp :30303: bind: address already in use

0 votes

I am trying to open geth console using the following command but I get error:

geth console

INFO [12-05|13:14:49.572] Maximum peer count                       ETH=25 LES=0 total=25

INFO [12-05|13:14:49.573] Starting peer-to-peer node               instance=Geth/v1.8.18-stable-58632d44/linux-amd64/go1.10.4

INFO [12-05|13:14:49.574] Allocated cache and file handles         database=/home/edureka/.ethereum/geth/chaindata cache=768 handles=512

INFO [12-05|13:14:49.602] Initialised chain configuration          config="{ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: <nil> Engine: ethash}"

INFO [12-05|13:14:49.602] Disk storage enabled for ethash caches   dir=/home/user/.ethereum/geth/ethash count=3

INFO [12-05|13:14:49.602] Disk storage enabled for ethash DAGs     dir=/home/user/.ethash               count=2

INFO [12-05|13:14:49.602] Initialising Ethereum protocol           versions="[63 62]" network=1

INFO [12-05|13:14:49.603] Loaded most recent local header          number=0 hash=d4e567…cb8fa3 td=17179869184 age=49y7mo2w

INFO [12-05|13:14:49.603] Loaded most recent local full block      number=0 hash=d4e567…cb8fa3 td=17179869184 age=49y7mo2w

INFO [12-05|13:14:49.603] Loaded most recent local fast block      number=0 hash=d4e567…cb8fa3 td=17179869184 age=49y7mo2w

INFO [12-05|13:14:49.604] Loaded local transaction journal         transactions=0 dropped=0

INFO [12-05|13:14:49.604] Regenerated local transaction journal    transactions=0 accounts=0

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

How can I solve this and open geth console?

Dec 6, 2018 in Blockchain by slayer
• 29,240 points
482 views

1 answer to this question.

0 votes

The default port for geth is 30303. It seems like another geth process is running on that port. You can either terminate that geth process and run the command again or you can run the geth command on a different port

geth console --port 30304
answered Dec 6, 2018 by Omkar
• 68,480 points

Related Questions In Blockchain

0 votes
1 answer

Add Peers does not add a peer in Geth console

Setup actual boot node, don't treat base ...READ MORE

answered Sep 28, 2018 in Blockchain by slayer
• 29,240 points
407 views
0 votes
1 answer

How i can use nodejs to watch transactions in bitcoin network?

you can use  const Socket = require('blockchain.info/Socket'); const mySocket ...READ MORE

answered Jul 9, 2018 in Blockchain by digger
• 26,600 points
60 views
0 votes
1 answer

How can I retrieve to and from address in transaction directly from blockchain?

The spending conditions, i.e., who is able ...READ MORE

answered Jul 11, 2018 in Blockchain by Shashank
• 10,350 points
90 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
188 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 559 views
0 votes
1 answer

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

It seems like geth is already running. ...READ MORE

answered Dec 5, 2018 in Blockchain by Omkar
• 68,480 points
549 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 in Blockchain by Omkar
• 68,480 points
645 views