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

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:00"},"s":"I", "c":"NETWORK", "id":22944, …
Antonio
  • 169
  • 1
  • 11
0
votes
1 answer

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 cost, by default, I don't care about reserving…
0
votes
1 answer

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/tutorial/install-mongodb-on-ubuntu/ I’ve done the…
Alex
  • 221
  • 2
  • 8
0
votes
0 answers

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 port is not listening, I can still see there are…
0
votes
0 answers

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 on same server. Not sure if this ascertains smooth…
nish
  • 123
  • 6
0
votes
1 answer

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 command not executed in my database"?
0
votes
2 answers

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 options: rsync static websites, server and config…
knm
  • 5
  • 2
0
votes
1 answer

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 VMs running there. According to Azure Products…
0
votes
1 answer

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 "DB_A" After some time, I want to re-import this dump into another…
dth
0
votes
0 answers

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 backend (laravel) mostly serve a REST API. I…
0
votes
0 answers

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 Network (private network), but I can connect using my…
0
votes
1 answer

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 credentials version: '3.1' services: mongo: …
0
votes
1 answer

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). I want to add a host which I fully manage on my own to said…
0
votes
0 answers

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 StrictHostKeyChecking no UserKnownHostsFile /dev/null …
0
votes
3 answers

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 expiry date or any other info?
smark91
  • 106
  • 9