Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
0
votes
3answers
5k views

upgrading mongodb from 3.6 to 4.0

I followed all the instructions on this page, and aft apt-get it says mongodb-org is already the newest version (4.0.10). but when i start it again and run mongod --version, it still says db ...
2
votes
0answers
46 views

Differing “free memory” interpretation on virtualized vs. bare-metal Debian 9

I have the same software suite with roughly similarly sized datasets on two Debian 9 systems, with one big difference: os-1 runs on bare-metal and has better hardware, while os-2 is virtualized ...
0
votes
1answer
179 views

Mongo DB on Google Cloud VM

I have an Ubuntu VM in Google cloud which is having my Mongo Instance running. I have enabled authentication Mongo config is configured to bind for the 127.0.0.1 and the internal IP of the server. In ...
2
votes
1answer
808 views

Writing MongoDB logs to a remote logging server

I am trying to forward MongoDB logs from several remote servers to a central logging server. To do this, I changed my mongod.conf files to use syslog like so: systemLog: destination: syslog ...
1
vote
1answer
178 views

How to ensure a consistent backup? [duplicate]

I'm running MongoDB 4.0 with the WiredTiger storage engine under CentOS 7. The data files are held on a mounted XFS volume. I can't use my hosting provider's backup service because it doesn't support ...
2
votes
1answer
222 views

How to avoid massive number of files open at once?

I've been running MongoDB for several years under the MMAPv1 storage engine, but now need to upgrade to WiredTiger. (Mainly so I can use event streams, but also because mmapv1 has been deprecated). ...
0
votes
1answer
276 views

MongoDB SocketException in AWS

I am trying to use Robo 3T 1.3 to connect to a remote mongodb server with ssh proxy. The remote server and the proxy box are in AWS. I am given the following error: Not sure if I am missing some ...
1
vote
1answer
428 views

Can't connect to mongo server after restarting the EC2 instance

guys I'm new to AWS and what I did was I restarted the Ec2 Instance of mongo via a Schedule. But after restarting I am unable to connect to the mongo server from anywhere. i.e Robomongo (local machine)...
0
votes
1answer
332 views

Unable to access MongoDB installed on a GCE VM from client desktop

So I installed MongoDB v4.0 on an Ubuntu 18.10 VM running on Google Compute Engine. Installed successfully, working well with the mongo shell via SSH. Now I wanted to access the database remotely from ...
1
vote
1answer
490 views

monitoring mongodb with monit

I cannot get the most basic script working on monitoring mongodb on ubuntu 16.04 monit 5.16 check process mongod with pidfile /var/run/mongod.pid group database start program = "/usr/sbin/service ...
0
votes
2answers
334 views

Mongodb doesn't start on reboot

Installed mongodb on Ubuntu 18.04 LTS, mongod service enabled to start automatically on boot. Configured mongodb.conf to start on 127.0.0.1 and host IP. Could start/stop service with systemctl but ...
2
votes
0answers
51 views

Mongodb use native openssl in centos

I'm new to MongoDB and I'm not sure what I am missing in this. MongoDB advises that as of v4.0, it uses the native OpenSSL libraries; but no matter what, my build or install from the repository, the ...
-1
votes
1answer
65 views

My mongodb database was dropped by attacker

I already setup mongod with authentication but forget to expose port 27017 to public but I don't understand why attacker can drop my database? *** Updated, issued has been resolved, I forgot to re-...
0
votes
1answer
50 views

MongoDB - Database Profiler does not capture queries sent to secondaries replicas

I'm new to MongoDB and need some help to understand how profiler works with replication in Mongo. I have a replica set with three instances and the secondaries are used for read only by the ...
4
votes
0answers
4k views

Restore mongoDB by --repair and WiredTiger

We accidentally deleted the directory rm -rf /data/db which was our MongoDB path, and thanks to extundelete, we recovered it and got the directory /data/db. Here are our files in the directory, and ...
0
votes
0answers
112 views

With the following db.stats() output how much free space do I really have in mongodb?

My output from db.stats() on a given database is > db.stats() { "db" : "stellar", "collections" : 525, "views" : 0, "objects" : 379961705, "avgObjSize" : 361.52269406202396, ...
0
votes
1answer
266 views

How to create a single MongoDB Container in Kubernates Cluster

I am running a Kubernates Cluster in GCP. Each one of my clients/customer will need their own Kubernates Cluster. Each Cluster/client needs to have their own database. What is the best way to go ...
1
vote
1answer
380 views

Connect MongoDB to ElasticSearch by MongoConnector in Kubernetes

I have a MongoDB and ElasticSearch cluster which I've run by Kubernetes. I am trying to connect my ElasticSearch to MongoDB on Kubernetes but I can't find any relevant document. Can anyone help me ...
-2
votes
1answer
198 views

Error while connecting to MongoDB database

I'm getting this error which I never used to get before. I haven't changed any code, and I am suddenly getting this weird error and it won't do anything but spit out this error (it won't do the code I ...
0
votes
1answer
53 views

How to Remote Connection to mongodb server

I added bindIpAll: true and I have a db with user and pass, when I run this Command from Ubuntu Terminal, everything is ok and I can Connect to db, But When I run That from my Laptop I Get This Error: ...
2
votes
2answers
1k views

Choosing right ec2 instance type for Mongodb with sharded cluster configuration

I am designing a MongoDB sharded cluster in AWS. Now MongoDB recommends C4,M4 or D2 instance types with provisioned IOPS ebs volumes to be used with MongoDB. Initially, I chose to use two ...
0
votes
0answers
92 views

How to clone mongodb database from data folder?

I have a server with MongoDB 4 500GB database. I have a very short backup window to create a copy of the database on the same server, mongodump/mongorestore work pretty slow. I can copy mongo data ...
0
votes
1answer
419 views

Monit is getting false negative for mongo http host checkup

I am trying to create a monit config file to monitor if mongodb is running. Here's my config file. check process mongod with pidfile /var/run/mongodb/mongod.pid group mongodb start program = "/...
0
votes
1answer
122 views

Allow mongoDB Atlas connection to cluster through ufw

Just what the title says, my ufw runs a tight ship and I have no idea how to let the atlas connection through. I am extremely grateful for any help on this. I'm running ubuntu 16.04 and connect to ...
3
votes
3answers
8k views

Unable to reach primary for set Cluster0-shard-0

I've set up a MongoDB cluster on Atlas and have been able to connect to it from Compass and a NodeJs app I'm building for about a week. today I started getting consistently the "transient" error ...
1
vote
0answers
96 views

Automatic DB creation with MongoDB in Kubernetes or OpenShift

I have a MongoDB cluster in Kubernetes, it's pushed to Kube with a StatefulSet type of deployment. That part work's good, I can even create 1 DB with variables starting with that... My question is, ...
0
votes
0answers
286 views

MongoDB rc.d script for FreeBSD

I want to start MongoDB (aka mondgod) as a service under FreeBSD. I have the following in rc.conf: mongod_enable="YES" mongod_config="/usr/local/etc/mongodb.conf" mongod_dpath="/var/db/mongod" But ...
1
vote
0answers
47 views

Can MongoDB have both HA and scalability?

I'm designing a system that will have a lot of data, which can be in JSON format easily. The system will do a lot of reading, a lot of writing but very little updating. ACID and relational type joins ...
1
vote
1answer
493 views

WiredTiger storage engine reports a large number of rollbacks in MongoDB

We have a MongoDB replication set consisting of three members: "members" : [ { "_id" : 6, "host" : "10.0.0.17:27017", ...
2
votes
0answers
534 views

MongoDB Very slow queries since yesterday

Since yesterday I am having huge trouble with my MongoDB. I have a 100GB collection with over 50M documents. Making a find on them and a .count() was never an issue until yesterday. Somehow, since ...
0
votes
1answer
108 views

duplicate 127.0.0.1 port, specifically for mongo

I would like to duplicate port 127.0.0.1:27017 to 127.0.0.1:27018. My initial attempts were using ip tables: iptables -t nat -I PREROUTING -p tcp --dport 27018 -j REDIRECT --to-port 27017 (And ...
0
votes
0answers
2k views

Getting MongoDB to access the Internet via a proxy server

We are running the Community version of MongoDB on a server (running Ubuntu 16.04) that requires a proxy to reach the Internet. We just upgraded to 4.0 and want to use the Free Monitoring service that ...
2
votes
0answers
1k views

running mongodb with ssl and docker secrets docker-compose sample

I'm new to docker. The developers on my work create a docker-compose with mongodb and asp.net core application setup, although its funcional, they didin't setup SSL for the application, mongodb isn't ...
0
votes
1answer
1k views

Is it possible to have a read-only MongoDB-instance on a database folder that already is used on another server?

I have the following setup: — Many servers — One shared network mounted data storage folder On one of the servers, I need to run MongoDB to write data to it. I want to be able to access those ...
0
votes
1answer
105 views

How to copy mongo db from mongodb 3.0 to mongodb 3.6 on ec2 bitnami image

As the title implies, I need to copy db from ec2 instance with bitnami image that has mongodb pre-installed with version 3.0.9 , to new bitnami ec2 instance that has mongodb version 3.6.8 pre-...
2
votes
2answers
799 views

MongoDB won't run if dbPath is symlinked

I have installed MongoDB 4.0.4 from the official repo. I followed these instructions. My OS is CentOS 7 and SELinux is in enforcing mode. If I use a dbPath value which is a symlink to another ...
0
votes
0answers
978 views

Mongo Docker Corrupted

So long story short: I have a Mongo database that was running in Docker.app (Mac GUI) with Kitematic.app and stupidly ran an update without a backup (I know!), and then Docker wouldn't launch due to ...
0
votes
1answer
711 views

How to serve wordpress (LAMP) and Angular (Node/Express) app on same server/domain

I'm currently running a web server with Ubuntu 16.04, serving up a Wordpress site, using LAMP stack and LetsEncrypt SSL to encrypt the website. I'd like to be able to run an Angular app with the MEAN ...
0
votes
1answer
945 views

Logstash Input MongoDB Error “No suitable driver found for jdbc:mongo://localhost:27017/test”

logasth conf "input part" input { jdbc { jdbc_driver_library => "/home/jskang/mongo-java-driver-3.2.2.jar" jdbc_driver_class => "com.mongodb.MongoClient" jdbc_connection_string =&...
0
votes
1answer
530 views

Deploying MongoDB in kubernetes does not create pods/services on DigitalOcean Kubernetes

I'm following this https://github.com/mongodb/mongodb-enterprise-kubernetes and https://docs.opsmanager.mongodb.com/current/tutorial/install-k8s-operator/ to deploy mongodb inside a Kubernetes ...
0
votes
1answer
1k views

How to reset Ubiquiti UniFi Controller admin password?

I need to get into a Ubiquiti UniFi Controller system that was setup by one of my predecessors. The admin password has long since been lost and the company now uses a different Wi-Fi system at the ...
0
votes
2answers
421 views

Enabling Encryption at Rest for MongoDB Generates Error

Running Percona Server for MongoDB server version: v3.6.8-2.0. I am attempting to enable encryption at rest using the procedure outlined in the following: https://www.percona.com/blog/2018/11/01/...
0
votes
0answers
17 views

Keeping an online MEAN service working 24x7 with less cost possible [duplicate]

I'm starting up my first online service. I will run on a MEAN stack running on Linux on AWS. It is time now to guarantee my service will be running smoothly on a 24x7 basis. For Mongo, I'go to mlab ...
2
votes
1answer
1k views

How to get AWS public IP CIDR range of a VPC

I have a VPC running on AWS which was created using kops, and the databases are running on mongo-atlas using GCP as a cloud provider. The mongo database servers are open to the world, what I'm trying ...
0
votes
1answer
176 views

MongoDB restart with no logs

Why would mongodb randomly restart? Where can I look for details? Using mongo 3.4 on Ubuntu 16.04 The first line of the log file is just 2018-10-11T00:21:01.610+0000 I CONTROL [main] ***** SERVER ...
0
votes
1answer
215 views

Parse server - File not found

Parse server version: 2.8.4 Parse dashboard version: 1.2.0 MongoDB version: 4.0.2 Hosting service: DigitalOcean ======================================= I'm transferring my app to a new Parse ...
2
votes
1answer
751 views

Mongodb on AWS EC2 backup strategy

I'm running Mongodb on AWS EC2 instance. Data/log/and journal are stored in a separate volume, formatted as xfs. Currently we are stopping the mongodb instance to take a snapshot, but reading this: ...
0
votes
1answer
168 views

Unable to access mongodb from my desktop

I'm trying new GUI of MongoDB called Compass. However, my MongoDB server is on the Azure virtual machine which has private IP only. All Azure servers in our virtual subnet are accessible via one ...
0
votes
0answers
45 views

poweroutage resulted in corrupt wiredtiger database files

Im using mongodb 3.6.5 on debian64 in kvm virtual machines (5 shards). after a poweroutage today my database files from four shards are corrupt and the mongod instances produce two different errors. ...
0
votes
0answers
46 views

Different sharding chunks size in MongoDB

I have a problem in a MongoDB Sharding deployment. I've got 4 replicasets, all of them with a very similar chunks. But the estimated data per chunk is very different in all of them. mongos> db....

1 2
3
4 5
18