Questions tagged [mongodb]

Scalable, high-performance, open source, document-oriented database.

MongoDB is a database management system for use with no-sql. The database using JSON and BSON to store, access, track and manipulate data.

It is compatible with the 64-bit version of Ubuntu.

More information about Mongo.

361 questions
111
votes
10 answers

How to start MongoDB server on system start?

I have to start my MongoDB server every time the system restarts. How do I configure it to start with my OS? I am on Ubuntu 11.04.
Pankaj
104
votes
10 answers

MongoDB loads but breaks, returning status=14

So im trying to setup Mongodb on Ubuntu 16.04 but im running into trouble. when running : sudo systemctl status mongodb I get the following: mongodb.service - High-performance, schema-free document-oriented database Loaded: loaded…
user2915962
  • 1,141
24
votes
2 answers

error: Unit mongodb.service is masked when starting mongodb

I'm trying to install kaa(IOT platform) on installing the dependencies getting an error on executing the command- $ sudo systemctl start mongodb error- Failed to start mongodb.service: Unit mongodb.service is masked.
20
votes
4 answers

Can't start mongodb service

Following this guide to install mongodb but mongo only not starting. When running sudo systemctl status mongodb It just shows Active: failed (Result: exit-code). Edit: output of ls -al /etc/systemd/system/mongodb.service -rw-r--r-- 1 root root 220…
842Mono
  • 9,790
  • 28
  • 90
  • 153
20
votes
3 answers

Install Mongo 3.2 on Ubuntu 15.10

I want to install Mongo 3.2 on Ubuntu 15.10. The official mongodb site gives steps up to 14.04. On the other hand, using the normal ppa from Ubuntu uses the 2.6 version (which is kinda way too back).
KhoPhi
  • 1,888
16
votes
2 answers

How to increase buffered data limit?

Within Ubuntu I've created a MongoDB Db collection containing 1 million records, and when trying to run a sort command against it, I'm getting the following error: "$err" : "Runner error: Overflow sort stage buffered data usage of 33555002 bytes…
Jon295087
  • 705
  • 3
  • 8
  • 13
16
votes
5 answers

How to change the location that MongoDB uses to store its data?

I edited the MongoDB config file to store it's data in /home/user/data/mongod. But data is still written to the old directory, supposedly because the permissions to the new folder are not granted - how can I give MongoDB the necessary permissions…
deemel
  • 314
  • 1
  • 4
  • 11
11
votes
1 answer

Startup warnings after upgrading from MongoDB 2.6 to 3.4

I removed MongoDB 2.6 and installed MongoDB 3.4. When I connect to the MongoDB 3.4 server there are several new startup warnings: MongoDB shell version v3.4.2 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.4.2 Server has startup…
Raju
  • 111
9
votes
2 answers

How to migrate MongoDB 2.6 to 3.0 with WiredTiger

MongoDB 3.0 introduces a new storage engine called wiredTiger which results in greatly reduced memory and disk space usage. Since my DB is currently at ~20 million objects and using up ~70GB of RAM, this update comes in at just the right time to…
Emanuel Ey
  • 371
  • 1
  • 2
  • 10
8
votes
3 answers

mongod: unrecognized service , mongod.service is present already

other services like apache2, etc are working fine. But when I type sudo service mongod start I get this error: mongod: unrecognized service I have this file: /lib/systemd/system/mongod.service It says this: [Unit] Description=High-performance,…
user1735921
  • 155
  • 2
  • 2
  • 13
8
votes
1 answer

MongoDB 3.2.6 init script is missing

I followed the directions to install MongoDB via apt-get. There was a hiccup with verification, but tracking this down on StackExchange indicated it was a known issue with the signing process, so I re-ran apt-get install mongodb without the -y flag.…
MTippetts
  • 149
8
votes
4 answers

How to find out on which port mongo is?

I know that default mongo port is 27017 and I can connect to this instance on such port. But I tried to figure it out by other means. I found that mongo is running by ps aux | grep mongo with it I can see /usr/bin/mongod --config /etc/mongod.conf At…
6
votes
1 answer

How do I specify mongodb's config file?

I am running mongodb as a service on ubuntu server. How can I specify the config file that mongoDB uses? Is there a file with the command that starts mongod that I can edit to add the --config flag?
5
votes
3 answers

ERROR: dbpath does not exist

I set dbpath in mongodb config file: #dbpath=/var/lib/mongodb dbpath=~/data/db Then try start mongodb but got error: ERROR: dbpath (~/data/db) does not exist. Allthough I can check existance of ~/data/db easy: # cd…
4
votes
2 answers

MongoDB 3.6 not update on ubuntu on APT error signatures were invalid: EXPKEYSIG 58712A2291FA4AD5

I am running Ubuntu 22.04 and am trying to install the UniFi Network Server following the directions here. root@orac:/home/mike# sudo apt-get update && sudo apt-get install ca-certificates apt-transport-https Hit:1…
Jedi
  • 491
1
2 3 4 5