Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
3k views

Mongodb aborting after fassert() failure

I tried to reboot my server with shutdown -rF now command. After that I noticed mongodb service is not running. I tried to run it with sudo service mongod start, but the status is : mongod.service - ...
user avatar
0 votes
1 answer
3k views

Unable to start MongoDB on Ubuntu

I recently upgraded an Ubuntu 14 server to 16, and now I'm unable to start the MongoDB service. I'm using MongoDB 3.4, from Mongo's Xenial PPA at http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/...
user avatar
  • 3,440
0 votes
3 answers
4k views

MongoDB setup on NUMA machine

I installed MongoDB 3.6 on my centos 7 machine and in the startup log I see a warning because I am running NUMA hardware: 2018-02-05T00:13:23.889+0100 I CONTROL [initandlisten] ** WARNING: You are ...
user avatar
  • 143
0 votes
1 answer
613 views

MongoDB - Efficient backup

I have an application running on a Parse Server and another server where MongoDB runs. Both VMs are under Azure (Ubuntu VMs). A few weeks back, I wrote a db backup bash script which is run by crontab ...
user avatar
3 votes
1 answer
4k views

Docker container unable to connect to MongoDB Replica set

I'm using Docker Swarm to create a cluster of web applications and databases. I've four containers running, three of them are a single mongodb replica set and the last is a asp.net core application ...
user avatar
  • 131
0 votes
1 answer
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,...
user avatar
  • 253
1 vote
1 answer
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 ...
user avatar
  • 43
1 vote
3 answers
5k 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, ...
user avatar
  • 109
1 vote
1 answer
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 ...
user avatar
  • 253
2 votes
1 answer
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 ...
user avatar
2 votes
1 answer
435 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. ...
user avatar
1 vote
1 answer
708 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 ...
user avatar
  • 193
-2 votes
1 answer
966 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....
user avatar
  • 99
0 votes
1 answer
417 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/...
user avatar
2 votes
1 answer
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: ...
user avatar
  • 233
0 votes
1 answer
464 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?
user avatar
2 votes
2 answers
4k 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 ...
user avatar
  • 21
0 votes
1 answer
125 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 ...
user avatar
  • 101
1 vote
1 answer
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: "...
user avatar
  • 2,295
2 votes
1 answer
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 ...
user avatar
  • 123
1 vote
1 answer
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 ...
user avatar
0 votes
0 answers
105 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/...
user avatar
  • 2,677
0 votes
1 answer
2k 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 ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
0 votes
1 answer
112 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 ...
user avatar
7 votes
4 answers
15k 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 -...
user avatar
  • 3,440
0 votes
0 answers
344 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....
user avatar
  • 117
1 vote
1 answer
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: ...
user avatar
  • 298
0 votes
1 answer
43 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 ...
user avatar
0 votes
1 answer
201 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 ...
user avatar
  • 101
1 vote
1 answer
486 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 ...
user avatar
  • 191
1 vote
1 answer
298 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) ...
user avatar
15 votes
1 answer
16k 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 ...
user avatar
  • 153
-1 votes
1 answer
383 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 ...
user avatar
2 votes
2 answers
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 ...
user avatar
1 vote
2 answers
3k 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://...
user avatar
1 vote
0 answers
1k 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? ...
user avatar
0 votes
0 answers
297 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 ...
user avatar
  • 125
1 vote
1 answer
2k 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-...
user avatar
0 votes
1 answer
8k 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 ...
user avatar
  • 15
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
204 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 ...
user avatar
  • 113
0 votes
2 answers
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" ...
user avatar
  • 103
2 votes
0 answers
134 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/...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 111
2 votes
2 answers
11k 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 ...
user avatar
  • 141
1 vote
1 answer
1k 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:...
user avatar
1 vote
1 answer
124 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 ...
user avatar
0 votes
1 answer
69 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 ...
user avatar
  • 125
1 vote
1 answer
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. ...
user avatar
  • 1,624

1
3 4
5
6 7
18