Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

Add own host to replicaSet hosted with cloud provider with limited access?

So I have this mongoDB (3.0.x) replicaSet hosted with a cloud provider called "NodeChef". To my knowledge, and scouring the documentation, I have no access at all to the underlying host(s). ...
0
votes
0answers
17 views

What is correct way to manage database replicas for redundency and performance?

I am running the MongoDB database on a single machine. But I want to learn how to scale it to multiple machines. MongoDB provides database sharding along with replicasets. For data redundancy, we can ...
0
votes
0answers
19 views

how to connect to mongodb server via ssh tunnel with Proxy Jump (ProxyCommand)

I have an ssh config file like this. I have a proxy jump to host1 from test2. Host host1 Hostname xxxxxx.us-east-1.elb.amazonaws.com Port 2222 User xxxx IdentityFile ~/.ssh/cert ...
5
votes
2answers
510 views

MongoDB on NVMe in production

I'm setting up my db production environment and I have some questions. The server has two NVMe disks, but they cannot be used in the hardware RAID controller. Do I need RAID with NVMe? Would it be ...
0
votes
0answers
22 views

mongod starts refusing connections after some time

I have mongod v3.2.22 running on a RHEL 7.9 server. It has been running fine for over a year, but suddenly in the last ~2 weeks it will start refusing connections once it has been running for a day or ...
0
votes
3answers
94 views

How to get public certificate info of a mongod instance

In a procedure to auto-renew the certificate with Let's Encrypt of a MongoDB instance, I want to know the specific certificate that the instance is serving. Is there a way to get, for example, the ...
0
votes
1answer
28 views

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 ...
1
vote
1answer
182 views

Failed to connect to 127.0.0.1:27017, connection refused

So I am currently trying to setup mongodb running and hosting locally for my centos machine. But when I try to connect I get this: #mongo MongoDB shell version v3.4.24 connecting to: mongodb://127.0.0....
-5
votes
1answer
54 views

How do production web applications make backups? [closed]

So, I'm almost finished building my first major production web app, and am wondering how to manage the backup protocol. Cold backups via my hosting control panel seem ideal - but daily downtime sounds ...
0
votes
0answers
11 views

How to create User mongodb with specify action

My db have those Collection : users , transactions, balances,... Each collection manager by one VPS. How can i create user for each collection with specify action? Example VPS A can read only ...
1
vote
1answer
214 views

MongoDB Compass GUI: Error importing: Callback called multiple times

I am completely new to MongoDB. Just downloaded and installed MongoDB Community Edition on my local Windows pc. The MongoDB Service is running, and I was able to connect to this local cluster. I have ...
0
votes
0answers
15 views

Cannot upgrade Mongo 3.6 to 4.0 on Debian 10

I'm trying to find a path to upgrade mondodb-org-server from 3.6 to 4.0 on an old Debian 10 server upgraded recently from a stupid coworker. I am in this common situation an example here of other ...
0
votes
0answers
11 views

Changing default mongodb port on debian

I'm using a debian server and I'd like to run a mongo service on it. Since quite a few ports are blocked at the office I'd like to change the default mongodb port. within the /etc/mongod.conf file I ...
0
votes
0answers
22 views

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' ...
0
votes
0answers
84 views

Mongo Authentication when mongod started as a service

System specs: OS: Debian 10 Mongo Shell: v4.4.4 Mongod: v4.4.4 I successfully created a user administrator for MongoDB with the privileges below (output from show users in Mongo Shell). { "...
1
vote
0answers
11 views

mongodb, remove one of the replica set's from a sharded cluster

I need to remove filed server01 (currently offline for a long time). The configuration looks like this: shards: { "_id" : "mongo1", "host" : "mongo1/server01:27017,...
0
votes
0answers
18 views

MongoError: No SASL session state found

I am trying to connect to a remote mongodb server from a Windows PC and i receive this error about 8 time out of every 10 connections. const databaseUri = 'mongodb://user:password@$remote-host:27017/...
0
votes
0answers
171 views

Initializing MongoDB Replica with Ansible

I've three hosts with MongoDB 4.4 and Ansible 2.9 installed via Ansible on Debian. All MongoDBs are configured with the config: # Where and how to store data. storage: dbPath: /var/lib/mongodb ...
0
votes
1answer
449 views

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://<LOGIN>:<PASSWORD>@<URL>/<DB>?retryWrites=true&w=majority&authSource=admin. I'm using this ...
0
votes
0answers
83 views

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 ...
0
votes
0answers
151 views

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 ...
1
vote
0answers
204 views

Connect to mongodb replicaset running on docker behing nginx proxy

I'm using docker-compose for mongodb replica set. Everything work fine on my host where docker is running. I had problems when I tried to connect from another client which is in the same network.I ...
0
votes
0answers
15 views

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 ...
0
votes
0answers
25 views

MongoDB (debian) and authentication using mongodb compass

I'm a little confused by the mongo server setup I'm currently trying to set up. I have a regular debian webserver running appache and mysql. nothing fancy here. For a project I'm working on I would ...
1
vote
1answer
35 views

What could go wrong if I let users create their own Mongo collections?

I am in the process of building a basic no-code solution to build RESTful APIS that support CRUD operations on a MongoDB collection. Right now it is just a Proof of Concept project that I use ...
1
vote
0answers
36 views

Why is my mongodb setup not reaching EBS IOPS limit?

I have an application that is constantly pumping data to MongoDB. MongoDB instance is running with 2-replicas, each with 3TB gp2 EBS volume. As you can see on the following graph of irate(...
2
votes
0answers
50 views

Not able to connect to Mongodb vie mongo shell

I am no able to connect to mongodb via mongo shell. command: sudo mongo --tls --tlsCertificateKeyFile server.pem --tlsCAFile CA_INTERMEDIATE --host "mongodb://xxx:xxx@some-url:27020/data_base?ssl=...
0
votes
0answers
245 views

Error when trying to connect to mongo docker image locally

I have a locally running mongo docker container. However I cannot connect to it for some reason. It says I can connect and the port is correct etc but the authorization is wrong. Docker FROM mongo:4.4....
0
votes
0answers
418 views

MongoDB keeps crashing--is it running out of memory or CPU?

I have an issue where MongoDB keeps crashing on me: $ sudo cat /var/log/syslog -> Nov 28 14:06:58 ns557017 systemd[1]: mongod.service: Main process exited, code=killed, status=6/ABRT Nov 28 14:06:...
0
votes
0answers
791 views

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 ...
0
votes
0answers
114 views

MongoDB high usage WiredTiger

We are having difficulty with MongoDB high RAM usage in AWS EC2 Instance ubuntu with 30GB RAM. In our server, there are over 3K databases and It's out of memory from time to time. I read a lot about ...
1
vote
1answer
220 views

How secure is setting mongodb to 0.0.0.0 but blocking all incoming requests to 27017 on ec2?

As the title suggests. If I set the net.bindIp setting in mongod.conf to 0.0.0.0 on port 27017 this should open it up to all incoming connections. However, if in my ec2 instance I whitelist only my ...
0
votes
0answers
34 views

Is there a way to another developer provisioned namespace to see the service accounts in openshift-operator namespace within OpenShift?

I've got the MongoDB Operator installed in openshift-operator (all namespaces). I create a new project called "ecommerce". When I provision a mongo cluster, it's asking for mongo service ...
0
votes
0answers
23 views

MongoDB 3.6 SCRAM Warning

After upgrading a replica set to Mongo 3.6, I logged into the console and ran the command to upgrade to SCRAM: db.adminCommand({authSchemaUpgrade: 1}); However, I continue to see the following warning ...
0
votes
1answer
177 views

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, ...
3
votes
0answers
452 views

Connecting MongoDB Compass to WSL2 Mongo server

I am running a mongoDB server on Ubuntu via Windows Subsystem for Linux 2. (Windows build is 19041.) I have MongoDB Compass running on Windows, and it is happy to connect to my Mongo server in Windows,...
0
votes
0answers
75 views

Migrating a Mongodb 3.2 to 4.x version

I'm quite new to mongodb and I need some good advices :) I have a mongodb 3.2 service running for a slowly growing 6Gb database on an Ubuntu 16.04 VPS for a Nodejs Parse Server application. In the ...
0
votes
1answer
440 views

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 ...
1
vote
0answers
39 views

How do I upgrade a Mongodb replica set running in a Docker swarm?

I'm running a Mongodb cluster with two routers, 3 config servers as a replica set and 4 single node shard servers. The routers and config servers are running in a Docker swarm but the shards run on ...
0
votes
0answers
43 views

mongodb list db command doesn't return empty db's

I am trying to get all db's from a mongodb instance, but I am only getting db's that have a collection in them. db's that are empty (do not have any collections) are not included in the list. I have ...
3
votes
1answer
466 views

How do I resolve a private DNS address from within an AWS Fargate task

I'm trying to setup a connection to a MongoDB Atlas database from an AWS Fargate container. The VPC peering is setup and works and I can successfully connect to the MongoDB Atlas cluster from a ...
0
votes
1answer
74 views

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/...
0
votes
1answer
366 views

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 ...
0
votes
0answers
31 views

How to increase the reliability of Mongo connection on wan?

A Mongo database is queried by a c# client which is not on the same lan. As far as I know they are 30 km far, but an icmp ping shows a latency <1ms. I noticed some exceptions generated by the ...
0
votes
0answers
388 views

Ubuntu with XFS blocked for more than 120 seconds

Im running ubuntu 16.04 with an XFS file system volume. Its running on Google cloud. This Disk is a Local SSD. It is used for MongoDB. A few days back my Primary and Secondary both are frozen from IO. ...
0
votes
0answers
9 views

MongoDB sharded cluster and replica sets sharing servers

I'm trying to define the architecture for a production sharded mongoDB server, I see in the documentation that each shard has to contain 3 replica-sets. I would like to have the sharding advantages(...
1
vote
1answer
120 views

Ubuntu MongoDB server not responding?

I have amazon aws ubuntu 18.04 server 8GB RAM and 50GB Storage. I have installed MongoDB 4.2 and Node JS 12 LTS. In current server has 30 GB MongoDB storage. I have 4 micro service on same server. I ...
0
votes
1answer
98 views

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....
0
votes
0answers
161 views

Connecting to a remote host via tailscale VPN?

I'm trying to route some traffic through a VPN network via tailscale rather than direct connection to the host. My setup is: Ubuntu Client with tailscale VPN (Now called C) Ubuntu Server with ...
0
votes
1answer
108 views

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 ...

1
2 3 4 5
18