Questions tagged [mongodb]

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

MongoDB Logo

MongoDB is a widely used, general-purpose, document-oriented NoSQL database with features including high-availability replication and auto-sharding for horizontal scaling. The MongoDB database server and tools, written in C++, are open-sourced and available under AGPL v3.0 license or a Commercial License. MongoDB has strong support for dynamic querying and aggregating data including MapReduce and an Aggregation Framework. MongoDB uses BSON (Binary JSON) format for storage purposes and the MongoDB Wire Protocol for communication between client drivers and the MongoDB server. Officially supported Drivers and Client Libraries are available for most popular programming languages, and there are also Community Supported Drivers which offer alternative implementations and support for further programming languages.

The latest MongoDB server releases can be installed via common packaging systems or downloaded as binary archives from mongodb.org. It should be noted that many Linux distributions package MongoDB in their own repositories, but that these generally lag behind the official MongoDB repository versions.

FAQ

The mongodb-user mailing list is very busy and almost every question on earth has been asked on there, so try searching the archives. Tip: searching Google with " site:groups.google.com/group/mongodb-user" added to your search terms generally works better than using the Google Groups search bar.

For help with data modeling (schema design), check out the Data Modeling Considerations for MongoDB Applications documentation page or search the mailing list archives.

MongoDB, Inc. (the company behind MongoDB) provides archives of many presentations from their events such as conferences and webinars.

Useful links

157 questions
3
votes
0 answers

repair mongodb 4 after crash due to a full storage

I have an issue on mongod. One day ago , my hard disk storage was full so mongodb shut down. I add Go on my hard disk and now when i want to restart my mongo , it doesn't work . I m on unbutu 16 and i tryied to do that : mongod --dbpath…
2
votes
1 answer

Invalid domain/user/password while installing mongoDB on Windows10

No idea why it is unable to install. I tried my window account the one I use to log in to my PC doesn't work either. So can anyone help me solve this problem?
Troy Wu
  • 21
1
vote
1 answer

MongoDB does not log anymore after I've removed the logfile

I have had the mongod.log file of more than 10 GBs, so I deleted it. However, since then the file has not been recreated - did I mess it up by deleting the file? How to fix that?
Stevel
  • 11
1
vote
0 answers

What does config shard mean here?

I created a MongoDB sharded cluster with replica set rsa, rsb and rsc. Configuration server replica set is configRS. Initially shard status listed only these shards as primary shard for the sharded databases. But now I can see an other shard…
abc
  • 11
1
vote
1 answer

MongoDB Compass loading forever on start page

When I start MongoDB Compass 1.18, it loads forever and never starts.  It displays the word "LOADING..." under a logo consisting of two blue squares:                     
Tapors
  • 11
1
vote
1 answer

Mongodb remote connection suddenly stops

I have configured a mongodb on my server to accept remote connections.I commented the bind line in the /etc/mongod.conf, so the file looks like: # mongod.conf # for documentation of all options, see: # …
Aidin.T
  • 111
1
vote
1 answer

How to connect to Mongo using Robomongo

Is there some sort of trick to connecting to Mongo using Robomongo? I have a Python application using the connection string: mongodb://myuser:mypassword@127.0.0.1:27017/?authSource=admin which is able to connect to my local Mongo service…
Cerin
  • 9,142
1
vote
1 answer

Apache Zeppelin db.collection.find issue

db.${collection=none}.find( {}, { ${key=none}: [ { $eq: "${value=none}" } ] } ).table() When I execute the code listed above in zeppelin, It is supposed to look for a exact result in the key based on the value I enter in the ${value=none} box but…
1
vote
2 answers

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 this point, I expected that mongodb creates a new…
jcomouth
  • 113
  • 1
  • 4
0
votes
1 answer

Get a list of records from a collection sorted by count and uniqueness of a field in MongoDB

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 number of documents that have X as a value in a…
Sempus
  • 119
0
votes
1 answer

I just cannot install Mongodb in my Ubuntu 20.04

First I used the documentation of Ubuntu. https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/ Step1: After that I ran commands according to documentation. wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo…
Prajwal Neupane
0
votes
0 answers

Update the Rocketchat administrator password from mongoDB

I would like to change the password of a Rocketchat user from the mongo command prompt. I followed to the letter the documentation provided by Rocketchat at this address:https://rocket.chat/docs/administrator-guides/restoring-an-admin/ but when I…
GotExx
  • 1
0
votes
1 answer

two mongoDB version commands returning different versions

when i am running mongo -version it showing a different version than when i am running db.version() from Mongo shell. how this is possible and which is the correct version.
0
votes
1 answer

How to change MongoDB storage engine for replica set member from MMAPv1 to WiredTiger

I am running Mongodb-3.4x version in a Replica set environment (in all 3 different systems on AWS) i.e. One Primary, One secondary (replica) and an arbiter. Issue that I am seeing is for some reason; the Primary node is running on "mmapv1" but the…
0
votes
0 answers

MongoDB db.serverStatus() has no storageEngine output

I have an instance of MongoDB 4.0.6 with WiredTiger and the documentation says that db.serverStatus() has a storageEngine section in the output with some info on the Wired Tiger flags. On my instance there's no storageEngine section in the output at…
david
  • 1
1
2