Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mongodb]

The tag has no usage guidance, but it has a tag wiki.

0
votes
0answers
25 views

Installation error in mongodb

I am trying to install mongodb from command line in debian 9. On running installation command i am getting following error Reading package lists... Done Building dependency tree Reading state ...
1
vote
1answer
1k views

How to install mongodb on archlinux?

It seems mongodb has been removed from the official archlinux repository and it seems compiling is out of the question since I need it on a raspberry pi (source). Where could I find a safe binary of ...
1
vote
0answers
119 views

Running MongoDB as service on Arch Linux

I'm trying to get mongoDB run under Arch. However, I'm only able to start it as root or using systemctl with the default path. What I'm trying to do is to change the default data path from /data/db ...
1
vote
0answers
91 views

Rock64 DietPI Mongodb [closed]

I've currently installed the mongodb on my rock64 running latest dietpi version. Everything went well I've followed the guide outline here: https://andyfelong.com/2016/01/mongodb-3-0-9-binaries-for-...
0
votes
0answers
755 views

systemctl status?

I'm trying to install Mongodb. It seems to install fine, but starting the process gives me errors. Edit: I have tried the daemon-reload. Failed to issue method call: Unit mongod.service failed to ...
1
vote
0answers
240 views

Creating bash script to install mongodb replica set fails [closed]

This is the script I managed to create : #!/bin/bash echo "Updating the system, this might take a couple minutes..." sudo yum -y update echo "Installing Docker" curl -fsSL https://get.docker.com/ | ...
2
votes
1answer
69 views

How does ps censor my password

I am playing around with MongoDB on my localhost and when using ps aux | grep, I got this ubuntu 26701 0.2 0.6 96011 27851 pts/3 Sl+ 11:14 0:00 mongo -u mongouser -p xxxxxxxx -...
-2
votes
1answer
561 views

How to create a new database and collection using pymongo?

I want to create a database and collection using python script so that I used pymongo driver. But I am unable to create database. Steps I followed: from pymongo import MongoClient con = MongoClient('...
-1
votes
1answer
732 views

Install latest version of MongoDB on Raspberry Pi 3 [closed]

I would like to install the latest version of MongoDB on my rpi 3 but apt-get install the version 2.4. How can I install the latest?
1
vote
3answers
66 views

Run commands in series and stop when first command exits with 0

I have these 3 commands: mongo cdt_prod_playground --host "mngdb-cbt-stg-01:27058" -u cdtprodplayground -p "x" --eval "db.${file%.*}.remove({})" mongo cdt_prod_playground --host "mngdb-cbt-stg-02:...
0
votes
1answer
13 views

How to measure daily number of metrics which is written to the single MongoDB instance?

Please suggest a commands to measure daily number of metrics which is written to the single MongoDB instance?
1
vote
1answer
1k views

bash script to create a yum repo definition file [closed]

How do I get the bash script below to create a yum repo definition file that can successfully facilitate the installation of mongodb? As you can see, the current version of the script is causing a ...
1
vote
0answers
45 views

Running Flask and MongoDB on same Ubuntu VM [closed]

It is probably a very basic questions but can't find to get a clear answer. It is hard to express in a google search. I have a Ubuntu 14.04 server running Flask and MongoDB. I can run Flask and ...
1
vote
1answer
645 views

Remote ssh commad with variables, quotes and single quotes [closed]

I need to execute a command on a remote MongoDB server, using variables declared on the shell script. Command: ssh root@10.1.1.1 "mongo mydb --host 10.1.1.1 --port 27017 -u user -p password --...
1
vote
1answer
507 views

Debian 9 - Allow ONLY certain IP to MongoDB

How can I make my Mongo only certain IP accesible? I've tried iptables iptables -A INPUT -s 192.168.2.111 -p tcp --destination-port 27016 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A ...
1
vote
1answer
143 views

Permission denied:why can't start mongodb on /dev/sda4?

The block device attributes info on my sda. sudo blkid /dev/sda1: UUID="7E91-CA50" TYPE="vfat" PARTLABEL="win10" PARTUUID="b30fb21a-0b23-41fb-bed5-ad42ce287770" /dev/sda2: UUID="6512f5f3-d574-49dd-...
1
vote
1answer
579 views

systemctl mongod exited after

I am running mongo daemon using systemctl start mongod. While it works for a couple of hours, the daemon will change to active(exited). No errors thrown, I can't find out the reason either. Anyone had ...
1
vote
1answer
1k views

Trying to make mongodb start on startup Debian 9

So when I type: sudo update-rc.d mongod defaults I get: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), ...
0
votes
1answer
6k views

How to locate mongoDB “bin” directory in CentOS?

I have installed mongoDB in my centOS server by using the below command: 1) Create a /etc/yum.repos.d/mongodb-org-3.4.repo file and insert: [mongodb-org-3.4] name=MongoDB Repository baseurl=https://...
12
votes
6answers
19k views

How to install mongodb 3.4 in debian stretch (9)?

I want to install mongodb 3.4 on debian stretch. Unfortunately debian stretch packages are only mongodb 3.2 (https://packages.debian.org/stretch/mongodb). The mongodb docs only mentions debian 7 and ...
1
vote
3answers
5k views

CentOS 7 - yum won't install mongodb

I'm trying to install mongodb v3.4 guided by MongoDB. First I create "/etc/yum.repo.d/mongodb.repo", then I paste this repo info in the file: [mongodb-org-3.4] name=MongoDB Repository baseurl=https://...
1
vote
0answers
552 views

libssl error after upgrading Mongo

I upgraded to Mongo 3.4.4 by first downliading the tgz file and copying all the contents of its bin/ folder to /user/bin/. I then ran mongo and got: mongo: error while loading shared libraries: ...
2
votes
0answers
248 views

Service is Listening on port, no firewall enabled, but port shows closed when attempting to connect externally

I am running a MongoDB service on port 27017 on a server. Both of: lsof -i netstat -a Show that port 27017 is listening. I can connect to the service locally, but when I try to connect from an ...
1
vote
0answers
195 views

MongoDB Server Shows OpenSSL's Different Version than Installed

On Ubuntu Machine, Installed OpenSSL Version is : Used Command : openssl version OpenSSL 1.1.0e 16 Feb 2017 But, MongoDB Version Shows OpenSSL Version as : Used Command : mongod --version ...
1
vote
1answer
163 views

Networking error with multiple docker containers running in parallel

I have a number of python files containing unit tests in the directory /code/test In an effort to parallelize my test running without any code editing, I figured I could use GNU Parallel to run N ...
1
vote
1answer
434 views

Why doesn't MongoDB's debian jessie package install an init.d script?

I'm installing MongoDB Community Edition on debian using the instructions here. It says: The mongodb-org-server package provides an initialization script that starts mongod with the /etc/mongod....
1
vote
1answer
484 views

parse Mongodb logs with syslog-ng

I'm receiving a lot of Mongodb logs with my Syslog-ng. below is the sample of logs parsed and stored like this: 2016-10-18 19:01:08 f:local1.p:info h:10.133.126.81 prog:sharmongo-log m:sharmongo-log ...
0
votes
1answer
1k views

How to su to a daemon user?

To repair mongodb running on arch linux arm, the doc says that the specific command must be run with the same user as the one running the service, to avoid permission issues later on. The dbpath ...
0
votes
1answer
815 views

How to Upgrade or Downgrade MongoDB

I have a fairly archaic webapp setup that relies on MongoDB running on a server with Debian 8.5. Unfortunately MongoDB was recently upgraded on the server and the application broke. MongoDB was ...
1
vote
2answers
1k views

Reasons for a server to be unreachable, How to investigate?

One of my server which host a mongoDB is, sometimes and "randomly" unreachable. After a while, it come back, like nothing happend. During this period, impossible to open an ssh tunnel (timeout, don'...
1
vote
1answer
1k views

Arch Linux + MongoDB - GLIBCXX_3.4.22 not found

I have mongodb installed on my Arch linux: $ sudo pacman -S mongodb $ pacman -Qi mongodb Name : mongodb Version : 3.2.6-2 Description : A high-performance, open source, schema-...
1
vote
0answers
228 views

Date, Facility and Severity is missing in LogAnalyzer

I have install Syslog-NG with MongoDB and LogAnalyzer, and as the Title saying, im missing Date, Facility and Severity on a front page of the LogAnalyzer ( first page ). I get just Hostname and ...
4
votes
2answers
6k views

How to install mongodb 3.x in debian jessie (8)?. mongodb web only supports wheezy

I want to install mongodb in debian jessie, but debian repo only has mongodb 2.4 and I need mongodb 3.x. Mongodb web page instructions for installing latest mongodb in debian only supports wheezy. ...
0
votes
1answer
388 views

Not able to do sudo apt-get update after installing Mongo DB

I tried installing MongoDb on my linux mint Rosa 17.3 system from the following link https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ However when I type and run sudo apt-get ...
1
vote
1answer
603 views

mongo.so working fine with php apache ini but not with php cli

I added the mongo.so extension to /etc/php5/apache2/php.ini and it is loading perfectly in php info. But it does not work with /etc/php5/cli/php.ini. When I try to run composer for adding mongodb ...
1
vote
1answer
2k views

MongoDB authentication failed?

I'm currently trying to set up a secure MongoDB database for my various applications, but whenever I try to login with a username and password, but the shell always replies with Error: Authentication ...
0
votes
1answer
5k views

Problem installing MongoDB using apt-get?

I am following "tutorialforlinux.com/2014/12/13/how-to-install-mongodb-for-linux-debian-9-sid-32-64bit-step-by-step-easy-guide/" tutorial to install MongoDB in kali linux 2.0. MongoDb version I ...
3
votes
1answer
599 views

Ubuntu: Process vfs-worker taking all CPU resources

My Cloud9 (Ubuntu-based cloud IDE) began to be unresponsive after I tried to save some files (they didn't save to my cloud workspace). It shows 100% CPU utilization and a process that takes all CPU ...
0
votes
2answers
3k views

mongodb unmet dependencies

When I try to install mongodb (sudo apt-get install mongodb), i get this : The following packages have unmet dependencies: mongodb : Depends: mongodb-dev but it is not going to be installed ...
1
vote
3answers
2k views

Check services running on the server and restart them if they have stopped?

I am trying to write a python script which shows me the services which are running on my server. The thing is that mongodb keeps going down on the server and each time it happens I have to manually ...
8
votes
4answers
8k views

Yum error while installing MongoDB on CentOS?

I am using Centos 6.6 (x86_64) Trying to install most stable mongodb version available. but I am stuck with this error (which might seem repeated but none of the previous answers worked for me) [root@...
1
vote
1answer
1k views

mongodb service wont start, what is default pid for mongodb?

I tried to run mongo db service but it won't start. I get the message Job for mongod.service failed. See "systemctl status mongod.service" and "journalctl -xn" for details. I googled and found that ...
2
votes
2answers
4k views

problem installing mongodb on fedora

I'm trying to install mongodb on fedora 22 and this is the error i get $ yum search mongo-org Failed to synchronize cache for repo 'MongoDB' from 'http://repo.mongodb.org/yum/redhat/22/mongodb-org/3....
2
votes
1answer
6k views

Mongodb permissions error after changing data directory

I just installed mongodb version 3.0.3, on Ubuntu. I edited the conf file to change the default data directory to "/home/user/mongodb", and gave it the following permissions: drwxr-xr-x 4 mongodb ...
1
vote
1answer
546 views

Automate input to the shell of a program

These days many programs like mongodb, docker etc, have there own shell i.e., if you type docker -i it opens an interactive shell (similarly with mongo and other programs). Is there a way to automate ...
3
votes
1answer
5k views

How do I run a service with numactl

I need to do something like this to run MongoDB $numactl --interleave=all /usr/bin/mongod --config /etc/mongod.conf & What should I change to be able to run the mongo daemon with the options ...
3
votes
1answer
2k views

MongoDB will not uninstall

So, it would appear that following the official MongoDB installation instructions when installing on Debian - you're heading for a world of pain. Firstly, it didn't install correctly so now - i'm ...
1
vote
1answer
8k views

After upgrade MongoDB it does not start and log is empty

Can you help me with this problem please? I have updated (apt-get upgrade) my system Debian GNU/Linux 7.6 (wheezy) but for problem with disk space operation failed. After I have released disk space, ...
1
vote
0answers
645 views

MongoDB “service” on clean Redhat can not be started

I just bring up Redhat 6.5 64-bit from AWS and did the below things: Disabled SELinux Disabled Iptables All ports opened in Security Group Rebooted Then i just followed, both of the below ...
2
votes
2answers
18k views

Get running status of mongodb

Having a script where I start/stop various services depending on what I need. For example Apache, BIND, MySQL, PostFix, Memcached, Tomcat, ... and so on. Depending on status options to script etc. ...