Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mongodb]

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

0
votes
0answers
29 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
21 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
9 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
37 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
27 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
55 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", ...
-1
votes
0answers
13 views

Retrieving Data from A NoSQL DB

In RDBMS I know that query retrieves information from the database using clustered and non clustered indexes if exists , and if not , they do a full table scan. My question is - how is the same thing ...
0
votes
0answers
6 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
42 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
15 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
23 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
60 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 ...
0
votes
0answers
82 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
48 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
38 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-...
1
vote
1answer
56 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
47 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
0answers
35 views

Slow connections affect how Nodejs app save data in Mongodb database?

I developed a Nodejs app for my organization. This app consists in three different forms to capture data based on three different topics. We are using a local mongodb database to store data. This ...
0
votes
1answer
89 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
97 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
57 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
0answers
343 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
60 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 ...
0
votes
0answers
17 views

apt version vs mongo version mismatch

Any idea why apt reports one version (4.0.x), and mongod another (3.x)? user@machine:/usr/bin$ sudo apt-cache policy mongodb-org mongodb-org: Installed: 4.0.2 Candidate: 4.0.3 Version table: ...
0
votes
0answers
66 views

Performance issues with Kubernetes

I am having performance issues in kubernetes with my application. I have a nodejs application running inside a docker container in kubernetes, all it does it call a mongodb with a GET, there is quite ...
0
votes
0answers
19 views

MongoDB - auth disabled, I still cannot see databases which required auth

I'm reviving an old app of mine which used MongoDB for the database. 2 important databases my app uses I have set to have it's own authentication (username password). For some reason I cannot login ...
2
votes
1answer
176 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
0answers
87 views

Migrating from mlab to Atlas with parse-server

I recently received a notification from mLab that they have been acquired by MongoDB and will be eventually migrating all customers to MongoDB Atlas. We are currently running parse-server (v2.7.2) on ...
0
votes
1answer
55 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
0answers
63 views

Google Appengine unable to look up SRV record

I have an instance of mongodb running on Atlas and a Spring Boot application running on GAE trying to access this database. I have no problem running it locally but when running on GAE I see this ...
0
votes
1answer
76 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 ...
0
votes
1answer
141 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
35 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
25 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
23 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....
0
votes
0answers
38 views

MongoDB replica set not picking a PRIMARY with 4 of 6 members UP

I have 6 instances running on Scaleway , 3 on ARM servers and 3 on Virtual Ubuntu Servers . mongodb1 ARM (mongodb 3.4.9) mongodb2 ARM (mongodb 3.4.9) mongodb3 ARM (mongodb 3.4.9) mongodb4 VPS (...
0
votes
0answers
25 views

Starting database: mongodstart-stop-daemon: unable to stat //— (No such file or directory)

I just installed mongodb-org-server version 2.6.4 on my Debian 9 machine. I have created a custom init.d script which is : #!/bin/bash # # init.d script with LSB support. # # Copyright (c) 2007 ...
0
votes
1answer
35 views

Does it make sense to create a database user for each system admin at my company, or should we share a database account?

Should I be creating a Mongo user for each physical developer that needs access to MongoDB, or should we just share a "sysadmin" account? There's three of us that need full access, and everyone needs ...
0
votes
1answer
279 views

Error: storage engine 'wiredTiger' The configured storage engine is 'mmapv1' terminating MongoDB

I am using MongoDB v2.6.10 This is my configuration file, /etc/mongodb.conf # mongodb.conf # Where to store the data. dbpath=/var/lib/mongodb #where to log logpath=/var/log/mongodb/mongodb.log ...
0
votes
0answers
96 views

WiredTiger storage engine cause delay in MongoDB start

I'm testing MongoDB (community edition) upgrade from 2.6 to 3.6 (version 3.6.5 is installed) in my company. It's running on Debian Jessie on AWS EC2. We are experiencing some strange behavior (or ...
0
votes
1answer
310 views

How to Change Replica Set Protocol Version in MongoDB.

I'm trying to change Replica Set Protocol to pv1. I have 5 replica set servers Mongo 3.6. I'm using the documentation from here https://docs.mongodb.com/manual/reference/replica-set-protocol-versions/ ...
0
votes
0answers
122 views

Mongodump dump directory is empty

I'm trying to dump a database from my mongodb on a graylog server. root@graylog ~# mongodump --host localhost:27017 -d graylog -o /home/dbdump/ connected to: localhost:27017 Tue Jul 17 09:58:04.163 ...
0
votes
0answers
53 views

Password expose in CLI and in shell script, which is safe?

I create a cronjob that will backup my MongoDB automatically with this script mongodump --archive=db-Latest.gz --gzip --db SomeThing --host 10.152.66.4 --port 27017 --username root --...
0
votes
1answer
50 views

MongoDB - Killed when database disk is full

I'm using MongoDB 3.6.5 (already tested on 3.2 / 3.4) and i have enabled "directoryPerDB" in /etc/mongo.conf. #mongod.conf storage: dbPath: /var/lib/mongodb journal: enabled: true ...
0
votes
0answers
295 views

Connecting to MongoDB Atlas throws Exception 'No suitable servers found'

Connecting to the mongodb atlas and trying to write a simple document gives the following error. What am I doing wrong? $manager = new MongoDB\Driver\Manager("mongodb://admin:admin@test-shard-00-00-...
0
votes
1answer
346 views

MongoDB is not connecting through window server?

When I am trying to connect mongodb server which is running on google window server. It is giving error Network is unreachable. I check the firewall port is open for all connection. mongodb is ...
1
vote
1answer
2k views

How to expose and access MongoDb ports in Kubernetes?

I have mongoDB deployed on Kubernetes. The Database is setup properly and can be accessed using its internal dns name. I need to expose this to the outside world. I have used node port/ loadbalancer ...
0
votes
0answers
67 views

MongoDB service in Mesos using marathon framework

We have MongoDB instances exposed as docker images in Mesos using marathon framework. Currently, the data is housed in a static way(pointing to a specific host mesos-instance-01). However, I wanted to ...
0
votes
0answers
18 views

MongoDB error WT_SESSION.open_cursor: <path>\index-6-3433226623529221452.wt: file-size: GetFileAttributesEx:The system cannot find the file specified

Our 5 node (Pri,Sec,Sec,Sec,Arb) replicaset was having issue (2 secondary nodes not able to be brought up after server OS patch). The 2 secondaries were down for a few days. The OS issues are now ...