Skip to main content

Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
111 votes
10 answers
374k views

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.
user avatar
107 votes
10 answers
148k views

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 ...
user2915962's user avatar
  • 1,171
81 votes
4 answers
260k views

Permanent PATH variable

How will I make this /media/De Soft/mongodb/bin PATH variable permanent? Everyone is saying "export PATH=$PATH:media/De\ Soft/mongodb/bin to your ~/.profile, or .bashrc, or .zshenv depending on your ...
Towhid's user avatar
  • 4,085
78 votes
1 answer
515k views

systemctl: command not found on ubuntu 16.04

when I tried to install RocketChat in Ubuntu 16.04 In Command Prompt I enter. systemctl enable mongod After That I got The issue. systemctl: command not found How to solve this?
Vignesh Ramamoorthy's user avatar
73 votes
13 answers
189k views

What is a good MongoDB GUI client?

I've been using Rockmongo on Windows - it's a php based web tool. But on Ubuntu (12.04) it's behaving funny - queries timing out often - and I'm looking for better clients. Does anyone know anything ...
Eyal's user avatar
  • 5,035
57 votes
3 answers
312k views

How can I uninstall MongoDB and reinstall the latest version?

I need to uninstall mongodb completely from my system (Ubuntu 11.10) and install version 2.0.5. Currently, when I run: mongo db I get the following error: MongoDB shell version: 2.0.1 ...
jyothi's user avatar
  • 571
56 votes
3 answers
197k views

Failed to start mongod.service: Unit mongod.service not found

For whatever reason, whenever I try to start MongoDB as a service (sudo service mongod start) I get the following error: Failed to start mongod.service: Unit mongod.service not found. I followed ...
Siddharth Jain's user avatar
55 votes
7 answers
90k views

How do I modify "/sys/kernel/mm/transparent_hugepage/enabled"

I use mongodb 3.0 and I find a warning: MongoDB shell version: 3.0.0 connecting to: test Server has startup warnings: 2015-03-13T16:28:29.405+0800 I CONTROL [initandlisten] 2015-03-13T16:28:29.406+...
Feng Yu's user avatar
  • 867
54 votes
11 answers
237k views

How to install Robomongo on Ubuntu?

I am using MongoDB and I want to install Robomongo on Ubuntu. Are there any instructions on how I can I install Robomongo on my machine?
Suraj Maurya's user avatar
52 votes
13 answers
64k views

MongoDB 2.6 does not start on Ubuntu 15.04

I installed MongoDB 2.6 on clean installed Ubuntu 15.04: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart ...
Akihiro HARAI's user avatar
44 votes
10 answers
147k views

Apt-get fails on 16.04 or 18.04 installing mongodb

When I attempt to install mongodb using the instructions on https://docs.mongodb.com/getting-started/shell/tutorial/install-mongodb-on-ubuntu/ on 16.04 I get the following result on the install step: ...
Jonathan's user avatar
  • 1,310
41 votes
4 answers
84k views

error in installing mongo in virtual machine

I try to install mongo using mongo documentation: Install MongoDB on Ubuntu no errors were mentioned during the installation. But when I run the mongo command following error was displayed in the ...
Gayan Charith's user avatar
38 votes
5 answers
155k views

Where is mongo database folder on the filesystem

I'm using Ubuntu 16.04. I have set up a database MongoDB. When I start it (with mongod command) it says that database is located at /data/db (dbpath=/data/db). The database works fine. But in files ...
croraf's user avatar
  • 604
34 votes
2 answers
74k views

Install MongoDB shell client without server

Where is the shell client for MongoDB, I found a number of packages related to MongoDB in Ubuntu 18.04 LTS but can't seem to find information where exactly is this client and what I should install. ...
Vitaliy Terziev's user avatar
31 votes
5 answers
109k views

How to install Mongodb PHP extension in Ubuntu 16.04 LTS

I'm running Ubuntu 16.04 LTS and I want to use Mongodb with PHP. For this I tried sudo apt-get install php5-mongo which is enough for Ubuntu 14.04 LTS would be enough but I was wrong. I'm getting ...
Vikash Kumar's user avatar
29 votes
3 answers
71k views

MongoDB (3.2) doesn't start on Lubuntu 16.04 LTS as a service

For whatever reason, whenever I try to start MongoDB as a service (sudo service mongod start) I get the following error: Failed to start mongod.service: Unit mongod.service not found. I followed ...
Horizon's user avatar
  • 393
24 votes
2 answers
57k views

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....
tarun kumar's user avatar
24 votes
2 answers
17k views

Installing the latest Node.js / MongoDB?

How can I install Node.js and MongoDB so they are the most current versions? The available versions from package manager are not up to date, and PPA from Chris Lea for Node.js doesn't get updated on ...
Brandon Clark's user avatar
22 votes
3 answers
32k views

Packages have unmet dependencies on 18.04 upon mongodb install

So, I tried to install mongo on my local machine, a Ubuntu 18.04. The installation came to a halt with an error The following packages have unmet dependencies: mongodb-org : Depends: mongodb-org-...
Caio Favero's user avatar
20 votes
3 answers
27k views

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's user avatar
  • 1,888
20 votes
4 answers
98k views

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/...
842Mono's user avatar
  • 9,860
17 votes
2 answers
50k views

How can I completely uninstall mongodb 2.6.3?

I am running the following command: sudo apt-get remove mongodb And it's giving this output: Reading package lists... Done Building dependency tree Reading state information... Done Package '...
Laxmi's user avatar
  • 171
16 votes
5 answers
82k views

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 - ...
deemel's user avatar
  • 314
16 votes
2 answers
25k views

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 ...
Jon295087's user avatar
  • 705
16 votes
7 answers
34k views

Not able to install Mongodb in Ubuntu 22.04

I am not able to install MongoDB on Ubuntu 22.04. I am following the official documentation for the installation. This is the output I am getting after following the installation instructions: https:/...
Mihir Panchal's user avatar
14 votes
5 answers
31k views

MongoDB 3.0.2 won't start after upgrading to Ubuntu 15.10

I recently upgraded to Ubuntu 15.10 after which MongoDB 3.0.2 is not starting. $ sudo service mongod start which would throw error: Failed to start mongod.service: Unit mongod.service failed to ...
Kartik's user avatar
  • 409
14 votes
7 answers
77k views

MongoDB installation failed on Ubuntu 16.04

I followed instructions given on the official MongoDB website (https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/) and I get this error when trying to install MongoDB. How to fix this ...
ssudaraka's user avatar
  • 243
12 votes
2 answers
80k views

Run MongoDB service as daemon of SystemD on Ubuntu 15.10

MongoDB just supports versions of Ubuntu Long Term Support (LTS). The last is Ubuntu 14.04 LTS, where the init process is managed by Upstart proprietary of Canonical. However I'm using Ubuntu 15.10 ...
Fernando Santucci's user avatar
11 votes
1 answer
18k views

Can't reinstall MongoDB on Ubuntu 17

I uninstalled before MongoDB but now I can't install it due to this error: dpkg-deb: error: subprocess paste was killed by signal (Broken pipe). I ran this command -> sudo apt-get install -y mongodb-...
GD- Ganesh Deshmukh's user avatar
11 votes
1 answer
15k views

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 ...
Raju's user avatar
  • 111
10 votes
2 answers
20k views

Can I use 14.04 MongoDB Packages with 16.04?

Unfortunately the official Ubuntu package for MongoDB is still stuck on 2.6, which is ancient at this point (this bug didn't get picked up for vivid, wily or xenial). MongoDB has not yet released a ...
Adam C's user avatar
  • 1,919
9 votes
1 answer
22k views

How to upgrade MongoDB from 2.6 to 3.4 on Ubuntu 16.04

I have Ubuntu 16.04 machine with MongoDB 2.6.10 install. Now I want to upgrade MongoDB to latest version, i.e., 3.4 What is the best way to Upgrade?
Mahdi Bagheri's user avatar
9 votes
2 answers
20k views

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,...
Emanuel Ey's user avatar
9 votes
2 answers
16k views

Unable to install Mongo due to held broken packages

If I try to install mongo on Ubuntu 14.04 with: sudo apt-get install -y mongodb-org I get the error: Reading package lists... Done Building dependency tree Reading state information... Done ...
Cerin's user avatar
  • 6,574
9 votes
4 answers
53k views

What is the default data directory for mongodb if we install that in amazon ec2

I tried to find this info everywhere and couldn't find it. I already change mongodb.conf so I forget where the original directory is.
user4951's user avatar
  • 755
8 votes
4 answers
67k views

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 ...
Viacheslav Kondratiuk's user avatar
8 votes
5 answers
6k views

How do I install MongoDB 3.0 in Vivid?

The official vivid package for mongodb is 2.x, and the packages that MongoDB provide themselves on http://repo.mongodb.org/apt/ubuntu/dists/trusty/ are only available for LTS releases. An alternative ...
Hugh Rawlinson's user avatar
8 votes
4 answers
23k views

MongoDB suddenly stopped working today (12.04)

After I updated to 12.04 a month or two ago I installed MongoDB via APT. Since that time it has worked well. I made no changes to the config or anything - it just worked out of the box. Today it didn'...
Xeoncross's user avatar
  • 183
8 votes
4 answers
22k views

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 ...
user1735921's user avatar
8 votes
1 answer
14k views

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-...
MTippetts's user avatar
  • 149
7 votes
1 answer
11k views

Error executing command, exiting

I'm trying to install node.js 12 on Ubuntu 18 and following the instructions, when I type curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - I got the next text: Reading package lists....
Zenit's user avatar
  • 193
6 votes
4 answers
16k views

How should I start MongoDB on a NUMA machine?

When I first installed MongoDB 2.2.3 with apt-get, following the instructions from 10gen installation guide, it auto starts when the server starts. However, after following the instructions in /var/...
resting's user avatar
  • 341
6 votes
1 answer
50k views

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?
phillips1012's user avatar
6 votes
4 answers
55k views

What is the correct way to ensure `mongod` starts on system startup in 16.04?

I installed MongoDB through the software centre in Ubuntu 16.04: mongodb 1:2.6.10-0ubuntu1 I believe this currently contains MongoDB 2.6.10. I am running an application on apache2 localhost setup ...
user1063287's user avatar
  • 2,265
6 votes
2 answers
14k views

MongoDB - Unit mongod.service can't found - Ubuntu 16.04

When I try to start MongoDB, I get this error: # mongo MongoDB shell version: 3.2.6 connecting to: test 2016-05-21T16:14:31.183+0300 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, ...
A. Ite's user avatar
  • 113
5 votes
1 answer
15k views

Type 'echo' is not known on line 1 in source list /etc/apt/sources.list.d/mongodb-org-3.2.list [duplicate]

I am trying to install mongodb on the ubuntu server 16.04 LTS. for that I have created file /etc/apt/sources.list.d/mongodb-org-3.2.list and added a line as per the doc. echo "deb http://repo....
Atul Makwana's user avatar
  • 2,318
5 votes
4 answers
13k views

What is the command line to install mongodb?

I am trying to install MongoDB, but I keep getting the following error: mongodb is not found. I am using the following install command: sudo apt-get install mongodb
user avatar
5 votes
1 answer
5k views

How to install mongodb 2.6.11 on ubuntu 18 LTS

I Have tried to install MongoDB 2.6.11 on Ubuntu 18 LTS but unable to install it. always it installs MongoDB 3.6 version. cloud you please help.
Yogendra Sharma's user avatar
5 votes
3 answers
33k views

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 ~/...
Maxim Yefremov's user avatar
5 votes
1 answer
7k views

Unable to Complete MongoDB Install Ubuntu 22.04

I'm following MongoDB's official guide for installing on Ubuntu 22.04, but I'm unable to get past step three. I've tried importing the public key and created the list file. When I attempt to execute ...
ireallylikebeans's user avatar

1
2 3 4 5
8