Questions tagged [mongodb]

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

MongoDB is a document oriented database. It's coded to be fast, scalable and supports natively solutions like sharding, replication, Map/Reduce and storage of files on the DB.

MongoDB doesn't uses SQL, making it a NoSQL database, its data is retrieved using a dynamic query system and returns JSon-style data.

889 questions
3
votes
1 answer

Recovering data from MongoDB raw files

We use mongodb for our database and set the replset(two servers), but we mistakenly deleted some raw files that under /path/to/dbdata on both servers. After that, we used extundelete to get back the deleted files. We ran the extundelete on both…
Jin Chen
  • 31
  • 2
3
votes
3 answers

How exactly do I install MongoDB 2.4, instead of the latest version?

I've read the instructions on installing older versions but it appears that 2.4 is no longer available in the repos? aptitude -y install mongodb-org-server=2.4 Unable to find a version "2.4" for the package "mongodb-org-server" Unable to find a…
Dan Dascalescu
  • 601
  • 1
  • 10
  • 21
3
votes
4 answers

Issues installing mongodb on centos 5

I'm trying to install mongodb for my centos 5.1 server via yum. I followed the instructions of creating a .repo file in the yum folder, but it still doesnt work. here's the screenshot of the issue: ---- http://prntscr.com/41b22y I typed yum install…
3
votes
1 answer

MongoDB copyDatabase failed with dbOwner

I have a remote mongo database in which I've setup a certain data base and a user with a dbOwner privileges. I can access to this db with this user info, but I can not copy this data using copyDatabase. I've read that a find access is required, but…
donald
  • 233
  • 3
  • 10
3
votes
5 answers

Copy mongodb collection between two servers AND different mongo versions ...

I have a collection in a mongoDB, on a project that runs locally, and have to copy the collection to the dev server. Can you tell me how to do this, considering that: The local machine (the source) is accessible from the outside, but only with the…
pesho hristov
  • 151
  • 1
  • 1
  • 4
3
votes
1 answer

php-devel failed on installation red-hat 6

I'm trying to install mongodb driver with pecl and for this i need phpize (php-devel). Does anyone know how can i resolve this issue or there is another way to install php-mongodb driver? I try as suggested : using --skip-broken to work around the…
user2804112
  • 135
  • 1
  • 6
3
votes
2 answers

how can I install MongoDB as a service in centOS

I'm new to Linux, I followed this tutorial provided by the official 10gen documentation, as far I see I'm able to run mongoDB db in the console but I'd like to run it as a service. this is what I got so far: I've been searching on the web but most…
pedrommuller
  • 279
  • 5
  • 14
3
votes
4 answers

mongorestore from stdin

On a remote server I have a file which is the mongodump output compressed, let me say a file called mongodb.tar.gz. Inside mongodb.tar.gz there is a directory structure like…
freedev
  • 323
  • 5
  • 17
3
votes
1 answer

Mongodb production server too slow compared to staging

We have two sets of db and app servers running on Rackspace VPS. Production and Staging. The app is on Rails and db is MongoDB. While staging(with as many documents as prod, 55k) works just fine, production server is terribly slow. By a factor of 20…
Bornfree
  • 161
  • 4
3
votes
1 answer

How to tune system settings for mongoDB on Linux?

Trying to squeeze a lot out of one question here -- please bear with me. Although the MongoDB man pages make several useful recommendations about system settings like ulimit (http://docs.mongodb.org/manual/reference/ulimit/), and other production…
jsh
  • 151
  • 1
  • 7
3
votes
2 answers

Install mongodb as a service on Windows 8

I am trying to install mongodb as a service on Windows 8. I am using the following command to install Mongodb. C:\mongodb\bin\mongod.exe --auth --config C:\mongodb\mongod.cfg --install And I am getting this error: Wed Mar 13 19:13:23 Trying to…
mohammad mohsenipur
  • 205
  • 1
  • 2
  • 10
3
votes
2 answers

Mongodb keeps reporting "no primary found", but shell works fine

I have a simple mongodb setup in a replicaset, with 1 actual instance and 1 arbiter (to avoid conflicts). This is in anticipation of expanding the replicaset to include more instances as our load increases. If I access mongodb through the shell, I…
Christian P.
  • 165
  • 1
  • 2
  • 8
3
votes
1 answer

How can I tell if NUMA is enabled on a MongoDB server?

Our mongodb process is consistently using >100% of our CPU (this is on an Ubuntu 64-bit server on Linode) and we're casting about for performance improvements. One suggestion we found was that MongoDB and NUMA don't work well together:…
dreeves
  • 238
  • 1
  • 3
  • 9
3
votes
3 answers

MongoDB server crashed, showing the following error

I have a MongoDB instance running in a VMWare VM with Ubuntu Server 12.04. Suddenly the server crashed, and when I try to reinitiate it I get the following error: jonathanong@ubuntu:~/mongodb/solo$ /usr/bin/mongod --fork --port 27027 --dbpath…
Jonathan Ong
  • 143
  • 2
  • 6
3
votes
1 answer

Rails/Mongo across multiple different geo-regions

I have a system that by necessity requires physical presence in three or more different locations and I need advice on structuring in such a way that my database stays replicated in a timely manner without horrible latency. I've seen mysql access…
wmarbut
  • 301
  • 2
  • 4
  • 12