Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
589 views

RoboMongo Proxy server with two ssh keys | RoboMongo Proxyjump

We have two servers, one with internet access (srv1) and one without (srv2). MongoDB is running on the server which has no internet access (srv2). The only way to access srv2 is via SSH to srv1 and ...
user avatar
0 votes
0 answers
72 views

MongoDB Issue on long index creation via PyMongo

I'm connecting remotely to a MongoDB standalone instance and in my python script am creating/ensuring indexes in the background before doing a bulk_update() operation. The collection is 90+Million ...
user avatar
2 votes
1 answer
206 views

Why does mongodb install require removal of VirtualBox and php-curl?

I was about to install mongodb on Linux Mint 19.1 (Tessa) via .deb file but when I checked the packages to be removed, I found this: To install the following changes are required: To be removed: ...
user avatar
  • 23
0 votes
0 answers
69 views

How to distribute socket.io servers globally?

We have a Socket.io service that needs constant communication with Mongodb. We currently have a load balancer server, 16 containers in a server (due to nodejs being single threaded, we split processes ...
user avatar
0 votes
1 answer
199 views

Docker | CentOS | $releasever is "" when running docker build

I am attempting to build a docker image from a CentOS parent image ... and installing MongoDB. The error is happening when docker build is adding the MongoDB repo. You can see that the error is ...
user avatar
  • 115
0 votes
3 answers
2k views

Installing MongoDB on RHEL 8 | AWS EC2 — Failed to synchronize cache

I am attempting to install MongoDB on my RedHat 8 | AWS EC2 instance ... /etc/yum.repos.d/mongodb-org-4.0.repo [mongodb-org-4.0] name=MongoDB Repository baseurl=http://repo.mongodb.org/yum/redhat/$...
user avatar
  • 115
0 votes
3 answers
6k 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 ...
user avatar
  • 277
2 votes
0 answers
48 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 ...
user avatar
0 votes
1 answer
214 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 ...
user avatar
  • 113
2 votes
1 answer
928 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 ...
user avatar
1 vote
1 answer
251 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 ...
user avatar
  • 544
2 votes
1 answer
269 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). ...
user avatar
  • 544
0 votes
1 answer
357 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 ...
user avatar
  • 101
1 vote
1 answer
712 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)...
user avatar
  • 113
0 votes
1 answer
523 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 ...
user avatar
1 vote
1 answer
659 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 ...
user avatar
  • 115
0 votes
2 answers
776 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 ...
user avatar
2 votes
0 answers
58 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 ...
user avatar
-1 votes
1 answer
68 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-...
user avatar
0 votes
1 answer
98 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 ...
user avatar
4 votes
0 answers
5k 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 ...
user avatar
  • 307
0 votes
0 answers
144 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, ...
user avatar
  • 115
0 votes
1 answer
342 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 ...
user avatar
1 vote
1 answer
446 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 ...
user avatar
-2 votes
1 answer
273 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 ...
user avatar
  • 1
0 votes
1 answer
63 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: ...
user avatar
2 votes
2 answers
2k 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 ...
user avatar
  • 121
0 votes
0 answers
124 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 ...
user avatar
0 votes
1 answer
475 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 = "/...
user avatar
  • 121
0 votes
1 answer
160 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 ...
user avatar
3 votes
3 answers
9k 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 ...
user avatar
  • 157
1 vote
0 answers
108 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, ...
user avatar
  • 708
1 vote
0 answers
408 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 ...
user avatar
1 vote
0 answers
48 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 ...
user avatar
1 vote
1 answer
659 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", ...
user avatar
  • 7,779
2 votes
0 answers
692 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 ...
user avatar
0 votes
1 answer
141 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 ...
user avatar
2 votes
0 answers
2k 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 ...
user avatar
  • 23
0 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
139 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-...
user avatar
2 votes
2 answers
1k 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 ...
user avatar
  • 113
0 votes
0 answers
1k 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 ...
user avatar
0 votes
1 answer
867 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 ...
user avatar
0 votes
1 answer
1k 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 =&...
user avatar
0 votes
1 answer
553 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 ...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
0 votes
2 answers
507 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/...
user avatar
  • 131
0 votes
0 answers
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 ...
user avatar
  • 121
2 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
245 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 ...
user avatar

1 2
3
4 5
18