Stack Exchange Network

Stack Exchange network consists of 174 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
1answer
24 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
22 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
26 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
46 views

Forgot mongodb admin password

Forgot Mongo DB admin password, how can we get/reset it? Can we create new user with admin rights? Can we set admin by disabling any settings in config file? Regards, Kavita
0
votes
0answers
20 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
0answers
13 views

How does logstash-input-mongodb maximize batch_size performance?

i mongodb 1,000,000 count data send -> ElasticSearch receive. i setting info. input { mongodb { uri => 'mongodb://xxx.xxx.xxx.xxx/home' placeholder_db_dir => '/home/jskang/logstash/...
0
votes
0answers
17 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
25 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
32 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
20 views

MongoDB - mongod.cfg net:ssl:certificateSelector

I'm trying to running MongoDB 4.0.4 as a windows service on Windows 20016 but it will not start. My MongoDB run as local system. I'm trying to add my ssl configuration on the mongod.cfg file as ...
0
votes
0answers
52 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
31 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
7 views

Mongodb Sharding: connectivity policy incoherence

In the official documentation of Mongodb they say that "Each member of a sharded cluster must be able to connect to all other members in the cluster. This includes all shards and config servers. ...
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
36 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
14 views

mongod unexplainable increase in CPU usage, solvable through restart

We have a mongodb node which, for no apparent reasons, sometimes gets 2-3 times CPU-hungrier, and remains so until we restart it. Empirically, we've found out that it's needed to restart mongod to ...
0
votes
0answers
15 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
78 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
39 views

Systemd docker mongo error: cgroup is empty

Trying to run mongodb in docker using systemd mongod.servivce file for systemd: [Unit] Description=mongodb in docker After=network.target docker.service Requires=docker.service [Service] User=root ...
0
votes
0answers
63 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
40 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
38 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
0answers
8 views

docker-proxy starts automatically : how to disable it?

Every time i start my system, i see my port 27017 being used by this process: x:~$ sudo netstat -tulpn | grep 27017 tcp6 0 0 :::27017 :::* LISTEN ...
0
votes
1answer
53 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
0answers
162 views

Installing MongoDB. failed to start service

Cannot find much on the internet about this problem. I even reset my computer because other things were messing up and it was about time i reset everything anyway. How ever I am still getting this ...
0
votes
1answer
92 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
32 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
23 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
33 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
19 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
175 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
61 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
199 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
97 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
39 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
46 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
216 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
270 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
917 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
44 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
17 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 ...
1
vote
1answer
652 views

Can't start mongodb

I installed MongoDb on Ubuntu and was able to run it using sudo service mongod start. Then I had to restart it since I changes the config file. Now I can't start it again. When I run sudo service ...
0
votes
2answers
249 views

Mongodb primary node not Resolved in Debezium Kafka Connect — Docker Compose

i have this docker compose file, that contains bitnami/mongodb containers for creating a replica set. and I've used zookeeper, kafka & debezium-connector for monitoring my mongodb replica set. ...
0
votes
0answers
57 views

DEBEZIUM — Mongodb primary node not Resolved in Debezium Kafka Connect — Docker Compose [duplicate]

i have this docker compose file, that contains bitnami/mongodb containers for creating a replica set. and I've used zookeeper, kafka & debezium-connector for monitoring my mongodb replica set. ...
0
votes
0answers
53 views

Can we deploy two mongodb services, using helm package in same cluster with different release name?

I used helm stable charts to install mongodb in my AWS kubernetes cluster, when i run helm install mongodb for the first time, no issues all pod runs and i am able to access the db too. however, when ...
0
votes
1answer
67 views

Remote server firewall blocking remote mongodb server

I have an Ubuntu server that is trying to connect to a remote MongoDB server. When I try to connect to the remote MongoDB server via the following method: mongo -u user -p pass yourdb.com:27017 It ...
0
votes
0answers
47 views

MongoDB sharding replicaset overload when I stop the secondary

I've got a MongoDB Sharding with 8 servers, and 4 replicasets. Each replicaset has primary, secondary and arbiter. The distribution is something like this: - RS01 -> Server1A (primary), Server1B (...