MongoDB is a scalable, high-performance, open source, document-oriented database. Official builds are available for Linux, Windows, OS X and Solaris. Database administration questions are generally better suited to dba.stackexchange.com

learn more… | top users | synonyms (1)

0
votes
0answers
16 views

How to install MongoDB & Its driver for Windows 10 (Step by Step)?

I want to install MongoDB & MongoDB Driver for Windows 10 ... There are many version of MongoDB that I don't know which version is proper for Windows 10. I downloaded one of them & It works, ...
0
votes
0answers
7 views

Mongodb: Log file remains empty

Yesterday I moved 2 files from /var/log/mongodb to an other directory. The file names: "mongod.log", "mongod.log.1" (the only 2 files in this directory with large size). The mongodb was running at ...
-2
votes
2answers
38 views

How do I know if my Windws 10 version (Home) edition has SSL support?

Context: I am tryin to install MongoDB and saw there are seperate installers for Windows 2008 or later with SSL support and one without SSL support. My machine runs 64-bit Windows 10 Home edition. "...
1
vote
0answers
15 views

Init script changes for MongoDB

We have MongoDB(version 3.0) in production in standalone as well as in cluster mode. Currently we were facing issue saying "unclean shutdown detected hence unable to start mongod". 1. After debugging ...
0
votes
1answer
36 views

Choco Install Mongodb throws internal server error 500

I am stuck on installing mongodb with chocolatey. This is the command I use: choco install mongodb I execute it in powershell with administrative rights. This is the error (translated from german)...
0
votes
0answers
11 views

Compilation error while installing Mongo PHP extension via PECL

I try to install Mongo PHP extension via PECL (for PHP 7.0.5-4+donate.sury.org~xenial+1) by executing sudo pecl install mongo-1.6.11 I try to install it this way because my Synfony3 project needs ...
0
votes
0answers
160 views

MongoDB homebrew launchctl not working (OS X El Capitan)

Steps: brew update brew install mongodb ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist mongo Output: MongoDB shell ...
1
vote
1answer
16 views

Command Prompt random pause

I am developing a site using Node.js and MongoDB, both of which are run from the Windows Command Prompt. Occasionally one or both of the programs freezes (no output to console, not accepting incoming ...
1
vote
0answers
82 views

On Fedora23 MongoDB doesn't work for show dbs

On Fedora23 I installed MongoDB using dnf. sudo dnf install -y mongod sudo systemctl restart mongod However it doesn't work for show dbs $ mongo MongoDB shell version: 3.0.9 connecting to: test &...
0
votes
0answers
14 views

Find Corresponding Docs in Mongo

For a little side project I have a granted vs revoked record collection in mongo. I am trying to find corresponding entries for same phone number, being first a granted then the very next revoked ...
0
votes
2answers
1k views

Class 'MongoDB\Driver\Manager' not found

I am creating REST APi with Lumen framework. I use Mongolab for my mongoDB and i want to host my app on google App Enginge. I am using Jessenger lib for communicating with my DB on MongoLab. Everhting ...
0
votes
1answer
437 views

Unable to connect to mongodb running in virtualbox (host: Mac OS, guest: CentOS)

I am using CentOS 7 in a virtualmachine running on Mac OS X using Virtualbox. Unfortunately I am not able to connect to the VM's database from my Mac OS host. I am using NAT as network for the VM and ...
1
vote
0answers
54 views

MongoDB fails in non-busy hours

I am running a cron job that queries some data from MongoDB during the night, when nobody else is using MongoDB to read or write data, and I get this error Error: server.lab:27017: Read timed out ...
0
votes
0answers
86 views

How to make MinTTY close gracefully on Ctrl-C?

I would like some servers, like MongDB, to run inside terminal under Windows. I use the following command to run them: start <PATHTOMONGO>\mongod.exe --dbpath <PATHTODATA> Standard ...
0
votes
1answer
250 views

Error Installing MongoDB driver on XAMPP (OS X/El Capitan)

I'm not new to XAMPP, PHP, or MongoDB, but I'm new to Mac, so getting the PHP MongoDB driver set up is causing me more trouble than it probably should. When I try to run $ sudo pecl install mongodb ...
1
vote
0answers
584 views

Unable to install php mongodb driver on Ubuntu 14.04 LTS

I have been trying to install php driver for mongodb on Ubuntu Linux 14.04 LTS. Tried to install as follows : sudo pecl install mongodb output is No releases available for package "pecl.php.net/...
0
votes
0answers
14 views

Do I need memcached when I am using mongodb?

How to know if there is a need to implement caching? My website takes all the data from mongodb, mongo itself copies the data to ram, why might someone need another caching mechanism like memcached?
0
votes
0answers
145 views

How to stop mongodb version 2.4 and start version 3?

I've got an Ubuntu 14.04 server on which I have mongodb installed using the regular sudo apt-get install mongodb, which installed version 2.4 That ran fine, but I wanted to use some new functionality ...
3
votes
3answers
2k views

After upgrading PHP to version 7, why can't I use the mongodb driver?

Well here's an odd situation I've found. I've been using PHP and MongoDB together on a project, and updated the associated software. After the upgrade, I did make sure to update the new conf files and ...
2
votes
0answers
118 views

MongoDB ServerSelectionTimeoutError: No servers found yet

I've got a mongodb instance running on a standard AWS Ubuntu 14.04 server. After some trouble (upgrading the server using sudo mongod --upgrade --dbpath /var/lib/mongodb/) I now have the server ...
-1
votes
1answer
383 views

ENOENT: no such file or directory

I am trying to follow a tutorial and one of the things I need to do is npm install -g generator-meanjs. After I run that i get the following error: npm ERR! Windows_NT 10.0.10240 npm ERR! argv "C:...
0
votes
1answer
104 views

Cannot update mongodb 2.4 on centos 6.6

I am trying to update my mongodb 2.4 to 2.6 but I can't seem to download all the packages. I successfully downloaded all of it before except mongodb-org. I ran yum clean all to clear the cache that ...
0
votes
0answers
81 views

PHP connect to mongodb

I have installed MongoDB on Server A on internet. I installed PHP/Mysql with Mongo PHP Driver on Server B on internet. When I want to run my code in local it works successfully but as soon as I ...
0
votes
1answer
125 views

Errors installing Drywall

I am trying to install drywall and I am getting many errors C:\Users\zach\Desktop\Node.js\drywall\node_modules\bcrypt>if not defined npm_con fig_node_gyp (node "C:\Program Files\nodejs\...
2
votes
2answers
810 views

How to automatically restart MySQL and MongoDB when being unresponsive?

I’m running a simple development server (Ubuntu) on which MySQL and MongoDB sometimes crash. I always restart them with sudo service mysql restart. Although I know I need to investigate why they ...
-1
votes
1answer
334 views

MongoDB not found on OS X 10.10.4

I installed mongoDB on my Mac running OS X 10.10.4. When I did which mongo I got: mongo not found I tried to install mongodb again but I got this: Warning: mongodb-3.0.5 already installed, it's ...
0
votes
1answer
266 views

Starting mongoDB without a visible CMD [duplicate]

I have a batch file that looks like this: del db.log start /b mongod --dbpath %~dp0 --logpath db.log It should delete the existing log file, and then start mongodb without creating a new cmd, ...
0
votes
1answer
259 views

npm install mongodb error

I get the following error when I try to install the nodejs mongodb driver: (precise)me@localhost:~$ sudo npm install mongodb npm http GET https://registry.npmjs.org/mongodb npm ERR! Error: failed to ...
2
votes
1answer
2k views

mongod start failed (monogdb 3.0.2, database storageEngine-wiredTiger)

I was using mongodb for a month yesterday morning after unusual shutdown my mongodb is failing to start. Here I am using wiredTiger Storage Engine, I think the wiredTiger.wt file got corrupted but I ...
0
votes
1answer
372 views

how to install mongodb on gentoo?

Im trying to install mongodb but as soon as i do emerge dev-db/mongodb i get [ebuild N ] dev-libs/snowball-stemmer-0.20140325::gentoo USE="- static-libs" 127 KiB [ebuild N ] sys-libs/...
1
vote
1answer
668 views

When connecting a MongoDB client to a MongoDB server, I get: 'Couldn't connect to server'

I am just learning MongoDB, and I tried to connect one of my machines (the client) to the server (which is a Toshiba L875D). The server is running Windows 8.1 and the client Windows 7. Here is a ...
0
votes
1answer
304 views

MongoDB manually preparing for upstart but not running

I am on Ubuntu 14.04.1 LTS. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty Instead of using the system ...
4
votes
1answer
2k views

Can't start mongodb by launchctl on OS X Yosemite (10.10.2)

I've installed mongodb 2.4 via homebrew: brew install homebrew/versions/mongodb24 Then I've made a simlink to the config provided by homebrew: ln -sfv /usr/local/opt/mongodb24/homebrew.mxcl....
0
votes
1answer
54 views

Testing MongoDB vulnerability on Azure

I have read these news about MongoDB vulnerabilities. http://securityaffairs.co/wordpress/33487/hacking/40000-vulnerable-mongodbonline.html I am using mongo from Azure in a product where privacy is ...
1
vote
2answers
1k views

Trying to reinstall MongoDB using Yum. First it says package is not installed, then it says already installed?

I have a problem with a service, it fails to start. I am trying to troubleshoot it by re-installing it. When I try to start or stop the service I see the following: When I try uninstalling MongoDB ...
1
vote
2answers
3k views

Mongodb not shutting down via --shutdown command

i need help with a problem on shutting mongod down gracefully. I'm running mongodb on docker . i run mongod like with the command : mongod --config /etc/mongod.conf and when i close with : ...
0
votes
1answer
10 views

MobgoDB - Get a list of records from a collection sorted by count and uniqueness of a field

So I have a bunch of documents in a MongoDB collection and it seems that the collection is growing a little faster than we thought. Is there a way to get a list from a collection that will count the ...
4
votes
1answer
195 views

Server Separation to avoid attacks?

I currently have 1 server with a full LAMP stack on it as well as Mongo DB. Is there any benefit to spliting up these services onto different servers in regards to redundancies? For example: Server ...
0
votes
0answers
286 views

Install old version php on Centos

I have troubles with php + mongodb After redeploying project, php throw 500 because "Can't canonicalize query: BadValue $in needs an array" (https://jira.mongodb.org/browse/PHP-1051) I install same ...
1
vote
1answer
772 views

alias not working with my mongo --eval command

I have the following mongo shell command to delete all users that aren't admins mongo --eval 'db.users.remove({group:{$ne:"admin"}})' collection This works. I want to create an alias for this ...
2
votes
1answer
4k views

PHP: Mongo client not found

I've installed XAMPP on my MacBook. PHP and MySQL are working fine, so I followed it up with mongo. I did the following: brew install mongo (success) brew install autoconf (success) sudo /...
0
votes
1answer
174 views

Sign in with Mongo shell without having password shown?

How can I sign into the Mongo shell without showing my password? Everything says to either use mongo -u user -p password -authenticationDatabase admin or mongo > use admin; > db.auth('user', ...
0
votes
1answer
3k views

brew/mongodb doesn't stop when I close terminal

I installed mongodb with brew and I didn't load the launchctl plist. When I run the mongod command to start the server in foreground and suddenly close my iTerm the mongodb process stays up and I don'...
-1
votes
1answer
251 views

CentOS - Upgrading MongoDB to 2.6.1 with no internet

I'm trying to install MongoDB 2.6.1 on my CentOS machine that has no access to the internet. I've downloaded the rpm files from the repo, and when I try installing, I keep getting the "mongo-10gen-...
2
votes
1answer
70 views

Linux multi-tasking

I'm working on deploying a node project to a Linux box on amazon EC2. The project uses mongoDB. I'm trying to run node and mongoDB simultaneously on the box but I'm unfamiliar with linux. Is it ...
0
votes
1answer
888 views

how to query across collections in rockmongo [closed]

If I have a collection of users and a collection of properties which has a user_id in each properties document; how do I get a list of users' and the zip codes (zip` is a field in the 'properties" ...
0
votes
0answers
435 views

how to create ssh connection with remote mongodb server using mongohub and a private key

i'm using trying to use mongohub to access data on a remote mongodb server. right now I can ssh on to the server using the following command: ssh -i mykey.pem ubuntu@xx.xxx.x.xxx The userid is ...
2
votes
2answers
1k views

Cannot access MongoDB from the Internet

I am using MongoDB database, which is installed with the IP address 126.22.252.25. The Ubuntu version info is 12.04.3 LTS. My MongoDB uses the default 27017 port. On this local machine I can use ...
5
votes
1answer
3k views

Why journaling use so much space in mongodb?

I have a mongodb database that uses approximately 1GB of space. I was surprised when my server ran out of space, and then I realized that the journal uses 3GB. The documentation says that "Once ...
10
votes
4answers
31k views

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 command returns error

I'm trying to install Mongodb on Ubuntu 12 but when I run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 This returned the error below: keyserver.ubuntu.com host ...