MongoDB is a scalable, high-performance, open source, document-oriented database. It supports a large number of languages and application development platforms. Questions about programming should be asked on http://stackoverflow.com.

learn more… | top users | synonyms

0
votes
0answers
3 views

Mongodb 3.0.1 in ubuntu starts but status, stop or restart show 'mongo stop/waiting'

I am relatively new to Mongo and have installed 3.0.1 on a Digital Ocean droplet (Ubuntu 14.04 LTS). The database starts without problems but I am unable to 'sudo service mongod [stop/restart/status]' ...
0
votes
1answer
367 views

Issue while restarting - mongdb

I had tried to start the mongodb service using the following command in linux machine. service mongod restart I am getting the following error Stopping mongod: ...
1
vote
1answer
27 views

Shoud I uninstall mongodb 2.6 before upgrade to 3.0?

I installed mongodb 2.6 in my machine. This week, I followed the instructions in the subsection of Install MongoDB on http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. I installed ...
0
votes
1answer
266 views

Mongo DB Replica set Stuck at RECOVERING state

We have created a replica set and now the problem is 2 members of replica set [3 members set] are in recovering mode from 48 hours. Initially the size of recovering nodes was increasing and now even ...
0
votes
1answer
183 views

Long running query on replica worker set in mongo

Hi I updated my mongo version from 2.4.to 2.6. Now when i see current op in mongos it shows me some queries which are running for long long time. one example is { "opid" : ...
1
vote
0answers
11 views

MongoDB installation Ubuntu 12.04 LTS errors

I need some help with my MongoDB installation on a clean, fresh Ubuntu 12.04 LTS server with no nonsense installed. I thought it would be a piece of cake, but I got some errors and the Ubuntu-forums ...
0
votes
1answer
9 views

Setting up replication for various mongodb micro instances

We currently have 5 mongodb micro instances on aws, each of them serve different modules and the calls are made through REST services. We are planning to setup replication for these instances and my ...
0
votes
1answer
24 views

In mongodb, drop collections, but still in db.stats() ? In db.stats(), fileSize is greater, greater than storageSize

I used db.coll.drop() to drop two collections in my MongoDB database. There are only system.indexes in my database now. But the output of db.stats() is: mongos> db.stats() { "raw" : { ...
2
votes
2answers
4k views

Mongo replicated shard member not able to recover, stuck in STARTUP2 mode

I have following setup for a sharded replica set in Amazon VPC: mongo1: 8G RAM Duo core (Primary) mongo2: 8G RAM Duo core (Secondary) mongo3: 4G RAM (Arbiter) Mongo1 is the primary ...
0
votes
1answer
48 views

Genghis admin ui not working with mongodb 3.0.1 wired tiger [on hold]

We recently updated to mongodb 3.0.1 using the wired tiger storage engine, and have been using the genghis php admin ui through the browser. However, genghis is not completely working now, ...
0
votes
1answer
365 views

Choosing shard key and friendly URL Ids for my MongoDB

I have decided to use MongoDB as my Database for a web application. However, I have some difficulties to get started and I hope that you can help me out with a few questions. I am developing my ...
0
votes
1answer
210 views

Data Analysis with MongoDB or MySQL

I have a need for processing some data in order to come up with some statistic. This is the scenario: Each user can answer several questions from the question list. They pick their answers from a ...
0
votes
1answer
215 views

How to update a field in sharded environment in mongodb using C# driver

I have successfully done loading in sharded environment. It is working fine. But when I do update in sharded environment, I am getting the error as : WriteConcern detected an error 'update { q: { ...
0
votes
2answers
169 views

Unable to start Mongodb. Appears to be crashed, if yes, how to recover my data

Below is the error when ouput when I am trying to start my local mongodb. I am unable to start it and after little exploration, I doubt my local db has been crashed. If yes, is there a way to recover ...
0
votes
1answer
123 views

MongoDB all replica set members are “OTHER”?

I am setting up a MongoDB replica set using EC2's image: https://aws.amazon.com/marketplace/pp/B00CO7AVMY/ref=dtl_recsim_B007IBMJPI_B00CO7AVMY_3 MongoDB version 2.6.5 I have managed to set up ...
0
votes
1answer
47 views

Is a mySQL or mongoDB relational database scalable for holding 80 GBs of additional logs per day? [closed]

I am currently deciding on a long term architecture solution for storing DNS logs. The amount of data we are talking about numbers some 80 GBs of logs per day at the peak. Currently I am looking at ...
2
votes
0answers
30 views

'mongod wiredTiger' on Ubuntu?

I cannot use wiredTiger as a service for MongoDB. Then, I progresses step by step according to the following guide; http://docs.mongodb.org/manual/release-notes/3.0-upgrade/ Step-1: Start 3.0 ...
0
votes
1answer
15 views

how to check and list all the files related to mongodb in ubuntu? I am looking for config files, password informations for mongodb [closed]

I installed the mongodb package in ubuntu using apt following the instructions on http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. I know that binaries are in /usr/bin/, and so on. ...
1
vote
2answers
23 views

ElasticSearch: is this problem suitable for ElasticSearch DB? [closed]

I have some hardware instruments each one recording a signal and generating sequences of timestamp/value pairs. Timestamp is a basic UTC posix time and value is a double. I'd like to record such ...
0
votes
1answer
112 views

$addToset do not work in update if record not exists

I am trying to use following query db.TestColl.update({ "tags" : "silk" , "host" : "host.com"},{ "$set" : { "cat" : "MOVIE","publishTime" : 1370427540000 }, "$addToSet" : { "articleId" : { "$each" : ...
2
votes
1answer
91 views

mongoexport not exporting all possible data

I have a collection with documents similar to the following: { _id: 'p_123456', id: 123456, kind: 'person' data: [...] } id field can contain either positive or negative integers. This ...
0
votes
0answers
5 views

Mongo db replication issue in 3.0.0

I updated my replica set from Mongo 32.6.4 to 3.0.0. After that i saw frequent switch between primary and secondary server. When i check the log i found this in log [ReplicationExecutor] replset: ...
1
vote
1answer
758 views

“ERROR: could not read from config file” MongoDB

I'm trying to configure MongoDB in OS X Mountain Lion. I've installed with Homebrew; I have followed lots of tutorials, but I have got an issue which I haven't been able to solved. The issue is about ...
0
votes
1answer
34 views

MongoDB 3.0 : Configure storage engine at collection or database level

I know we can configure the storage engine to be wiredTiger at instance level when we start mongod. But can we also select the storage engine to be different for different collection or database?
0
votes
1answer
12 views

How to Import mongodb database from development Environment to local env by using Commmand?

I have lots of collections in my development server. I need to use the same data for testing scenarios. I am trying to import all the data of development environment to local by command is it ...
0
votes
1answer
24 views

MongoDB production security and backup [closed]

I'm quite new to MongoDB and now I was trying to understand the best practices to secure a DB in production and how to automatically backup it. At the moment for security issues I just changed auth ...
1
vote
0answers
16 views

Issue running MongoDb 3.0

Was original running MongoDb 2.4 on Ubuntu 13.10. Upgraded MongoDb to 2.6. Upgraded Ubuntu to 14.04. Upgraded MongoDb to 3.0. However everytime I issue "mongod --config /etc/mongodb.conf", I am ...
0
votes
0answers
22 views

Get disk usage information of mongodb database

I have a database built in MongoDB and I need to obtain information related to the disk usage of the database through PHP. I have searched a lot but did not find relevant search results for retrieving ...
-1
votes
0answers
11 views

Get disk usage information of mongodb database [duplicate]

I have a database built in mongodb and I need to obtain information related to disk usage of mongo database through php.I have searched a lot but did not find relevant search results for retrieving ...
0
votes
1answer
16 views

what is the downtime of mongodb cluster when upgrade to 3.0

I am following http://docs.mongodb.org/manual/release-notes/3.0-upgrade/ to upgrade mongodb cluster from 2.6 to 3.0. The downtime is less than 1 second? because it takes less than 1 sec to elect one ...
2
votes
1answer
136 views

Chunk Size is shown as 1 KB in mongo db logs even it is set to 300 MB

I am running a mongo cluster. Chunk size set is 300 MB but for today morning it is showing me in logs taht chunk size is 1024 Byte. I checked in current op there also it is showing chunks of 1024 ...
1
vote
1answer
27 views

What's the difference between Object.bsonsize and avgObjSize returned by db.collection.stats?

In my collection, my documents seem to be relatively similar. I need to know how much storage I'll need in my production server to store my documents, that's why I queried : db.collectionName.stats() ...
0
votes
2answers
26 views

MongoDb Upgrade from 2.6 to 3.0 Issue [closed]

For some reasons I cannot install MongoDb 3.0 version. What am I missing?
0
votes
1answer
17 views

In mongodb, is “sh.getBalancerState() is false” the same as “sh.isBanlancerRunning is false”?

During upgrading config servers to use WiredTIger, I stopped balancer using sh.setBalancerState(false), and then I run sh.getBalancerState(). The output is false. Does this mean the balancer is not ...
0
votes
0answers
30 views

MongoDB does'nt starts after changing the data directory

I have installed a mongodb instance using yum..Now everything works fine.I started the service using service mongod start,it works good.Then i changed the data directory and log path in the ...
1
vote
1answer
318 views

How to setup a MongoDB replica set for the connector

I want to keep MongoDB and Solr in sync. The mongodb-connector (python) is the tool I want to use to do that. Now a replica set in mongodb is required (see ReadMe), but I don't want (and can) setup a ...
0
votes
0answers
47 views

Mongodb PLAIN authentication failed

I am trying to configure a mongodb server to authenticate an user of a Directory Active. I know that the communication between the SO and the DA is fine because the testsaslauthd works: testsaslauthd ...
0
votes
0answers
10 views

Trouble starting Service mongodb-mms-backup-daemon

I am trying to install on-prim MMS and backup server. I am able to start the MongoMMS but not the Backup daemon. Below is the error copied from /opt/mongodb/mms-backup-daemon/logs/daemon.log ...
0
votes
1answer
18 views

While installing Mongodb, getting “enabling http interface” message and stopped

I am getting following error while installing mongodb, $ mongod --directoryperdb --dbpath C:/mongodb/data/db --logpath c:/mongodb/log/ >mongodb.log --logappend --rest 2015-03-17T17:32:55.359+0530 ...
2
votes
1answer
98 views

When upgrading config servers to use WireTiger, the running config server with wiredtiger does not authenticate the existing pass and user?

In order to upgrade mongodb to 3.0.0, I am upgrading my config servers to use WireTiger. I followed the subsection of Change Config Server to Use WiredTiger. There are 18 steps. I run mongodump --port ...
0
votes
0answers
19 views

what is the password to user mongodb when mongodb is installed in ubuntu?

When I installed mongodb in ubuntu, user mongodb and group mongodb are created in /etc/passwd and /etc/group. But I have no idea of the password to these user and group. I have to run mongod as root ...
0
votes
1answer
27 views

Why do I have to run mongod as root?

When I run "/usr/bin/mongod --config /var/data/rs1/rs1db0v3.conf". It failes. The error is: warning: bind_ip of 0.0.0.0 is unnecessary; listens on all ips by default about to fork child process, ...
0
votes
2answers
85 views

Upgrade mongodb from 2.4 to 3.0

I have mongodb 2.4 database with some indexing. Now I want to upgrade that version to 3.0. I searched on google but did not find any firm answer. I tried installing 3.0 but then it gives me error of ...
0
votes
0answers
20 views

MongoDB Insufficient free space for journal files

I have installed a standalone mongo 2.6 in amazon ec2. The instance has reach the limit of disk space and it doesnt run now. I have set before the smallfiles=true in mongod.conf file, but for some ...
0
votes
0answers
38 views

Mongo db replication issue with 3.0.0

I updated my mongo instance to 3.0.0. Now i am seeing this error continuously in the replica set log 2015-03-12T15:24:23.141+0530 W NETWORK [ReplExecNetThread-74] Failed to connect to ...
1
vote
1answer
24 views

In mongodb cluster, Can I shut down one config server and one data server in the shard at the same time

I have one mongodb cluster, including 3 config servers, and one shard (3 data servers in this shard). One data server and one config server are on the same machine. Can I shut both of them down to ...
0
votes
1answer
29 views

can we use a mongodb 3.0 and mongodb 2.6 in same replica set?

i know that replicas using different storage engines can coexist in a replica set on MongoDB 3.0 but can we add a MongoDB 3.0 replica to a replica set that consists of MongoDB 2.6 instances ? That ...
2
votes
1answer
119 views

how to upgrade the config servers to use WiredTiger in mongodb 3.0.0

I am reading the document upgrade config servers to use WiredTiger. In the section of "change config server to use WiredTiger", the second step is "stop the last config server listed in the mongos' ...
0
votes
1answer
139 views

users and roles in mongodb

Following users are created in mongodb. First user created with name "user" having read write role for "project" database use project db.createUser( { user: "user", pwd: "user123", ...
1
vote
1answer
30 views

When upgrading to mongodb 3.0, should I upgrade authentication schema after upgrading the storage engine to WiredTiger? [closed]

I know that, I need to upgrade the storage engine after upgrading the binaries. But I am not very sure whether I should upgrade the authentication after upgrading the storage engine. Or it does not ...