Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

“not authorized” with auth turned on in Mongo

I am following the directions here to try and install Mongo 3.6 w/ authentication turned on. I have added a "root" user and I am able to login using Mongo shell and I added a application user as well,...
1
vote
1answer
1k views

MongoDB - Bind_IP Breaking changes and Replica set broken

I'm running Replica set on 3 Windows server 2012 R2 in my VPN. The servers IPs are: 192.168.1.1,192.168.1.2,192.168.1.3. MongoDB version: 3.4.2 I want to limit the access to the MongoDB servers only ...
1
vote
3answers
3k views

What's causing Ubuntu to have BUG: soft lockup warning so often?

EDIT: it turns out that this is not the only instances of the bug happening. It happens so often in my computer. Sometimes it involved another seemingly random process, such as: chromium-browser, ...
1
vote
1answer
1k views

MongoDB in container on Mac not binding ports

I am trying to setup a local Mongo instance using Docker for development purposes. I need to turn on authentication, and according to the docs it is possible. The problem is, after I create the ...
2
votes
1answer
3k views

Azure cosmosDB incredibly poor performance

I have a mongoDB on Azure cosmos and the performance is horrible. I have below the time for a few requests that my app does on startup and as you can see Mlab is up to 150 times faster! I am using the ...
2
votes
1answer
385 views

MongoDB background indexing very slow

I am running MongoDB on an Ubuntu on a single AWS EC2 as m4.2xlarge. The disk is 1280GB io1 22000 IOPS on XFS file system, 73% full (it is only used for MongoDB). The MongoDB server version is 3.4.10. ...
1
vote
1answer
567 views

mongodb wiredtiger engine from ext4 to xfs

I am having performance issue related to mongodb wiredtiger engine on an ext4 filesystem (https://docs.mongodb.com/manual/administration/production-notes/#kernel-and-file-systems) I have a replicaset ...
-2
votes
1answer
672 views

Mongodb is running out space - how to increase it?

My mongo has stopped running: $ sudo systemctl status mongodb.service ● mongodb.service - High-performance, schema-free document-oriented database Loaded: loaded (/usr/lib/systemd/system/mongodb....
0
votes
1answer
360 views

How to set config file to percona-mongodb

I have an percona/percona-server-mongodb image of mongo. I tried to mount my mongod.conf. How to set config and run mongo with config file? docker run --name mongo1 -v /opt/mongo/mongod3.conf:/etc/...
2
votes
1answer
3k views

can't upgrade from mongo 3.4 to 3.6 - Server min and max wire version are incompatible

I have a mongodb 3.4 cluster that I want to upgrade to 3.6. on a test run (virtualbox), I was able to do so, but with the real cluster I'm getting this rs.status() after calling add: ...
0
votes
1answer
454 views

How does configuring bind ip to localhost secures MongoDB instance?

Starting in MongoDB 3.6, MongoDB binaries, mongod and mongos, bind to localhost by default. How does it ensure security of MongoDB database?
2
votes
2answers
3k views

MongoDB not starting: Unable to create/open lock file No space left on device Is a mongod instance already running

MongoDB was already running for a couple of months then stopped suddenly. I ran: service mongod restart Restarting mongod (via systemctl): Job for mongod.service failed because the control process ...
0
votes
1answer
107 views

Would a hpc and/or shard mongo cluster solve my system bottle neck?

OK so I have an application running on Node.js on the same desktop system that is running my mongo service. I have a certain query that takes about 20 seconds to complete, this entire system ...
1
vote
1answer
1k views

Mongo client connects with command-line params, but fails with equivalent URI

When I create a MongoDB database with this script: #!/bin/bash javascript=' db.dropUser("admin"); db.createUser({ user: "admin", pwd: "password", roles: [ {role: "...
2
votes
1answer
5k views

Best way to handle 'MongoError: failed to connect to server on first connect' in Mongoose

In this GitHub issue for mongoose the developer stated that it is intended behaviour to crash the Node.js process if the initial database connection to MongoDB fails. It does this instead of trying to ...
1
vote
1answer
1k views

Control external IP address range for nodes in kubernetes cluster on Google Cloud

I would like to provide a whitelisted range for connections to a MongoDB Atlas instance running on Google Cloud. VPC Peering isn't yet available on Atlas for Google Cloud - Is it possible to provide a ...
0
votes
0answers
98 views

Percona pmm agent Mongodb

I'm setting up percona pmm for mongodb but the agent is chewing a lot on cpu. I have pmm-admin 1.5.0 on CentOS Linux release 7.2.1511 and Mongodb 3.0.12 and I see the /usr/local/percona/qan-agent/bin/...
0
votes
1answer
1k views

Allow anonymous access locally but not remotely with MongoDB?

I have a MongoDB server, which I have enabled auth on. I want to enable anonymous access (full read/write access) if someone tries to authenticate on my server locally (meaning if someone SSH into the ...
0
votes
2answers
954 views

Setting up docker.compose.test : 3000 port already allocated

I have a project which includes a docker setup that I'm trying to get working. My Dockerfile is: FROM node:8-alpine EXPOSE 3000 ARG NODE_ENV ENV NODE_ENV $NODE_ENV RUN mkdir /app WORKDIR /app ADD ...
0
votes
1answer
93 views

Providing an interface to ArangoDb that allows mongoDb style querying?

Problem I have an ArangoDb and would like for code written for MongoDb to use it. Theory They are both noSQL databases. Question Before I write my own interface are there any existing tools? Is this ...
4
votes
3answers
9k views

Unable to rsync due to broken pipe

I'm trying to mirror a large Mongo database between from a production server to a dev environment by stopping Mongo on both servers and then running the command: rsync --archive --delete --recursive -...
0
votes
0answers
328 views

centos dedicated server backup strategy for mongodb and elasticsearch db

I have a main server (dedicated CentOS 7, XFS file system, 2X1TB SSD, software RAID1) connected via LAN to my backup server (dedicated CentOS 7, XFS file system, 2X2TB HDD, software RAID1) in my setup....
1
vote
1answer
5k views

Speed up mongodump+mongorestore

I have created a script to copy a MongoDB database to my machine. I am creating an SSH tunnel (ssh -L ...) then I connect to the tunnelled port with mongodump then I pipe its output to mongorestore: ...
0
votes
1answer
40 views

Most cost effective splitting of DBs and EC2 instances for mongo on AWS?

We want to change how we deploy MongoDB on AWS because of three issues: the shared database is way too big (some clients are shared) even the separate databases are getting noisy-neighbour issues ...
0
votes
1answer
188 views

Can I set my mongodb read preference to secondary in a reliable way?

I am running a 5 node replica set as 1 primary 3 secondary and 1 arbiter node. When I check my replication status with db.printSlaveReplicationInfo() I see 1 or 2 seconds of replication lag and I ...
1
vote
1answer
423 views

MongoDB 2.6 change nsSize in configuration?

I am running Mongo 2.6.12 and have built up quite a number of collections. I am very close to hitting the namespace cap so I want to change the 'nsSize' parameter from the default 16M to 1GB. I ...
1
vote
1answer
258 views

Parse Server - Image files' path returns localhost

I have deployed 2 Ubuntu servers on Azure. First, I have installed the Parse Server and the second, I installed MongoDB. (I have also put a ready db there from my previous server via mongorestore) ...
12
votes
1answer
12k views

“Excess arguments.” while doing “systemd daemon-reload” during MongoDB configuration

I am following the instruction mentioned in : To install and configure the basic elements for MongoDB in Ubuntu. During "Configure MongoDB username and password", on phase 4 "Step 4 - Enable mongodb ...
-1
votes
1answer
352 views

Hosting a PHP application on Kubernetes (Google Container Engine) [closed]

I need to host a PHP application on the Kubernetes infrastructure of Google Cloud Container Engine but I do not know how to procees, where to begin etc. Basically the app was running on a VM with ...
2
votes
2answers
1k views

mongodb, does one *need* a replica set for a minimal production db?

I'm fairly new to mongodb, and am tackling some devops issues here. We have a b2b saas product deployed on AWS where there is no network effect between customers, and some customers have much, much ...
1
vote
2answers
2k views

Mongo forcing a log rotation on Windows

I was wondering how I can setup log rotation for a MongoDB on Windows. I'm only reading it for Linux and Unix based systems in the documentation. Does anyone know how I can set this up? https://...
1
vote
0answers
816 views

MongoDB systemLog.logRotate doesn't work

I was reading in the docs of Mongo for log file rotation but it doesn't work. It's only writing every thing to one file and it doesn't split up in day files. Anyone know what I am doing wrong? ...
0
votes
0answers
277 views

Simulate MongoDB replicaset on Openshift

I am currently working on a project and I am using openshift as paas. Basically it fit to all my needs. I have my website, my statics and my api webserver. Only my api webserver is calling my DB ...
1
vote
1answer
1k views

MongoDB migration with mongomirror

We are trying to migrate our databases to atlas solution according to documentation. Our replicaset config: replication: oplogSizeMB: 1 replSetName: rs0 But we are getting such error: 2017-...
0
votes
1answer
7k views

Out of Memory Issue - Mongo is getting killed as soon as I start my java application

I have a standalone application where I am trying to create 5 threads for each thread I am creating a mongoclient and persisting the details in MongoDB and then closing the mongoclient. When I start ...
1
vote
1answer
989 views

MongoDB Primary keeps on crashing after about 2 weeks

We are running a mongodb cluster on 3 virtual machines in azure. I setup the cluster myself and we have been using this for about a year now. A few months ago we experienced a mongodb crash on our ...
0
votes
1answer
194 views

mongodb is reachable through each server but replica sets cannot find each other after iptables

I have 9 machines where I set up mongod replset instances. I set iptables so servers can see each other and i can confirm this sshing into one server and connecting to a mongod in another server. But ...
0
votes
2answers
3k views

Setting up mongodb behind nginx

I am trying to setup mongodb behind nginx, and below is the configuration I used. But I keep getting the following error when I reload nginx. Any help is appreciated. nginx: [emerg] "stream" ...
2
votes
0answers
125 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 ...
2
votes
2answers
9k 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
892 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
108 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
830 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
397 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
179 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
534 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
664 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 ...

1
3 4
5
6 7
18