Skip to main content

Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
39 views

Install MongoDB on Fedora

So, I've heard that fedora doesn't include mongoDB in it's repos, and mongoDB official site doesn't provide Feodora images either. I've tried using RHEL repo, as workaround, but it throws some SSL ...
Happy Cakiey's user avatar
0 votes
1 answer
222 views

i am getting error : fatal error: 'openssl/sha.h' file not found while installing mongodb in mac m1 for the laravel project

nssl.c:24:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^~~~~~~~~~~~~~~ 1 error generated. make: *** [src/libmongoc/src/libmongoc/src/mongoc/mongoc-crypto-...
Janam Maharjan's user avatar
0 votes
1 answer
142 views

grub-install error when running trying to install gnupg on ubuntu 18.04

I am trying upgrade mongodb on my Ubuntu 18:04 system and I am getting the following error when I execute the command: sudo apt-get install gnupg This is the error: Setting up grub-efi-amd64-signed (...
user2570135's user avatar
0 votes
1 answer
125 views

MongoDB on Archlinux without compiling from source

I can't seem to find a precompiled package that works for Arch. I believe I've tried all the debian-style packages, to no avail. There is no longer an actively-managed mongodb package. And compiling ...
editor's user avatar
  • 105
1 vote
1 answer
129 views

Change mongodb data directory ubuntu permission

I want to change my mongodb data directory to my external media. The problem is that when I change data dir to my media (other than home dir), it does not work, but it works for home dir: ● mongod....
Nima shiri's user avatar
1 vote
0 answers
1k views

MongoDB 6 fails to start on CentOS 8

MongoDb run fine with the default settings. The issue occurs when I change the default log path in cat /etc/mongod.conf to the below: systemLog: destination: file logAppend: true path: /var/www/...
Ashar's user avatar
  • 491
1 vote
2 answers
2k views

System V init service can't recongnise mongod

I have been following official guide for installing mongodb but it wont run as a service. When i try $ whereis mongod mongod: /usr/bin/mongod /etc/mongod.conf /usr/share/man/man1/mongod.1.gz but step ...
Vojin Purić's user avatar
0 votes
1 answer
418 views

Get return value from kubectl exec out into powershell script [closed]

So I'm working on a powershell script that runs a pester test. The script connects to a Kubernetes pod with a Mongo database. The goal is to check whether or not a collection in the database is empty. ...
a_wahab's user avatar
0 votes
1 answer
399 views

How to install mongo bi connector in alpine linux?

How to install mongo bi connector in alpine linux? the mongo bi connector is the 'mongosqld',https://www.mongodb.com/docs/bi-connector/current/ there are debian version, windows and macos version but ...
radiorz's user avatar
  • 95
0 votes
1 answer
806 views

Running dnf update on Fedora returns conflicts for MongoDB

I'd appreciate some advice resolving the following conflict with MongoDB install on my Fedora Workstation. I've added MongoDB as a custom repo and get the following output in the terminal when running ...
matthewakinowittering's user avatar
0 votes
1 answer
567 views

Is there any other way to pause current running process and run it in background other than Ctrl+Z followed by bg?

I'm trying to run several mongod processes through a Java Application using ProcessBuilder, is there a way to simulate Ctrl+Z keypress to pause the current mongod process ?
Devesh Lohumi's user avatar
0 votes
0 answers
147 views

How to choose optimal size for LVM snapshot for cloning MongoDB?

Yes, I know that my question will look familiar to many of you, but I would like to double check with before I start working on it. I have read similar question: Snapshot size in lvm , but still one ...
igork's user avatar
  • 1
1 vote
1 answer
872 views

MongoDB: Failed to set up listener: SocketException: Permission denied error

Mongodb failed to start when launched as a service: service mongodb start with an error: Failed to set up listener: SocketException: Permission denied error What to do to start it properly?
sophros's user avatar
  • 111
1 vote
0 answers
297 views

Port is open but external IPs have no access

My MongoDB is running under a docker container. On the server, I can confirm that port 27017 is open. MongoDB IP Bind is set to 0.0.0.0 to /etc/mongod.conf nmap -p 27017 127.0.0.1 PORT STATE ...
Maverick's user avatar
  • 107
1 vote
1 answer
1k views

How to install and run MongoDB on CentOS 7?

I am trying to install and run a MongoDB server on CentOS 7 machine. The CentOS 7 machine is in my university campus and I am accessing it from my home over ssh through VPN. I have followed every step ...
Sufyan's user avatar
  • 157
2 votes
1 answer
2k views

How to create JSON from associative array

I am writing a bash script on CentOS 7.5 that will execute some MongoDB commands. One of these commands will set replication servers. According to project, number of servers can be different. I have ...
BlackCrystal's user avatar
0 votes
0 answers
44 views

Can't create file as another user

This may be related to MongoDB, but I'm not really sure. While trying to run MongoDB on a mounted disk I found that its user (mongodb) has no permissions to the folder it's configured to (/media/dutzi/...
dutzi's user avatar
  • 101
0 votes
2 answers
896 views

Failed to start after modifying mongodb dbpath

I executed the following command to modify the dbpath: mkdir /mnt/data/mongodb sudo chown -R mongod:mongod /mnt/data/mongodb Modify mongod.conf: vi /etc/mongod.conf # Where and how to store data. ...
xiandanin's user avatar
  • 101
1 vote
1 answer
202 views

Freebsd 12 i386 MongoDB package doesn't exist

Installed Freebsd 12.1 i386, when I am using pkg search mongodb I get "mongodb tools" and "mongodb C driver" and some other "mongodb" related packages but there is no ...
Warjeh's user avatar
  • 113
-1 votes
1 answer
113 views

Problem in installing mongodb by wget method in debian

I tried sudo wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc to install MongoDB. But the following error occurred sudo: wget: command not found. Please help me!
Samar Pratap Singh's user avatar
0 votes
1 answer
311 views

Upgrade to linux-image-4.9.0-13-amd64 uninstalled mongoDB

Here's my problem. I'm managing two VM servers under proxmox. Recentry, I upgraded (with apt update & apt upgrade) a lot of the VM linux kernels to linux-image-4.9.0-13-amd64 through the update ...
JadenBZH's user avatar
3 votes
0 answers
2k views

OS linux ubuntu is killing my mongod service

I am facing this issue consistently, whenever I run some CPU and memory intensive processes so OS kills my mongod service. Due to which service goes into the failed state and everything stops. ...
Abdul Moiz's user avatar
3 votes
1 answer
770 views

MongoDB installation size is huge

I need MongoDB to install on Arch Linux. It needs 180+GB free space for installation. However, I have 99GB partition where Arch Linux is installed and 107GB partition free. Can I installed MongoDB by ...
any thing you like's user avatar
1 vote
0 answers
189 views

Build Mongo C Driver 1.13.0 on Ubuntu Raspberry Pi

Operating System: Ubuntu 18.04.4 LTS Kernel: Linux 5.3.0-1018-raspi2 Architecture: arm64 I'm trying to build libmongoc 1.13.0 from source. I'm building this on a Raspberry Pi 4 running Ubuntu 18.04.4....
Cooper Knaak's user avatar
12 votes
2 answers
18k views

Installing mongodb on alpine > 3.9

Since mongodb changed their license, it is no longer available as an apk package on the alpine repository for alpine versions after 3.9. mongodb exists on alpine 3.9 mongodb does not exist on alpine ...
DannyB's user avatar
  • 221
0 votes
1 answer
463 views

CentOS 7 MongoDB fails to start

I am running Linux centos-002 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux. I installed newest MongoDB according to the official guide (I did not follow ...
Munchkin's user avatar
  • 123
1 vote
0 answers
371 views

MongoDB, accidentally changed permissions of all files

So I already resolved my issue by just rebuilding a new server but I don't understand why this happened. I am running mongo 4.2.* on Ubuntu 18. So overnight some mongodb folders /var/lib/mongodb and /...
Rich's user avatar
  • 11
4 votes
1 answer
5k views

Dependency error: install MongoDB on Amazon Linux

I need to install MongoDB community edition on an Amazon Linux machine. I followed the steps described in the MongoDB documentation that are, very simply: Create the repo file in /etc/yum.repos.d ...
OnlyAL's user avatar
  • 41
0 votes
1 answer
26 views

Unable to get mongodb started

I have been trying to uninstall and reinstall mongodb, but it keeps failing. campagnollo@campagnollo-Galago-Pro:~$ sudo systemctl status mongodb ● mongodb.service - High-performance, schema-free ...
user167707's user avatar
0 votes
0 answers
65 views

Different output between du and ls -h on mongodb .wt file

$ du -sh 0--989303831270119069.wt 1.6T 0--989303831270119069.wt $ ll -h 0--989303831270119069.wt -rw-rw-r-- 1 mongo mongo 3.6T Oct 22 18:17 0--989303831270119069.wt I want to know why? Is it a ...
Yucheng Chen's user avatar
0 votes
3 answers
6k views

Unable to connect with MongoDB when giving mongod command in Cli

I'm trying to install mongoDb on centos VM and followed few sites like https://linuxize.com/post/how-to-install-mongodb-on-centos-7/ , https://www.digitalocean.com/community/tutorials/how-to-install-...
Parul Chourasia's user avatar
1 vote
3 answers
2k views

Unable to install MongoDB on Linux Mint

I cannot install MongoDB on my Linux Mint. Operating System: Linux Mint 19.1 Kernel: Linux 4.15.0-50-generic Architecture: x86-64 I followed official documentation. Import the public key used by the ...
VA splash's user avatar
  • 153
0 votes
1 answer
2k views

Showing "Cannot create SSL client. SSL is not enabled in this build" when connecting to Cosmos DB (MongoDB API)

I am facing the error "Cannot create SSL client. SSL is not enabled in this build" when connecting to CosmosDB using the MongoDB API. My PHP configuration suggests SSL support is included in my ...
Steven Audy's user avatar
1 vote
0 answers
154 views

Docker use MongoDB instance installed on host machine

I have a virtual machine. I have 4 Docker images (with quay.io/pterodactyl/core:java) loaded. I have MongoDB, installed on host machine, not in Docker. I want Docker images use MongoDB. My MongoDB ...
pirmax's user avatar
  • 133
-2 votes
1 answer
3k views

bash: mongod: command not found

mongod is running, but show this error as title. [root ~]# sudo lsof -i:27017 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mongod 1608 root 7u IPv4 10941 0t0 TCP localhost:...
Victor He's user avatar
0 votes
0 answers
88 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 ...
last_fix's user avatar
  • 103
3 votes
1 answer
5k 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 ...
fbence's user avatar
  • 505
1 vote
0 answers
801 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 ...
Manuel's user avatar
  • 121
0 votes
0 answers
1k 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 ...
KuboMD's user avatar
  • 419
2 votes
1 answer
199 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 -...
boh's user avatar
  • 245
-2 votes
1 answer
2k 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('...
Abdulvakaf K's user avatar
-1 votes
1 answer
987 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?
kamal951's user avatar
1 vote
3 answers
338 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:...
Alexander Mills's user avatar
0 votes
1 answer
17 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?
l00p's user avatar
  • 263
2 votes
1 answer
5k 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 ...
CodeMed's user avatar
  • 5,209
3 votes
1 answer
2k 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 [email protected] "mongo mydb --host 10.1.1.1 --port 27017 -u user -p password --...
Daniel Pinto's user avatar
1 vote
1 answer
807 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 ...
Máxima Alekz's user avatar
1 vote
1 answer
308 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-...
showkey's user avatar
  • 343
1 vote
1 answer
1k 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 ...
jomaint's user avatar
  • 11
1 vote
1 answer
2k 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), ...
Gur Telem's user avatar
  • 113