Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
161 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

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
295 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
252 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
128 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
657 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
144 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
25 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: ...
2
votes
1answer
692 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
1answer
91 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
1answer
119 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 ...
2
votes
1answer
250 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
80 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
26 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
29 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
93 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
87 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
592 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 ...
1
vote
0answers
161 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
591 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
211 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
147 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
63 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
620 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
516 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
4k 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 ...
1
vote
1answer
2k 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
492 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
142 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
73 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
100 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 (...
0
votes
1answer
445 views

MongoDB hosted on EC2 connection issue

I am a front-end programmer trying to learn more backend technologies. I setup a Mongo database on an EC2 server, and I have a lambda function that I'm trying to make connect to my mongo database. ...
0
votes
1answer
117 views

Mongodb: secondary does not become primary

I have a replica set with 2 servers with a data and one arbiter. rs.status() shows that all three servers are connected. But when I stop my primary, secondary server remains secondary and does not ...
0
votes
0answers
131 views

Set more than one replica on a single host

We are setting up a new mongo environment, migrating from an existing one. We currently have two shards, and we have three hosts for this (and an additional three, much smaller ones, as config servers)...
0
votes
1answer
62 views

Does AWS security group apply to communication between processes on an instance?

Do inbound and outbound traffic rules apply to communication between processes inside an instances? For example, My MongoDB instance is running on port 27017 while my Node.js app is listening to port ...
0
votes
1answer
122 views

MongoDB Collection Level Access Control not working

I have to restrict few MongoDB users to specific collections with some specific action permissions(only Update collection). As per the docs it's possible. localhost:tmp username$ mongo MongoDB shell ...
1
vote
0answers
1k views

MongoDB: Can I Manually Delete The Collections Inside /var/lib/mongodb Without Breaking Anything?

Due to stupid negligence on my part I forgot to change the MongoDB path. As a result, my collections were stored in /var/lib/mongodb. As I was filling my collections MongoDB hang. Then I realized ...
0
votes
1answer
129 views

cannot write from mangodb pod to persistent volume

i'm trying to create a persistent mongo database with kubernetes here is my config persistent volume yaml file: kind: PersistentVolume apiVersion: v1 metadata: name: task-pv-volume ...
0
votes
1answer
89 views

Unable to install mongoDB Community Edition on Ubuntu 14.04

I have created an instance in Alibaba Cloud Simple Application Server with Ubuntu 14.04 as system Image. I am trying to install MongoDB CE on the server by following the official documentation here I ...
0
votes
1answer
753 views

Connect MongoDB Compas to GCP Ubuntu VM

I am a little lost on how should I host MongoDB on Ubuntu VM. I barely worked with Ubuntu before so I struggle to understand a lot of aspects. I followed guide: https://docs.mongodb.com/tutorials/...
0
votes
0answers
20 views

Only allowing Mongo user to access one collection

I have an app that I want to tap into a centralized database but it only needs access to one of the collections, so I would like to restrict this Mongo user to accessing the documents for this ...
1
vote
0answers
132 views

How can child processes of mongo can be killed?

I have following mongo process tree in LINUX server. mongod(1168)─┬─{mongod}(1366) ├─{mongod}(1367) ├─{mongod}(1370) ├─{mongod}(1376) ├─{mongod}(1378) ├─{...
0
votes
2answers
2k views

MongoDB secondary replica permanently in not reachable/healthy state

I have a standard 3 node MongoDB replica set: 10.0.2.35 - Primary 10.0.3.169 - Secondary 10.0.1.48 - Secondary I'm currently not able to connect to them as a replica set, I can only connect through ...
0
votes
1answer
266 views

Why Does MongoDB Give an Out Of Disk Space Error When Space Is Available?

I am running RocketChat on a Fedora 27 (64bit) server and it uses MongoDB. Details are currently: Version of Rocket.Chat Server: 0.64.0-rc.0 Operating System: Fedora 27 64 bit Deployment Method(snap/...
2
votes
0answers
62 views

Read/Write Split in Mongodb

We are looking for some load balancing tool which can split read and write load in between replica and master node, I know it can be possible through driver or application level but I would like to do ...
1
vote
0answers
108 views

how to connect to mongo replica cluster which is ssl/tls enabled?

I have three mongo instance(Replicaset) with ssl/tls i.e I have 3 pair of key and cert. Which pair should be used in the Node js connection string ? Is there a way to add all 3 key&crt pair. I ...
1
vote
0answers
954 views

mongorestore : don't know what to do with file “/home/path/to/folder/collection1.bson”, skipping

-I'm trying to import a mongodb database - From a mongodb base version 2.4.10 I exported the database with the command: mongodump -d DBNAME -o / path / folder -I tried to import the dump to a ...