Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
37 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
53 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
23 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
0answers
33 views

AWS Best way of sending mass text reminders?

I am trying to send a massive amount text message reminders that are stored in a MongoDB database that need to be sent at a certain time down to the minute (they will be sent using AWS). The current ...
0
votes
2answers
65 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
0answers
33 views

Proxy mongodb connexion with nginx

I am using nginx to proxy my mongodb stream. The actual configuration is worker_processes 4; pid /run/nginx.pid; events {} http {} stream { server { listen 27017; ...
0
votes
2answers
42 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
40 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
48 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 ...
0
votes
0answers
33 views

Migrate mongodb from docker to kubernetes

At the moment I have a mongo cluster with two slaves and a master runing on docker host1:27017, host2:27018, host3:27018 the current version is 3.4.1 My idea was to add one replicaset into my k8s ...
0
votes
0answers
46 views

Nfs mount as storage for mongodb docker

I created nfs mount point using below command. sudo mount -t nfs -o vers=3,proto=tcp,nolock,noacl,sync host:/ /mnt/netcool Starting the docker using the above storage for mongo sudo docker run --...
1
vote
1answer
67 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
45 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
60 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
52 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
54 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
29 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
26 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
94 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
18 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
19 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 ...
0
votes
0answers
24 views

Using blob to migrate Cosmos DB MongoDB server in Azure

I have a mongodb server running on Azure's Cosmos DB service. I have upload a mongodb dump in .bson format as a blob and named it as collection.database.bson, where collection and database are ...
-1
votes
1answer
59 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
18 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 ...
0
votes
0answers
372 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
45 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
79 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
114 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
75 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
24 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
191 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
44 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
111 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
35 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 ...
2
votes
2answers
1k 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 ...
0
votes
0answers
44 views

MongoDB “top” command shows dropped databases

The mongo db.adminCommand({top:1}) command returns artifacts from dropped databases. These include the associated collections, as well as some attributes which are not in the database.collection ...
1
vote
0answers
63 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
16 views

Suggestions to move Mongodb environment from short dns to FQDN

Currently my Mongodb environment is running on linux boxes with short dns. The security team now provides the SSL certificates only with FQDN, so need to move the environment from short dns to FQDN. ...
0
votes
0answers
83 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
42 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
128 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", ...
0
votes
0answers
36 views

HostnameCanonicalizationWorker error of host with mongod

Context debian stretch mongod version v3.2.11 Issue I got exactly the same error as this post but the answer do not work in my case. This is the error output from mongodb.log : ... start logs ... ...
2
votes
0answers
140 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
0answers
226 views

External connection to MongoDB hosted in OpenShift [duplicate]

I have a situation where I have an application on a server that need to connect to it's database, in that case MongoDB cluster. The MongoDB cluster in question is hosted in a OpenShift platform. I ...
0
votes
1answer
41 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
384 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
392 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
76 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
53 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
168 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 ...