Questions tagged [mongodb]

MongoDB is a document oriented database (also known as NoSQL database).

MongoDB is a document oriented database. It's coded to be fast, scalable and supports natively solutions like sharding, replication, Map/Reduce and storage of files on the DB.

MongoDB doesn't uses SQL, making it a NoSQL database, its data is retrieved using a dynamic query system and returns JSon-style data.

889 questions
0
votes
1 answer

Cant Remote mongodb using public IP ubuntu 18.04 , GCP

I created a virtual machine ubuntu18.04 and install mongodb using sudo apt install -y mongodb then uncomment PORT in .conf then change 127.0.0.1 to 0.0.0.0 then restart mongodb then when i try to remote login i received this error…
0
votes
0 answers

Connect Nodejs app to MongoDB Via Azure

I have a nodejs application and my organization is using mongodb but via azure which I'm not too familiar with. I usually just go on the mongodb website and then go to the 'connect you application' option and copy the uri. I also wanted to know how…
Mark
  • 1
0
votes
1 answer

pymongo + flask + gunicorn: "Authentication failed" before first operation when "connect=False"

I'm using MongoDB Atlas. I'm have this URL for connecting: mongodb+srv://:@/?retryWrites=true&w=majority&authSource=admin. I'm using this stack: flask, gunicorn, pymongo, mongoengine (i don't think that it is related,…
Amaimersion
  • 111
  • 8
0
votes
0 answers

Slow connection to production MongoDB due to TLS handshake retransmits

I have question about something that had me tearing my hair out for the past two days. Long story short: specifically over my home network, my connection to our work MongoDB is stupidly slow. Over my home network it takes around 40 seconds to load a…
0
votes
0 answers

Allow MongoDB remote access only for specific IP

I bind with my VPS public IP address. I figurate with help of my mistake that my localhost apps connect with success with my remote server. Allow MongoDB remote access only for specific IP? Any options. I added : security: …
Nikola Lukic
  • 101
  • 6
0
votes
0 answers

Mongo crash on VPS centos8.3

I use centos 8.3 on my VPS. ( 1gb ram 1cpu ) Digital ocean service. I am not sure which case is it but maybe mem usage. Error begin to be active after i run ue4 dedicated server how use normal 3% cpu and Data from top : top - 16:15:38 up 39 days,…
Nikola Lukic
  • 101
  • 6
0
votes
0 answers

Unmet Dependencies: mongodb-org-server mongodb-org-mongos mongodb-database-tools but it is not going to be installed

Can anyone help me with this error? rohan@linux-pc:~$ sudo apt-get install mongodb-org-server [sudo] password for rohan: Reading package lists... Done Building dependency tree Reading state information... Donestrong text You might want to run 'apt…
Rohan Shakya
  • 1
  • 1
  • 1
0
votes
1 answer

Error in Node.js / Ubuntu 20 server configuration: 111 Connection refused

I get these three lines of errors when I refresh my page: 2020/10/07 16:38:55 [error] 315270#315270: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 66.249.66.221, server: akadjg.com, request: "GET /robots.txt…
DJG
  • 101
  • 1
0
votes
1 answer

MongoDB root user can't access config database

I'm trying to set up backups on a mongoDB instance (version 4.4) using mongodump. That requires access to the config database and my mongo user doesn't have that, despite being in the root role. (From my understanding of the documentation on…
0
votes
1 answer

Can this inbound & outbound bandwidth of my server cause issues?

I have a social app where users do the usual stuff of other social apps; upload multiple text and photo posts every hour, like & comment (a notification is created for each action), view custom/native ads, block users (and their content) etc. The…
Sotiris Kaniras
  • 198
  • 2
  • 10
0
votes
1 answer

start mongos(mongodb 4.4 sharding router) using systemd service

Mongodb 4.4 on centos 8 using official RPM repo. I can start & use mongos from command line just fine: mongos --config /etc/mongos.conf However, if I try to start mongos as systemd service, it give the error mongos.service: Failed with result…
Reed
  • 287
  • 1
  • 3
  • 10
0
votes
1 answer

Lambda connect to mongodb which only allow localhost connection in ec2

I have a MongoDB which only allow connection from localhost, running on my ec2. Currently, only my nodejs app which runs on the same ec2 instance connects to the mongodb using this command mongoose.connect('mongodb://user:pass@localhost:27017/mydb',…
imin
  • 83
  • 11
0
votes
1 answer

How should my Nginx 'default' file in sites-available be configured for a MERN app?

I'm deploying a MERN app and wondering how the 'default' configuration file in etc/nginx/sites-available should be setup for the server, client, and Mongo database to work? I am using a Ubuntu machine on Digital Ocean. I have the server.js running…
Ant
  • 101
0
votes
1 answer

init.d kills my mongod process due to respawning

I'm using Ansible to start the mongod service on a Centos 6.8 VM. The task is pretty straightforward: - name: Start mongod service service: state: started name: mongod However the service fails to start, and in /var/log/messages I…
0
votes
0 answers

How to backup/restore a large MongoDB database?

How can I backup and restore a large mongodb database (500GB) from a server running an older version (v2.6) than the target one (v3.6)?. The downtime is critical. We've tried by making a straight copy of the data files as well as filesystem…