Questions tagged [mongodb]

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

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

pthread_create failed: Resource temporarily unavailable in mongo

we are running 32k connections on mongodb so facing below error on log file. After suggestions from mongo community to check pid_max and threads-max. But our machines having little bit high only and ...
1
vote
0answers
30 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 ...
0
votes
0answers
11 views

Mongo docker doesn't restart with volume on Windows

I am trying to run mongo with the compose file below. It runs ok, but only once. After down/up it starts to fail with error 14. Probably I mounted data volume incorrectly. version: '3.1' services: ...
1
vote
1answer
151 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 ...
1
vote
1answer
142 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 ...
0
votes
0answers
25 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/...
0
votes
0answers
131 views

Error while trying to install MongoDB Compass on Ubuntu 20.04.1 LTS. Pango-ERROR **: 12:35:26.314: Harfbuzz version too old (1.3.1)

I tried installing MongoDB Compass on my Ubuntu system. It is throwing the following error. I initially tried installing the latest MongoDB Compass version but that apparently has issues with Ubuntu ...
0
votes
0answers
213 views

All yum commands fail with Error: rpmdb failed release provides

I am running a Linux EC2 instance on AWS. All of my yum commands are failing with the same error. I tried following solutions from here but nothing works. This only recently became an issue. My ...
0
votes
0answers
42 views

During the process of migrating to mongodb sharding using mongorestore, an error occurred

panic: close of closed channel goroutine 40 [running]: github.com/mongodb/mongo-tools/common/archive.(*RegularCollectionReceiver).Read(0xc000072140, 0xc0051d4000, 0x4, 0x1000000, 0x0, 0x0, 0x0) /...
0
votes
2answers
92 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. ...
1
vote
1answer
79 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 ...
-1
votes
1answer
26 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!
0
votes
1answer
147 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 ...
0
votes
0answers
21 views

init.d kills my mongod process due to respawning

I'm using Ansible to start the mongod service on a Centos 6.8 VM. The task is pretty straightforward: - name: Start mongod service service: state: started name: mongod However the service ...
3
votes
0answers
1k 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. ...
2
votes
1answer
301 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 ...
1
vote
0answers
80 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....
8
votes
2answers
8k 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 ...
0
votes
1answer
258 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 ...
0
votes
0answers
64 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 /...
2
votes
1answer
2k 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 ...
0
votes
1answer
23 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 ...
0
votes
0answers
38 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 ...
0
votes
3answers
5k 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-...
0
votes
2answers
980 views

Can't able to install Mongodb on linux mint

I can't able to 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 ...
0
votes
1answer
696 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 ...
1
vote
0answers
77 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 ...
-2
votes
1answer
1k 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:...
0
votes
0answers
70 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 ...
3
votes
1answer
4k 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
604 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 ...
0
votes
0answers
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 ...
2
votes
1answer
141 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
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('...
-1
votes
1answer
867 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
126 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
16 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
3k 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 ...
3
votes
1answer
1k 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
703 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
180 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
942 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
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), ...
2
votes
1answer
9k 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://...
13
votes
6answers
22k 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 ...
2
votes
4answers
14k 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
777 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
345 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
330 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
178 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 ...