Questions tagged [mongodb]
MongoDB is a document oriented database (also known as NoSQL database).
868
questions
0
votes
0
answers
7
views
Debugging Active Directory Login with MongoDB
I am trying to log into MongoDB using an active directory username. We're using Percona for MongoDB but I believe this really should be pretty similar to regular MongoDB 5.x authentication.
We've ...
0
votes
0
answers
9
views
How to migrate a mongodb replicaset from one kubernetes cluster to another using replication
My goal is migrating data via replication from one mongodb replicaset to another mongodb replicaset.
I am attempting to migrate data from replicaset a (on kubernetes cluster a) to replicaset b (on ...
0
votes
0
answers
10
views
Disable mongodb NETWORK logs
I'd like to disable NETWORK logs but can't find a way. As I can see in the docs, without using quiet I am already at the least verbose level with 0.
The verbosity level can range from 0 to 5 :
0 is ...
0
votes
1
answer
14
views
mongo secondary node - weird log entries
I have mogodb cluster with 4 nodes, all nodes work on standard 27017 port. I found weird things in my mongod.log on a secondary node:
{"t":{"$date":"2022-03-26T23:22:34.593+03:...
0
votes
1
answer
161
views
SELinux preventing mongod search access
I noticed I am getting some SELinux errors when running mongod for the UniFi controller program. Namely, I am getting:
SELinux is preventing /usr/bin/mongod from search access on the directory /.
...
0
votes
1
answer
194
views
Assigning different external IP for each Pod on GKE autopilot
I am in the process of moving our project from the Compute Engine to GKE autopilot (cost efficiency, scale-up/down).
Currently, in the Compute Engine, each machine gets a different external IP (at no ...
0
votes
0
answers
121
views
Skipping acquire of configured file ‘multiverse/binary-arm64/Packages’ as repository ‘/mongodb-org/4.0 InRelease’ doesn’t support architecture arm64
I’m trying to upgrade Mongo from 3.6.6 to 5.1 on Ubuntu 18.04.6, running on an AWS EC2 instance.
I’ve gotten up until 4.2 -> 4.4, and am now using this tutorial:
https://docs.mongodb.com/v4.4/...
0
votes
0
answers
23
views
NodeJS stops listening on port 443
We are having a big problem with nodejs intermittently not listening on port 443. Development claims that this is because node cannot connect to the Mongo database. However, when I get an alert the ...
0
votes
0
answers
32
views
error connecting to linux server from windows client
When a windows machine pings to linux server to run application specific python commands, it does connect. The firewall is also disabled on linux server. mongodb is database server here. database is ...
0
votes
0
answers
31
views
MongoDB won't start on AWS instance using Bitnami Parse Package instance
I have parse server running on an Ubuntu AWS instance when I attempted to restart my mongoDb it won't start. I pinged my local host and there didn't seem to be any issues with that but my apache log ...
0
votes
1
answer
15
views
how to block drop function in mongodb?
MongoDB replication was created in AWS by using Ubuntu machines. I created a database in mongodb, but it was deleted in my office. Am I able to enable termination protection, that is "drop ...
-1
votes
1
answer
47
views
mongodb 3.2 cluster database compatibility to mongodb 5.0
We have a mongodb 3.2 production cluster that we need to upgrade to mongodb 5.0.
Instead of upgrading in place, we are considering creating a new mongodb 5.0 cluster, export the DB from 3.2, and ...
0
votes
0
answers
21
views
Many linked tables in a NoSQL? Tons of connections, but only 1 master?
My company uses a NoSQL database (Mongo) for their product. However, their product is incredibly slow - which might be due to either the efficiency of their code, or/and the design of their database. ...
0
votes
2
answers
148
views
High availability with round robin - rsync and DB replication or a cluster?
I have one machine (centos7) with Apache, PHP, MariaDB and Nginx, Nodejs, MongoDB installed and being used by many different domains.
I'd like to create a working mirror and can't decide between 2 ...
0
votes
1
answer
91
views
The Azure region us south central us does not show up when creating a cosmosdb account
As you can see in the screenshots, the region I need does not show up in the dropdown and I cannot select the us south central region (in Texas). The resource group is in Texas tho, and I have some ...
0
votes
0
answers
116
views
mongorestore: inspect archive dump file or validate --nsFrom parameter?
I have a MongoDB server with database DB_A and DB_B. Using mongodump I create an archived dump of only database DB_A:
mongodump --uri "$MONGO_CONNECTION_STRING" --archive --gzip -db "...
1
vote
1
answer
359
views
How to authorize only IP from a Fargate ECS service for MongoDB Atlas Cluster
I have an ECS Fargate service mapped to an Application Load Balancer on AWS. In this service, there are several task that are frequently killed and restart.
These tasks should be able to connect to a ...
0
votes
1
answer
150
views
graylog 4.0 - Injector could not be created
Trying to set up graylog with official graylog2.graylog ansible role.
Installed Elasticsearch (v7.10.2) cluster on three separate servers with official elasticsearch ansible role (node_1 - master, ...
0
votes
0
answers
11
views
For serverStatus(), are thread activity tickets used when flowControl is not triggered?
In the output of the serverStatus() command, there is output called flowControl.isLagged. Where "isLagged" is the condition for triggering flow control. When flow control is triggered, the ...
0
votes
0
answers
59
views
Apache with PHP FPM and requests spikes, how to set optimal configuration?
I was lucky enough that my website went viral, and the server of course wasn't ready for it.
Unfortunately my setup is quite bad, a single server with Apache, PHP (Laravel), Mongodb and redis.
The ...
0
votes
0
answers
79
views
After upgrade from MongoDB 4.x to 5.0.2 shows Connection Refused trying to connect BD from Private Network
I have upgraded my MongoDB from 4.x to 5.0.2 into a Ubuntu 20.04 system. This server is an AWS EC2 Instance. After upgrade I can't connect my applications from other ec2 instances using the same ...
0
votes
1
answer
1k
views
How to connect backend to a mongodb docker container
I made this docker-compose file as written on docker hub / mongodb
then I use the command docker-compose up -d which pretty standard to launch a container.
# Use root/example as user/password ...
0
votes
0
answers
64
views
How to configure Mongo Atlas cluster to be accessible only from AWS ECS?
I have a NodeJS application which runs as a container on AWS ECS inside its VPC. For the database I have a cluster on Mongo Atlas. How can I configure Mongo Atlas so that the database is only ...
0
votes
0
answers
28
views
Was AWS, Bitnami, NodeJS and MongoDB vulnerable during 2021?
One user reported that their email and password on my website had been compromised. The website runs on NodeJS and MongoDB, with passwords salted and hashed. It has a front-end only, with little user ...
0
votes
1
answer
28
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
0
answers
562
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
...
6
votes
3
answers
702
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
3
answers
144
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
1
answer
78
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
1
answer
2k
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
1
answer
72
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 ...
1
vote
1
answer
587
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
0
answers
28
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' ...
1
vote
0
answers
261
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
0
answers
13
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
1
answer
842
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
0
answers
178
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
0
answers
344
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
0
answers
790
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
0
answers
30
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 ...
1
vote
1
answer
39
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 ...
2
votes
0
answers
72
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
0
answers
80
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
0
answers
2k
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 ...
1
vote
1
answer
773
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
1
answer
731
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
0
answers
780
views
Connecting MongoDB Compass to WSL2 Mongo server [closed]
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
1
answer
1k
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
0
answers
83
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 ...
3
votes
1
answer
1k
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 ...