Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
9 views

mongodb cannot start “unknown storage engine”

Note: I checked Mongodb doesn't start on reboot and is not the same problem, I had a rocket chat server, rebooted the server and now mongod cannot start. These are the messages: 2020-06-01T21:...
-1
votes
0answers
4 views

implementing a mongodb as a container

The app im creating is divided into micro-services and one components in the system is the mongoDB, currently iv'e implemented it on a container for development but my partner thinks that for the prod ...
0
votes
0answers
23 views

Optimisation mongodb database

At the moment I have a mongo database with three instances one master and two slaves. At the moment the database is on kubernetes hosted by aws. The maximum cpu cores is 4 and from time to time when ...
0
votes
0answers
12 views

Is there any way I can offload a particular mongo collection to sumologic?

I wanted to offload a collection called logs.test to sumologic. I don't want to export all the collections in my database just wanted to offload "logs.test" is that possible? I thought if exporting ...
0
votes
0answers
6 views

Persistent storage failure or Authorization Failure after Mongocontainer restart using docker-compose rebuild after Machine restart

I have set up a mongo container connected to a nodejs app. First I do docker-compose up --build where I start mongo as a service without auth, i.e commented out. Then I login to the mongo terminal ...
0
votes
0answers
19 views

Run MongoDB with Unbreakable Enterprise Kernel (UEK) on Oracle Linux

I am running MongoDB v3.4.9 on Oracle Linux Server release 7.7 with the Unbreakable Enterprise Kernel (UEK) 4.14.35-1902.3.2.el7uek.x86_64 for testing purpose. UEK is not official supported on Oracle ...
0
votes
0answers
46 views

Moving Rocket.Chat data to different hard drive

I have Rocket.Chat running on Ubuntu 18.04.4 LTS through Snap. I would like to move the data (but not the entire snap) to another hard drive. So far this is what I have tried: Backup Rocket.Chat ...
0
votes
0answers
20 views

MongoDB backup and restore process

I have a MongoDB cluster which is working in active passive mode and this setup is on premise. I am working on a backup and restore strategy of the whole setup. Can anyone please let me know what ...
0
votes
0answers
28 views

For authentication of MongoDB: How to limit the number of login attempts? How to set session timeout?

I am designing security policies for databases. Is there any way to limit the number of login attempts to protect DB from brute-force attacks? For example, user have to wait for 2 minutes after 3 ...
0
votes
0answers
32 views

GCP mongodb external ip connection issue

I have a spring MVC application and I am connecting it to MongoDB cluster This is in the application.properties file mongodb.url=mongodb://userName:Password@xx.xx.x.xx:27017,xx.xx.x.xx:27017,xx.xx.x....
0
votes
1answer
103 views

Unable to connect to Mongo Community server on OS X Catalina

After migrating my old MacBook Pro to a new machine via the Migration Assistant, I am unable to connect to MongoDB. I re-installed it via Homebrew, and when I run: brew services start mongodb-...
2
votes
0answers
33 views

How do I create a web dev environment using a linux command line without a GUI/OS? [duplicate]

Sorry if this is a stupid question or it doesn't make sense. Basically what I'm trying to do is put my local web development project (using Nodejs/Express and MongoDB) onto a server that only ...
0
votes
0answers
24 views

Push mongodb collections to Amazon redshift

I have got a mongodb database. I need to stream or push data from mongodb to Amazon redshift as and when data arrives in mongodb. Is there any solution for this..? Can this be implemented using Apache ...
0
votes
1answer
46 views

directoryperDB is not working under WiredTiger storage Engine

When i enable the directoryperdb option in the mongo.conf file, mongodb server service doesn't start. 2020-03-16T15:37:55.300+0530 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable ...
0
votes
1answer
22 views

Upgrade mongodb replicaset 3.2 to 3.6 on live servers

I want to upgrade mongodb version(3.2 to 3.6) on prd environment W/O downtime. We have one primary node, one secondary node and one arbitrary. We are using ubuntu 16.04. So please guide me how can I ...
0
votes
1answer
250 views

(SOLVED) MongoDB keeps failing on startup with exit code, status=100

UPDATE: I solved the issue by changing the storage engine to wiredTiger. I did this by editing /etc/mongod.conf and adding "engine: wiredTiger" after "journal: enabled: true" Everytime I start ...
0
votes
1answer
15 views

Can I run mongodb under a Managed Service Account

I'm trying to run MongoDB under a Windows Managed Service Account. This works fine for memcached on the same server, but when I run the MongoDB account I get this: Windows could not start the MongoDB ...
1
vote
1answer
27 views

Iterating through an ansible hosts group to modify a templated file at playbook runtime

Let's say I have the following hosts groups in my Ansible inventory [qrouters] devops-qr1 devops-qr2 [shards] devops-shrd1 devops-shrd2 devops-shrd3 I have to add shards to a mongodb cluster with a ...
0
votes
0answers
18 views

accessing MongoDB from a virtual machine

Well recently I have installed MongoDB on my windows machine which is my local machine and I want to connect to it from a virtual machine in my Virtualbox. the vm is an ubuntu 16.04 and it's hosting ...
0
votes
1answer
53 views

How to make AWS resolves domain name to internal IP

I have a VPC peering established with MongoDB Atlas, however when I try to resolve the database cluster's domain from within an EC2 instance in the same VPC, I get back the public IP. This is a ...
0
votes
0answers
31 views

AWS/NodeJS/MongoDB config leading to proxy error 502

I know that I am messing something up with my proxy settings for our web application, but I am not sure what. We're running Apache and NodeJS on AWS. We have proxy settings set to allow those two to ...
0
votes
0answers
230 views

MongoDB - collections and documents lost/disappeared in replica set

I was running three mongo (4.0.4) containers within docker with configured replica set over 10 months without having any problems or issues. Primary mongo container/replica set was connected with ...
0
votes
1answer
25 views

mongodb - require authentication on database basis?

Is it possible to require authentication only on specific mongodb databases (leaving other databases with free access with no authentication requirements)?
0
votes
0answers
121 views

Tunnel created using SSM only allows single connection to destination port

I've established a tunnel between my laptop and an EC2 instance to use port 27019 locally and port 27017 (MongoDB) remotely. aws ssm start-session --target "i-someinstance" --document-name AWS-...
0
votes
2answers
177 views

How to move Free space from One partition to another 100% Full Partition in Linux CentOS

We have a Linux CentOS server. Our 1 partition "/dev/md3" is 100% used. That's why Mongo DB is not being connected. Can someone let me know how to solve this issue. I think mounting the partition is ...
0
votes
0answers
41 views

Import CSV with arrays in MongoDB

How can i import csv with fields and arrays? mongoimport --db name --collection users --type=csv --file out.csv --fields email.verificationTokens.0.address,email.verificationTokens.0.when Now in DB ...
0
votes
1answer
76 views

Transfer image files from MongoDB to S3

I have a NodeJS app that stores all of its data, even images, to MongoDB. Now I want to use an S3 to store my app's files (images, 43gb) and so, I need to transfer there all files that I have in my ...
0
votes
1answer
122 views

Mongo restore command reduces database size

I have two clusters of mongo database, each having three machines. Say Cluster1 and Cluster2. To reduce cost I have to terminate Cluster2. So I took mongodump of one database from the primary machine ...
1
vote
0answers
16 views

MongoDB connection initialisation delay on certain Windows 10 devices

Ref: https://stackoverflow.com/questions/58856620/mongodb-connection-initialisation-delay-on-certain-windows-10-devices System info OS Name: Microsoft Windows 10 Enterprise OS Version: 10.0.17134 N/...
0
votes
0answers
138 views

Error: Failed to synchronize cache for repo 'mongodb-org-4.2'

I'm try install mongoDb community version by this link: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ The step one it's ok: 1)Configure the package management system (yum). ...
0
votes
1answer
71 views

MongoDB: dilute collections when mongo is down

as you all must know very well- mongo service is stopped when disk space reaches full capacity. my question is- if and how can I dilute \ delete a collection while the mongo service is down?
1
vote
2answers
188 views

Running AWS Lambda in same VPC as DocumentDB or DynamoDB

We are currently running our AWS Lambda's in a VPC due to an earlier architectural decision. We are also using MongoDB Atlas and a peering connection setup between the VPC and Atlas. This obviously ...
0
votes
0answers
91 views

How to connect MongoDB via Compass is bastion host(jump) setup Ask

I am using a bastion host(jump server) to connect to MongoDB. I can use it via command line but I am looking to connect via Compass client. My scenario is I have an ec2-A(public) instance which uses ...
0
votes
0answers
72 views

MongoDB 3.4 x.509 certificate authentication

I am trying to setup/add x.509 authentication to secure our application built with a MongoDB 3.4 database. I don't want to use username/password-based authentication to avoid keeping the password in ...
1
vote
1answer
885 views

How to connect to remote mongoDB via ssh (via Sacred)? connection refused

I have two computers: Ubuntu1 and Ubuntu2. Ubuntu1 runs MongoDB with database Sacred3. I want to run connect from U2 to U1 via ssh and store there my experiment results. What I tried and failed: 1. ...
0
votes
0answers
418 views

Error on MongoDB 4.0-4.2 upgrade: Invariant failure

I have a 3-member MongoDB replica set running in a Kubernetes cluster, installed from stable/mongodb-replicaset helm chart. I tried to upgrade the cluster as: # helm upgrade mongo-rs ~/mongodb-...
1
vote
1answer
40 views

How to copy an 800GB mongoDB in a few hours?

I will visit a client's industry location for a few hours and have to copy the data from his mongoDB server. The data is currently above 800gb in size. I tried to replicate the data remotely but it is ...
0
votes
0answers
16 views

MongoDB cluster design accross multiple Data Centers

I am designing a MongoDB cluster on multiple data centers The 3 data centers are located at different suppliers. They are linked through IPSEC site-to-site VPNs. I am looking for the best design to ...
1
vote
0answers
904 views

Installing repos with https breaks yum on CentOS

We have a very similar problem to https://stackoverflow.com/questions/48320850/installing-epel-repository-on-centos-7-breaks-yum-functionality/58177576#58177576. I've seen several pleas for help as I'...
0
votes
1answer
162 views

Permission issue starting mongo from a script

If I run the following command, everything works as expected: sudo mongod --fork --dbpath /path/to_data/ --port 27027 --syslog However, if I put the following command in startmongo.sh and run it ...
0
votes
0answers
53 views

Can I use a password and identity file to log in to my database with an SSH Tunnel? [MongoDB Compass]

I'm trying to log in to my vps through MongoDB Compass Community, and I can't find a way to use interactive log in (as I'm doing with FileZilla to log in) or input an identity file and password before ...
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
154 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
727 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
204 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
184 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
54 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
154 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 ...

1
2 3 4 5
17