Questions tagged [mongodb]

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

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

How to prevent changing ownership of '/data/db' in mongodb pod

I'm running a mongodb instance as a kubernetes pod in a single node cluster (bare metal ubuntu machine). The volume is configured ReadWriteOnce as the mongodb pod is accessed only by pods in one node. ...
user avatar
0 votes
0 answers
14 views

Is Postgres a good solution for my need? [closed]

We are scraping data online and the data is (relatively for us) fastly growing. The data consists of one big text (approx. 2000 chars) and a dozen of simple text fields (few words max). We scrap ...
user avatar
  • 101
-1 votes
1 answer
36 views

Best region for server to serve US

I want to create a MongoDB Atlas instance and Google Cloud instance to serve the US region. Is there a rule of thumb which region (east, center, south) or city that is the best choice to serve entire ...
user avatar
1 vote
0 answers
18 views

oom_reaper: MongoDb out of memory

We run a small mongodb replica set on three bare metal servers (no virtualization, no docker/kubernetes) with Debian 11 and mongodb 5.0.6: machineA: 128GB RAM, 1TB disk, PRIMARY machineB: 128GB RAM, ...
user avatar
0 votes
1 answer
55 views

Error installing mongodb on debian 11 in proxmox container

I try to install mongodb on Debian 11 in a proxmox VE 7.1 container as described in this tutorial https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-debian/ But I get the following error: ...
user avatar
1 vote
0 answers
19 views

Logrotate Create Mode Issue

I have a trouble with logrotate service in linux. I have a logrotate config for mongodb log as below: /var/log/mongodb/mongod.log { rotate 10 daily dateext dateformat %Y-%m-%d-%s ...
user avatar
2 votes
0 answers
26 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 ...
user avatar
  • 559
0 votes
0 answers
20 views

How to migrate a mongodb replica set from one kubernetes cluster to another using replication

My goal is migrating data via replication from one mongodb replica set to another mongodb replicaset. I am attempting to migrate data from replicaset a (on kubernetes cluster a) to replicaset b (on ...
user avatar
  • 101
0 votes
0 answers
36 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 ...
user avatar
  • 164
0 votes
1 answer
17 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:...
user avatar
  • 169
0 votes
1 answer
236 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 /. ...
user avatar
0 votes
1 answer
287 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 ...
user avatar
  • 101
0 votes
0 answers
198 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/...
user avatar
  • 221
0 votes
0 answers
29 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 ...
user avatar
0 votes
0 answers
42 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 ...
user avatar
  • 123
0 votes
0 answers
34 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 ...
user avatar
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 ...
user avatar
-1 votes
1 answer
64 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 ...
user avatar
  • 1
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. ...
user avatar
  • 101
0 votes
2 answers
163 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 ...
user avatar
  • 5
0 votes
1 answer
98 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 ...
user avatar
0 votes
0 answers
149 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 "...
user avatar
1 vote
1 answer
431 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 ...
user avatar
  • 113
0 votes
1 answer
158 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, ...
user avatar
  • 101
0 votes
0 answers
12 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 ...
user avatar
  • 149
0 votes
0 answers
73 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 ...
user avatar
0 votes
0 answers
93 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 ...
user avatar
  • 1
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 ...
user avatar
0 votes
1 answer
29 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). ...
user avatar
0 votes
0 answers
640 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 ...
user avatar
6 votes
3 answers
731 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 ...
user avatar
  • 163
0 votes
3 answers
157 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 ...
user avatar
  • 106
0 votes
1 answer
105 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 ...
user avatar
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....
user avatar
-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 ...
user avatar
1 vote
1 answer
608 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 ...
user avatar
  • 111
0 votes
0 answers
32 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' ...
user avatar
  • 1
1 vote
0 answers
273 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). { "...
user avatar
1 vote
0 answers
14 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,...
user avatar
  • 45
0 votes
1 answer
865 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 ...
user avatar
0 votes
0 answers
190 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 ...
user avatar
0 votes
0 answers
349 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 ...
user avatar
1 vote
0 answers
846 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 ...
user avatar
0 votes
0 answers
33 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 ...
user avatar
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 ...
user avatar
2 votes
0 answers
79 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(...
user avatar
  • 173
2 votes
0 answers
100 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=...
user avatar
  • 21
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 ...
user avatar
1 vote
1 answer
873 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 ...
user avatar
0 votes
1 answer
793 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, ...
user avatar
  • 101

1
2 3 4 5
18