Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
42 views

Setting up MongoDB in Azure

If I want to run MongoDB in Azure, my options are: Using MongoDB Atlas. Setting up a Linux VPS and install MongoDB. Is this correct? My app is very small, few users and little data. Less than 3GB ...
0
votes
0answers
175 views

Unable to run MongoDB as a Service in RHEL 8

systemctl start mongod Doesn't appear to do anything. systemctl status mongod shows no changes. journal -xeu mongod.service is empty. mongod -f /etc/mongodb.conf starts MongoDB successfully. systemd ...
0
votes
0answers
807 views

Why did my mongodb shut down due to memory errors and how do I prevent it?

sudo service mongod status ● mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled) Active: failed (Result: signal) since ...
0
votes
1answer
27 views

Master-Slave replication for Mongo4

I have two databases with the same data (~1TB): one for write with no shards and indexes I need for updating, and the second one for reading sharded and indexes only for reading. How to setup ...
0
votes
2answers
232 views

change name of the pods via helm

I am trying to run mongodb via helm. I want to run 1 primary replica and 2 secondary replicas. I would like to setup the following naming for the 3 mongodb pods once they are created: mongo-0 mongo-...
0
votes
0answers
206 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 ...
0
votes
0answers
55 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 ...
2
votes
1answer
158 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: ...
0
votes
0answers
60 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 ...
0
votes
1answer
76 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 ...
0
votes
3answers
1k 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/$...
0
votes
3answers
2k 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
45 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
158 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 ...
1
vote
1answer
485 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
112 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 ...
0
votes
0answers
809 views

MongoDb: not authorized on admin to execute command { create: “socket.io” }

Deploying NodeBB with MongoDb cluster on Atlas Mongodb. I can successfully complete the .\nodebb setup command. It also works as expected against local instance of Mongodb but when I run it against ...
2
votes
1answer
155 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
178 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
226 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
162 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
299 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
35 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
35 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
27 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 ...
1
vote
0answers
2k 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
76 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
192 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
305 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
161 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
51 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
666 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
70 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
320 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
80 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
6k 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
84 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
157 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
313 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
313 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
75 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
1k 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 ...
1
vote
0answers
883 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
499 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
79 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
1answer
474 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
549 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
537 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 ...

1
2
3 4 5
17