Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

Ubuntu has invalid checksum in blocks ~once a week

I use Ubuntu 18.04 on my server machine. Once a week Ubuntu has invalid checksum for blocks, so Ubuntu enters read only mode, after which processes fails and Ubuntu restart is needed. During booting ...
0
votes
0answers
19 views

“Attempted to use Snappy compression, but Snappy is not installed” on Ubuntu VPS

I have set up a new VPS via Digital Ocean and have installed MongoDB V4.2.8 on an Ubuntu server 18.04 release as per the official Mongo documentation. I'm using Compass version 1.21.2. I have managed ...
0
votes
0answers
16 views

mongodb high resource usage and configuration hints

I am running a MongoDB instance as a ubuntu service, on a VM with enough resources to handle it with ease, the system is on-premise and not Cloud. I am a newbie with MongoDB and this is a test/dev ...
0
votes
1answer
29 views

init.d kills my mongod process due to respawning

I'm using Ansible to start the mongod service on a Centos 6.8 VM. The task is pretty straightforward: - name: Start mongod service service: state: started name: mongod However the service ...
0
votes
0answers
50 views

How to backup/restore a large MongoDB database?

How can I backup and restore a large mongodb database (500GB) from a server running an older version (v2.6) than the target one (v3.6)?. The downtime is critical. We've tried by making a straight copy ...
0
votes
0answers
30 views

Impossibile to replicate MongoDB

we are trying to move a MongoDB from an AWS VM to an on premise machine. The MongoDB data directory size is over 2.5TB. The idea is to put the on premise VM in replica with the AWS VM. The problem is ...
0
votes
0answers
36 views

In kubernetes, can not connect to another container in SAME pod from time to time

I have a complicated system deployed in k8s, and in one of the pods, there are 2 containers, mongo and metrics. some related info from kubectl -n app_ns describe pod app-mongo is as below(removed some ...
1
vote
1answer
42 views

Cant connect to mongo db

Any idea why I am not able to connect to the mongo database? I just installed it on a new debian following this https://linuxize.com/post/how-to-install-mongodb-on-debian-9/. Mongo startup logs: https:...
0
votes
0answers
11 views

How do I get init.d to respawn a crashed process if the lock file exists?

I'm running a mongod process on my Centos 6.8 box, and I want to provide some level of resilience in the event of process death. So I created an entry in my /etc/inittab - md:2345:respawn:/usr/bin/...
1
vote
0answers
75 views

Adding Mongo WiredTiger node to MMAPv1 replica set leads to “No keys found for HMAC”

I have a 3-node Replica Set (primary + 2 secondaries). They are all running Mongo 4.0.18 using the MMAPv1 engine. I am trying to switch the replica set over to use WiredTiger. I read through the ...
1
vote
1answer
53 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:...
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
7 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
21 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
54 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
29 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
185 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
34 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
83 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
24 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
577 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
17 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
28 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
19 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
37 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
270 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
26 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
131 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
201 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
47 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
86 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
140 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
145 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
72 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
224 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
97 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
81 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
1k 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
466 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
41 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
1k 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
180 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
56 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 ...

1
2 3 4 5
17