I'm unable to connect mongodb-atlas with mongodb-compass getting this error
connection <monitor> to 15.207.215.177:27017 closed
Related
MongoDB shell version v4.4.6
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: NetworkTimeout: Error connecting to 127.0.0.1:27017 :: caused by :: Socket operation timed out :
connect#src/mongo/shell/mongo.js:374:17
#(connect):2:6
exception: connect failed
exiting with code 1
Everytime when I run mongo command , it says error connecting to 127.0.0.1:27017 caused by socket opeartion timed out.
Tried following many instructions given by peers , but it didn't work.
Hope I get rid of this by your instructions.
Thanks!
Reason: mongodb service is not running
Run mongodb service method:
Open the terminal and execute mongod -dbpath "D:\Program Files\MongoDB\data\db"
("D:\Program Files\MongoDB\data\db" is the directory you created to store data)
Open another terminal and execute mongo
I have Robo 3T-1.3 installed on my ubuntu 16.4 LTS.
It is showing me the following error:
`Cannot connect to the MongoDB at localhost:27017.
Error:
Network is unreachable. Reason: couldn't connect to server localhost:27017, connection attempt failed: SocketException: Error connecting to localhost:27017 (127.0.0.1:27017) :: caused by :: Connection refused`
How to solve it?
Firstly check your mongo status via this command.
sudo systemctl status mongod
OR
You can follow this link.
https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04
I'm trying to connect to mongodb to set up a database, however i keep encountering an error?
Ive tried redownloading mongo and updating ubuntu but keet getting the error
MongoDB shell version v4.0.9
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
2019-04-24T16:27:11.186+0100 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect#src/mongo/shell/mongo.js:343:13
#(connect):2:6
exception: connect failed
Looks like its an error caused due to some kind of permissions .
(OR)
Checkout if the used username and the password is correct or not !
I deployed the mongodb on my GCP Compute Engine using the bitnami, but my mongodb it's not starting after a restart of my GCP machine, getting the following error:
MongoDB shell version v4.0.6
connecting to: mongodb://ip:27017/admin?gssapiServiceName=mongodb
2019-04-02T10:22:05.815+0000 E QUERY [js] Error: couldn't connect
to server ip:27017, connection attempt failed: SocketException:
Error connecting to ip:27017
:: caused by :: Connection timed out :
connect#src/mongo/shell/mongo.js:343:13
#(connect):1:6
exception: connect failed
This question already has answers here:
Creating a database in Mongo: can't connect, get "connect failed"
(5 answers)
Closed 6 years ago.
I am trying to start my mongo but i have come across the following error
W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
E QUERY [thread1] Error: couldn't connect to server 127.0 .0.1:27017, connection attempt failed :
connect#src/mongo/shell/mongo.js:229:14
I am trying to start my mongo but i have come across the following error
I had no idea about the error can any one please help me out of here...........
You shoud start the mongod server first.
use this...
mongod --port 27017
then start