Categories
Linux Mastering Development Ubuntu

Failed to connect to bus: No such file or directory

I am using debian 9 After enter this command sudo systemctl start mongod.service it shows: Failed to connect to bus: No such file or directory But This command is working: sudo systemctl enable mongod How to solve this problem? And After entering this command mongo –eval ‘db.runCommand({ connectionStatus: 1 })’ it shows: MongoDB shell version […]

Categories
Development Linux Ubuntu

mongodb server connection error

waseem@waseem-HP-Laptop-14q-cs0xxx:~$ mongo MongoDB shell version v4.2.3 connecting to: mongodb://127.0.0.1:27017/? compressors=disabled&gssapiServiceName=mongodb 2020-03-03T16:17:52.233+0530 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:341:17 @(connect):2:6 2020-03-03T16:17:52.271+0530 F – [main] exception: connect failed 2020-03-03T16:17:52.271+0530 E – [main] exiting with code 1

Categories
Development Linux Ubuntu

mongodb server connection error

waseem@waseem-HP-Laptop-14q-cs0xxx:~$ mongo MongoDB shell version v4.2.3 connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb 2020-03-03T16:17:52.233+0530 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:341:17 @(connect):2:6 2020-03-03T16:17:52.271+0530 F – [main] exception: connect failed 2020-03-03T16:17:52.271+0530 E – [main] exiting with code 1

Categories
Development

Cannot connect Mongodb in Ubuntu 18

I installed mongodb following all the documentation steps: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ the /var/lib/mongodbdirectory was not created. When i type mongo on terminal this is shown: $ mongo MongoDB shell version v4.2.2 connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb 2020-01-13T09:33:12.125-0300 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 […]

Categories
Development Unity

Not able to connect to a new MongoDB Community Edition installation

I have installed mongoDB via manual on mongodb.com. In terminal I have checked the status and the database is running: Name Status User Plist mongodb-community stopped mongodb-community@3.6 stopped mongodb-community@4.0 started vondramk /Users/vondramk/Library/LaunchAgents/homebrew.mxcl.mongodb-community@4.0.plist Despite this, I try to connect (again via terminal) with $ mongo and it gives me this error: connection response contain error: MongoDB […]