Questions tagged [mongodb]
MongoDB is a document oriented database (also known as NoSQL database).
888
questions
0
votes
0
answers
12
views
Migrating Mongo within VPN to Azure cosmos fails
I'm working on migrating my Mongo database to Azure Cosmos. I'm using the MigrationMongoService Azure Database Migration Service but when I create a project, it fails because of connectivity problems.
...
0
votes
0
answers
16
views
Which cache solution is suitable for Storing Cache data? [closed]
We are running many websites in Yii2 application. Currently we are using File Cache for Data Caching. Now we want to use load balancer and put our caching on dedicated server.
We will have to store ...
0
votes
0
answers
12
views
Azure Migration Project to CosmosDB throws error `Unspecificed`
I'm trying to migrate my Mongodb server to Azure Cosmos. I've created a migration service in Azure Database Migration Services and I'm trying to create a project with the following settings:
Source ...
0
votes
1
answer
68
views
Mongodb data files corrupted when copied in
I’m sure there is a straightforward solution, I’m running a Mongodb service thusly:
[Unit]
Description=Mongo server for Open Quartermaster. Version ${version}, using MongoDB tagged to "4".
...
0
votes
0
answers
23
views
How to find memory consuming request in mongodb
There is a small(4 replicas) mongodb cluster(replicaset). Every node is 24GB ram with 8GB wiredtiger cache size.
Cluster is used by many (about 100) applications which do few hundred requests per ...
1
vote
1
answer
31
views
virtual concatenation of two certificate files
mongod requires a certificateKeyFile that is a combination of a certificate and a private key.
certbot manages quarterly renewals of tls certificates that cannot be valid for more than 3 months. the ...
0
votes
0
answers
200
views
SELinux is preventing /usr/bin/mongod from search access
My question is similar to others, such as SELinux preventing mongod search access. In this case, I installed snapd for a reason entirely unrelated to Mongodb. That was about a week ago (2/5/2023). ...
0
votes
1
answer
150
views
my nginx server was working perfectly fine and now shows a 502 error
I'm deploying my project,
I had no problem until i decided to buy a domain for my digital ocean droplet
i added the records from my namecheap domain to my droplet
i was working on it then suddenly ...
0
votes
0
answers
35
views
MongoDB authentication instance without cluster i.e. using mongos router without a sharded cluster?
So my question is:
Is there a possibility to have something like a Mongo authentication instance running on a VPS, together with fail2ban, which only forwards authenticated requests to a home server ...
0
votes
0
answers
14
views
MongoDB production client certificates
I'm moving a mongodb server to production on my Ubuntu machine.
I got an ssl certificate signed by a third party and installed it on the server.
Clients are able to connect to it using their system's ...
0
votes
0
answers
39
views
MongoDB volume size auto increase
I deployed a container with MongoDB on the server. The container has its own volume where MongoDB data is stored. The database is very small, 6 collections and no more than 40 documents (some removed, ...
0
votes
0
answers
26
views
Which ec2 instance should I choose for my mongos(query router)?
I am hosting a sharded mongodb on ec2. I am planning on going with m4.large for my shard instances and t2.micro for my config servers. Should I go with m4.large for my mongos(query router) ...
0
votes
1
answer
454
views
Why MongoDB occurs out of memory (OOM) every few days
My Server Info
AWS Ubuntu 18.04
MongoDB 4.2.17
4 Cores
16 GRAM
This server only running mongodb, and allocated 10G memory to mongodb
wiredTiger:
engineConfig:
cacheSizeGB: 10
But this ...
0
votes
1
answer
438
views
How to append into next line in Windows batch file
I am using a windows batch file that will output a .js file into csv.
The .js file is a mongo query.
mongosh --host 10.1.0.1:27017 --username "username" --password "password" --...
1
vote
0
answers
75
views
MongoS refusing connections during network split
I am exploring sharded MongoDB clusters, and I have trouble understanding MongoS's behavior during a network split.
My test environment works as expected until I simulate a network split.
In the "...
0
votes
1
answer
200
views
MongoDB Container Docker not working. MacOS
Any time I try to access my container it shows the path isn't found?
I get this error
"mongo": executable file not found in $PATH: unknown
How can I fix this?
Docker-compose file and output
1
vote
0
answers
542
views
Zabbix not collecting metrics from Mongodb
I have a Mongodb running on an ubuntu server for which I have installed zabbix agent2 as per the documentation.
https://www.zabbix.com/integrations/mongodb#mongodb
My zabbix server is running on a ...
0
votes
1
answer
1k
views
MongoDB Atlas 'ETIMEDOUT' error
MongoDB Atlas was working fine at one time. Now I have not been able to connect for a time. I’ve looked at other solutions here on this forum as well as others.
I’m getting the aforementioned error ...
0
votes
1
answer
1k
views
Errors trying to back up a mongo database
I am hitting the same error in trying to backup a mongo stand-alone database:
Failed: error connecting to db server: server returned error on SASL authentication step: BSON field 'saslContinue....
0
votes
1
answer
243
views
MongoDB: Best choice of server type on GCP
On the Google Cloud Compute Engine we have the option to choose between three 'Machine families'
General-purpose
Compute-optimised
Memory-optimised
What would be the best option to choose for a ...
0
votes
0
answers
45
views
Multiple processes spwaned in ubuntu server why?
I am running multiple mongodb servers,Jenkins,nodejs application 6 instances
mongos server X 1
Config server X 3 replica sets
Shard server X 3 replica sets
Server specs
Cores X 16
Ram 32 gb
Swap 4 gb
...
0
votes
0
answers
224
views
How can I see what causes a MongoDB memory spike?
I am running MongoDB 4.x on Linux in a clustered setup (3 replicas), and sometimes memory inexplicably spikes (>10% sudden memory consumption increase on a 64GB RAM machine by the mongod process) ...
0
votes
1
answer
957
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.
...
-1
votes
1
answer
41
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 ...
2
votes
1
answer
275
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, ...
0
votes
1
answer
695
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:
...
1
vote
0
answers
148
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
...
2
votes
0
answers
153
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 ...
1
vote
1
answer
361
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
27
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:...
1
vote
1
answer
1k
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
975
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
1
answer
1k
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
254
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
157
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
1
answer
29
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
183
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
2
answers
445
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
207
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
1
answer
391
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
1k
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
306
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
271
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
203
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
4k
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
1
answer
35
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
2k
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
932
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
431
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
481
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 ...