eabyshev
eabyshev

Reputation: 721

Can not start Mongo node

Trying to start mongo node with command

mongos --configdb 192.168.6.3:27019 --port 27018

In results having output:

Tue Mar 15 16:08:21.062 [mongosMain] warning:  couldn't check dbhash on config server 192.168.6.3:27019 :: caused by :: 11002 socket exception [CONNECT_ERROR] server [192.168.6.3:27019] mongos connectionpool error: couldn't connect to server 192.168.6.3:27019
Tue Mar 15 16:08:21.064 [mongosMain] ERROR: error upgrading config database to v4 :: caused by :: could not load config version for upgrade :: caused by :: 11002 socket exception [CONNECT_ERROR] server [192.168.6.3:27019] mongos connectionpool error: couldn't connect to server 192.168.6.3:27019
Tue Mar 15 16:08:21.064 warning:  couldn't check dbhash on config server 192.168.6.3:27019 :: caused by :: 11002 socket exception [CONNECT_ERROR] server [192.168.6.3:27019] mongos connectionpool error: couldn't connect to server 192.168.6.3:27019

Could you help me, what I'm doing wrong?

Upvotes: 0

Views: 451

Answers (1)

Evgeny S.
Evgeny S.

Reputation: 858

I would summarize solution from the comments to close the question.

First, read the mongo server logs.

If you see DNS-related errors there then check if you use correct DNS names which your system can resolve. To exclude DNS errors try to run server using direct IP addresses in configurtaion.

If you still see network-related errors (such as could not connect to server) then check:

  • the server instance you are trying to connect to is running
  • you use correct IP address and port
  • your network links are up
  • firewalls both on peer and your side are not blocking connection

Upvotes: 1

Related Questions