Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
115 views

How to use extundelete on AZURE VM?

I have an instance of MongoDB running on an AZURE VM, which gets all data dropped. I was trying to find if some file is still there, by using the below command: $ sudo extundelete --restore-all /dev/...
1
vote
1answer
1k views

How to host R-Shiny app with MongoDB on Azure

I want to host an R-shiny app on Windows Server platform on Azure VM and this R-Shiny app will retrieve data from MongoDB. So far: I cannot install R-Shiny server because it doesn't support Windows ...
1
vote
2answers
7k views

MongoDB: why the mongod service is shutdown?

When I use daemon service to start mongodb, MongoDB is always received kill signal by system(CentOS7.3) after about 2 minutes: Log: [signalProcessingThread] got signal 15 (Terminated) But when I ...
1
vote
1answer
589 views

how to connect mongodb with replicaset url?

I'm using MongoDB with replication(bitnami) on Azure. I have created three mongodb nodes(1 primary ,1 secondary and 1 arbiter). When I try to connect with MongoDB connection URI (mongodb://username:...
1
vote
1answer
106 views

Kubernetes: how to deploy new version of container via Deployment keeping mount storage?

I run small Kubernetes cluster in Azure, so can use abstracts provided by Azure (like storage etc). On it, I have a Deployment object defined in a file that includes one pod and several containers in ...
0
votes
1answer
65 views

Mongodb Atlas m0

I am starting with mongodb atlas and I am a bit lost. I would like to follow the tutorial: https://www.mongodb.com/presentations/tutorial-series-getting-started-with-mongodb-atlas I am on the 2 ...
1
vote
1answer
2k views

mongodb 10gen repo invalid signature

I am trying to install mongodb on debian from 10gen repo. I have followed the official guide HERE however i am stuck when trying to add the repo in apt. The problem is that the signature is invalid. ...
1
vote
0answers
683 views

Why does mongo's rs.status() show secondary as healthy when its offline

I logged into a secondary & did use admin; db.shutdownServer(), then I powered off the whole server with "sudo shutdown". On the primary server I am running rs.status(). For the secondary that is ...
2
votes
1answer
300 views

Using different cloud hosts for app and db/will there be latency with Mongo Atlas?

Is it ok to host both a web app and db server on different cloud providers? Traditionally you really needed to host both on the same network - but I'm wondering if, with modern networks, this is less ...
1
vote
0answers
173 views

RestHEART - How to prevent use of server-side Javascript in MongoDB

I am running RESTHeart for REST API access to a MongoDB instance, and I need to deny requests which would cause execution of any server-side Javascript in MongoDB. I cannot disable this feature ...
1
vote
0answers
472 views

MongoDB stalling at 100 writes/s but benchmark says 54000 writes/s

I am running MongoDB (v3.4 Community Edition) on an AWS EC2 m4.large instance. I installed it according to this MongoDB tutorial. I haven't modified any MongoDB config. I haven't configured any ...
0
votes
1answer
587 views

Run nginx as proxy for mongodb and proxy for a webservice running in tomcat

I want to run nginx to redirect requests to mongodb and a webservice both. I tried to use both server and stream directive but I was not able to get it right. What should be the configuration file ...
9
votes
3answers
12k views

Unable to install MongoDB 3.4 on Debian stretch

I added mongodb repo to source list: deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.4 main Then apt-get update. When I try to install mongodb-org I'm getting this: root@ns:~# aptitude ...
2
votes
1answer
71 views

Disable Transparent Hugepages on all nodes?

I upgraded our mongo infrastructure from 2.6 to 3.0 (on way to 3.4) and when I logged into a secondary via local mongo client I saw a warning about transparent hugepages. After some research I decided ...
0
votes
1answer
72 views

Mongodb and SQL Server

Our db group is looking at placing our mongodb server instances on the same servers that host sql server. Our SQL foot print is fairly large with a good dozen dbs larger than 200gb in total space ...
2
votes
1answer
3k views

mongodb replica set backup using rsync

I have configured mongodb replica set (I have 3 db instances -Redhat) and I would like to take a backup of db file ( dbPath: /var/lib/mongo) using rsync, 10 or 12 times per day. So, do I need to ...
2
votes
1answer
425 views

MongoDB Replica Set: Is RAID 60 worth it for massive array?

We are planning to get HPE DL380 Gen9 8SFF CTO Servers with HP Smart Array P440ar/2G FIO Controller to setup a MongoDB cluster which will store huge amounts of data. (Assume growing non-stop) Cluster ...
1
vote
1answer
48 views

Is there any contraindication for using the same servers for shards and config?

I'm wondering if there's any contraindication for installing on the same server a config instance and a shard instance. for instance we have two shards with 3 replicas each (6 servers), and each one ...
7
votes
2answers
9k views

How can I connect to a MongoDB Replica Set behind a proxy?

I have a MongoDB Replica Set on the cloud service. For security reason, the replica set is available to the cloud's internal network. I followed that cloud service's guide and setup a proxy to each ...
1
vote
0answers
62 views

GKE containers and 3rd part mongoDB service

We want to use Google Container Engine and mLab (mongoDB cluster) service together. Containers have always public IP from node on which they are started, during scaling nodes are added/deleted so IPs ...
0
votes
1answer
1k views

Mongod service running but not connecting in browser

Background: Using vagrant virtual box running Ubuntu on a macbook Having installed the mongoid gem in a new rails application I am given localhost:27017 as the port that the mongodb server is ...
0
votes
1answer
280 views

mongodb with microsoft failover cluster

im required to install mongodb in a microsoft windows 2012r2 server in a failover cluster mode. does mongodb supports that as microsoft sql do? if the answer is yes, can you point mo to a guide please?...
1
vote
1answer
253 views

Which SaltStack returners work properly with master_job_cache?

I've been working to set up an external returner on the master side for my Saltstack deployment -- a 'master_job_cache', as specified in the documentation. I started with Slack and mongo_return. I ...
1
vote
1answer
2k views

MongoDB on EC2 - R3 vs R4

I have a 3 nodes RS on EC2. All the nodes are running on r3.2xlarge, which has EBS Optimized turned on. Recently, AWS released the r4 series, which is described as a better version of r3 - faster ...
0
votes
1answer
166 views

Mongodb MMS API Key

Trying to get into my MMS account and I need the API key in order to reset my 2 factor authentication. All docs that I read point to the config file in /etc/mongodb-mms/monitoring-agent.config, but ...
-1
votes
1answer
1k views

Did someone just run intentionally db.dropDatabase() on my mongo shell? Can you access mongo remotely and bypass ssh password?

To my surprise, my database was empty after not looking at it for a week. There were collections and a few rows of data. It's running on a digital ocean 14.04 Ubuntu droplet. Mongod is running on the ...
0
votes
1answer
834 views

Open File Limits

During the installation of mongo db I encountered a warning which says soft rlimits too low. rlimits set to 1024 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times ...
-1
votes
1answer
346 views

mongod rs.initiate() error msg

I am a newbie so please bear with me. I have used this command $ sudo mongod --config /etc/mongod2.confin terminal to start a mongodb service instance. In another terminal I ran $ mongo --port XXXX ...
0
votes
1answer
34 views

Do I have to enable authentication in Mongo for a self-managed server?

Up to this point, my server was a development environment. As such, authentication was off in MongoDb. It's now time to get into production. I looked up how to do authentication. However, given the ...
0
votes
1answer
2k views

Wiredtiger vs MMap Storage engine difference

I don't get exactly which are the difference between the storage engines in mongodb. Besides those: concurrency (collection lock MMap - document lock WT) in-place updates (Yes MMap - No WT) data ...
0
votes
1answer
74 views

Node.js not talking to Mongodb

I inherited a server, and the original admin team is no longer around. We have a live server that is working, but I'm trying to successfully convert it to an AMI for AWS scaling. The clones work, ...
0
votes
1answer
282 views

How can I set the storage engine to wiredTiger with the 2.4 config syntax?

I'm currently upgrading my mongodb from 2.4 to 3.x One of the steps is to change the storage engine to wiredTiger. Can I still use the 2.4 syntax in my mongod.conf file or do I need to change ...
4
votes
1answer
11k views

Mongodb doesn't start using systemctl

When I try to start the mongo service(systemctl start mongodb) I get this error in journalctl: Mar 21 15:36:18 redhat7 systemd[1]: Started High-performance, schema-free document-oriented database. ...
1
vote
1answer
871 views

MongoDB with NVMe SSD

Does anyone have recommendations on the RAID configuration when running MongoDB on NVMe SSDs? Is the best practice still RAID10 like with HDDs and SATA SSDs? Thanks.
5
votes
2answers
7k views

MongoDB “too many files open” even after setting limits

When MongoDB starts up, I am greeted with a "too many files" error, even after editing /etc/security/limits.conf and setting the limit to unlimited. Mar 09 18:29:13 ns524052 mongod[1298]: 2017-03-...
1
vote
1answer
1k views

Connecting to Mongodb Bi-connector remotely in docker

I recently installed the mongodb Bi-connector in order to use Tableau to visualize my data I successfully installed it in a docker container using a debian image. The connector successfully access my ...
1
vote
1answer
2k views

Exec format error while creating mongo db startup init.d script on Redhat 7

I had followed the link for adding mongod as linux service. after server restart, the mongod server is not restarted. /etc/rc.d/init.d/mongod file content: #!/bin/bash # ...
1
vote
0answers
4k views

MongoDB connections are failing with “SocketException… SEND_ERROR”

I have a production MongoDB 2.4 that's giving this error in the logs: SocketException handling request, closing client connection: 9001 socket exception [SEND_ERROR] server [127.0.0.1:37934] The ...
2
votes
0answers
568 views

Use Kubernetes and MongoDB Cluster (sharded) on premises

Currently I am investigating the use of Kubernetes together with a MongoDB cluster. Scenario: We are planning on creating a sharded Mongo Cluster. We intend to use MongoDB's Ops Manager for the ...
-1
votes
1answer
2k views

I faced this error after trying to install mongodb on ubuntu 16.10

When trying to install mongodb on ubuntu 16.10 When I type this: $ sudo systemctl start mongodb Failed to start mongodb.service: Unit mongodb.service is masked I have followed all the steps on the ...
2
votes
1answer
236 views

Run rc.local only once Mongodb is running in CentOs 7

I have the following script in my rc.local: This runs the services on ports 8080, 8081, 8082, 8083. They are actually node servers that NEED mongod to startup. So, I edited /lib/systemd/system/rc-...
5
votes
1answer
2k views

How to downgrade mongodb 3.4.2 to 2.6.11?

I had mongodb 2.6.11 installed on my CentOS sandbox server. Dec 03 22:24:38 Updated: mongodb-org-mongos-2.6.11-1.x86_64 Dec 03 22:25:07 Updated: mongodb-org-tools-2.6.11-1.x86_64 Dec 03 22:25:08 ...
1
vote
1answer
2k views

MongoDB Active-Active Multiple Datacenters

I am looking for a method to configure MongoDB servers across 2 different datacenters where they remain in an active-active configuration. Site A is the normal Production environment that customers ...
1
vote
0answers
457 views

Traffic to and from mongodb using SSL is still visible in wireshark in plaintext

EDIT: There was nothing wrong. I was an idiot. The below settings are correct. I've set up an instance of mongodb (3.4) on windows, configured like this: net: port: 27017 ssl: mode: ...
4
votes
1answer
135 views

Single SSD on a mongodb node

we are getting started with a mongo cluster. The best practices docs mention that the ideal storage capacity per node is ~5TB. Given we can get ~4TB from a single SSD, we are planning to go with it ...
0
votes
1answer
1k views

MongoDB indexing before adding data

A lot of people are saying do "background indexing" after importing a dump. But what if you don't have a dump? For example, we're spinning up a Docker container with MongoDB on it, and installing it ...
0
votes
1answer
2k views

How to install mongoDB on Fedora

I want to install mongodb on fedora 25, but i get this error : Redirecting to '/usr/bin/dnf install -y mongodb-org' (see 'man yum2dnf') Failed to synchronize cache for repo 'mysql57-community', ...
0
votes
1answer
1k views

What happens if mongo reaches RAM limit?

My mongo instance grew up to the RAM limit I've set to its container. What happens if it eventually reaches the limit? Crash? Performance decline? Or is it just dropping stale indexes?
0
votes
0answers
315 views

Mongodb autostart with linux

I have recently updated mongodb on my AWS linux server with sudo yum install -y mongodb-org The result was that the mongod command would no longer successfully launch the mongodb server, because I ...
4
votes
1answer
428 views

Debugging Node.js disk I/O and CPU spikes

I'm running a Node/Meteor/Mongo app on Ubuntu (on a Digital Ocean 1GB droplet), and I've been seeing some weird disk I/O spikes, which are then followed by CPU spikes: I was wondering: If that ...

1
3 4
5
6 7
17