Second node throws an error: Address already in use

+1 vote
multichaind chain3 -daemon

MultiChain Core Daemon build 1.0 beta 2 protocol 10008

MultiChain server starting
Retrieving blockchain parameters from the seed node 172.31.24.216:6311 ...
Error: An error occurred while setting up the RPC address 127.0.0.1 port 6310 for listening: bind: Address already in use
Error: Unable to bind to 0.0.0.0:6311 on this computer. MultiChain Core is probably already running.
Error: Failed to listen on any port. Use -listen=0 if you want this.
asked Jul 27, 2017 by anonymous

3 Answers

+1 vote
Try:

multichain-cli chain3 stop
multichaind chain3@host:port -daemon
answered Jul 28, 2017 by dash
+2 votes
Are you trying to run two multichaind  -daemon clients from the same system? This could be because you are already connected to a node with multichaind and you are trying to connect to another.

See https://www.multichain.com/qa/2541/how-to-deploy-two-server-nodes-on-single-machine for a related question relating to running two multichaind clients on the same system.
answered Jul 28, 2017 by RobertJ
+1 vote

This means MultiChain can't listen for incoming API calls on the chosen port, because some other process on the same server is using that port. Most likely, another copy of MultiChain? You can use ps -x to see.

answered Jul 28, 2017 by MultiChain
...