Robo 3T Error : Network is unreachable

2019-04-18 15:21发布

I am trying to connect Robo 3T to my online database and it doesn't seem to be working. I am able to connect to local database with it. I tried connecting using MongoDB Compass and the Details and Auth are working fine and I am able to connect. But when I connect with the same details in Robo 3T, it doesn't seem to be working. How do I fix this? I am using Robo 3T Version 1.1 I tried same with Robomongo 1.0, and still getting the same error

Error Dialog

9条回答
Bombasti
2楼-- · 2019-04-18 15:53

Start your command prompt on windows.Go to the bin folder of Mongodb through command prompt and type mongod and enter.Now try to access again

查看更多
淡お忘
3楼-- · 2019-04-18 15:57

A better solution is to comment out or remove the bindIp setting from the config file /etc/mongod.conf

You must restart the service for the change to take effect

查看更多
我想做一个坏孩纸
4楼-- · 2019-04-18 15:57

This means mongo server is not started. You need to run mongod command on the terminal to start the server.

if you do not have mongo db installed on your machine. Download and install from the Link.

查看更多
Summer. ? 凉城
5楼-- · 2019-04-18 16:02

I had this symptom, and the ultimate fix is not yet captured in an answer here.

I was trying to connect to a mongo instance in the cloud using Robo 3T, and I was getting the "Network is unreachable" message.

Oddly, I could connect from using Robo 3T inside a Parallels VM on the same machine.

This led me to try the full Studio 3T on my mac, which could also connect just fine.

Ultimately, I discovered that there was an old dotfile from an ancient version of Robomongo that was causing the problem. rm -rf .config/robomongo did the trick. Now I can connect with the ordinary, free Robo 3T.

I'm guessing that I had an expired trial of Robomongo, from back before it was free, perhaps?

查看更多
看我几分像从前
6楼-- · 2019-04-18 16:03

If you get the following error then you should also check the following:

Pciture showing ROBO 3T auth options

The atlas servers at least require this setting, if you do not choose it, then you generally get the Network is unreachable message.

Also if you are using Atlas then you should check the Authentication tab and select SCRAM-SHA-1, however this generally results in an authentication error not a network unreachable one.

查看更多
The star\"
7楼-- · 2019-04-18 16:07

As said above, this is probably due to BindIp, if you use mac and brew to install it you won't find anything in /etc/mongod.conf instead you find it in /usr/local/etc/mongod.conf

systemLog:
  destination: file
  path: /usr/local/var/log/mongodb/mongo.log
  logAppend: true
storage:
  dbPath: /usr/local/var/mongodb
net:
  bindIp: 127.0.0.1

Change BindIp with caution!

And same goes for running it, to start MongoDB manualy use:

mongod --config /usr/local/etc/mongod.conf

or configure autostart on login with launchd by typing:

brew services start mongodb

I've also encountered corrupted data files on my local computer here:

/usr/local/var/mongodb

just removed them and it worked, you could see in the log that errors like:

** IMPORTANT: UPGRADE PROBLEM: The data files need to be fully upgraded to version 3.6 before attempting an upgrade to 4.0; see http://dochub.mongodb.org/core/4.0-upgrade-fcv for more details. 2018-08-01T00:15:50.220+0200 I NETWORK [initandlisten] shutdown: going to close listening sockets... 2018-08-01T00:15:50.220+0200 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-27017.sock 2018-08-01T00:15:50.224+0200 I STORAGE [initandlisten] WiredTigerKVEngine shutting down 2018-08-01T00:15:50.303+0200 I STORAGE [initandlisten] Downgrading WiredTiger datafiles. 2018-08-01T00:15:50.501+0200 I STORAGE [initandlisten] WiredTiger message [1533075350:501686][3594:0x7fffb492e380], txn-recover: Main recovery loop: starting at 14/3712 2018-08-01T00:15:50.598+0200 I STORAGE [initandlisten] WiredTiger message [1533075350:598867][3594:0x7fffb492e380], txn-recover: Recovering log 14 through 15 2018-08-01T00:15:50.664+0200 I STORAGE [initandlisten] WiredTiger message [1533075350:663976][3594:0x7fffb492e380], txn-recover: Recovering log 15 through 15 2018-08-01T00:15:50.715+0200 I STORAGE [initandlisten] WiredTiger message [1533075350:715398][3594:0x7fffb492e380], txn-recover: Set global recovery timestamp: 0 2018-08-01T00:15:51.002+0200 I STORAGE [initandlisten] shutdown: removing fs lock... 2018-08-01T00:15:51.005+0200 I CONTROL [initandlisten] now exiting 2018-08-01T00:15:51.005+0200 I CONTROL [initandlisten] shutting down with code:62

查看更多
登录 后发表回答