Stack Exchange Network

Stack Exchange network consists of 174 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]

MongoDB is a scalable, high-performance, open source, document-oriented database. Official builds are available for Linux, Windows, OS X and Solaris. Database administration questions are generally better suited to dba.stackexchange.com

0
votes
0answers
8 views

How mongo db create Chunks and how sharding works in a mongo shard cluster?

I enabled sharding on a collection which already contains data. The cluster is a 4 shard cluster. But after enabled sharding data got distributed to 3 clusters the last cluster is not showing up in sh....
0
votes
0answers
6 views

sharing the variables between spark and mongodb in zeppelin [on hold]

We have a scenario to run the spark sql, get the data frame, infer the schema (like field name, type) and create the new collection in mongodb using those fields and types. Problems: using z or any ...
0
votes
0answers
3 views

Reach max connections for no reason [migrated]

I have a problem with my MongoDB Atlas. I am running Atlas version 3.4 instance version M20. The environment I'm working in is AWS Lambda architecture with several services querying on the DB. For ...
2
votes
1answer
55 views

MongoDB server doesn’t close when pressing Ctrl+C after changing the system date to a date in the past

I'm currently using MongoDB 3.4.4. I run MongoDB using the mongo_start batch file. I normally close the shell that appears using ctrl+c and it works most of the time. But when I roll back the system ...
0
votes
0answers
12 views

Invalid domain/user/password while installing mongoDB on Windows10

No idea why it is unable to install. I tried my window account the one I use to log in to my PC doesn't work either. So can anyone help me solve this problem?
0
votes
1answer
20 views

Why can host not access dockerised mongodb using localhost

My mongodb container runs successfully. However my host cannot access it using localhost:27017 or 127.0.0.1:27017 or 0.0.0.0:27017. I need to run docker inspect ... to discover the hostname. Why ...
0
votes
1answer
29 views

MongoDB repo for apt-mirror

Must mirror the Debian MongoDB repo for an offline DMZ. Ubuntu works, Debian doesnt. What is wrong here? Works: deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse Does not ...
2
votes
1answer
17 views

Is MongoDB caching queries?

I am using MongoDB as my database for NodeJS system what working heavily with it database. I am using Mongoose module as database controller. My question is: Is MongoDB or Mongoose somehow caching ...
0
votes
0answers
15 views

Failed connect MongoDB on Raspberry

How can i deal a failed connection MongoDB on Raspberry? I have installed MongoDB. When i run the > mongo i get MongoDB shell version: 2.4.14 connecting to: test Fri Jan 25 10:46:28.648 Error: ...
0
votes
0answers
17 views

MongoDB shell version v4.0.5 : Very Slow Query

MongoDB shell version v4.0.5 : Very Slow Query | Taking time in fetching | Data Size : 2-3 Million documents in a collection and there are around 13-15 such collections. System Conf: Architecture: ...
0
votes
1answer
42 views

Mongo can't start service

I have Ubuntu 16.04. And reinstall mongobd following tutorial on oficial mongo site - https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ As result i have: mongo -version MongoDB ...
1
vote
1answer
47 views

Can Node JS connect to MongoDB and mySQL simultaneously?

I have a developer that says Node JS can only connect to multiple databases on the same server. I would like her to be able to connect to MongoDB and mySQL at the same time ... Is it possible? And ...
0
votes
0answers
31 views

Upgrade Mongoose to version 5

I'm currently using Mongoose version 4.4.5 for my MEAN stack application. I need to update Mongoose to version 5 or higher to resolve an issue where Mongoose versions prior to 5.0 are incorrectly ...
0
votes
0answers
22 views

mongodb two identical objectids

We are using 3.2.3 The problem we encountered was that a piece of data in the database could not be found with _id, it could be found with find uid, and it was also possible to insert a data of the ...
0
votes
1answer
27 views

My first ever app in production state - strange (to me) warning (MongoDB - Ubuntu)

I finally got my first ever project into production. I've got a VPS with OpenVZ6 (RHEL6, 2.6.32, Ubuntu 16.04). I'm trying to use the MongoDB guide for production. I've got past all the warnings and ...
1
vote
0answers
26 views

Mongodb Logs flood

I am starting to use Mongodb to storage my data, and when I started the service, I am getting a log flood, I want to turn off this log saves, I don't mind if I do not have any kind of logs, it is ...
0
votes
0answers
8 views

Connect MongoDB from Azure cloud to Tableau

I would like to use Tableau for visual analytics with the data stored in Azure Cloud in MongoDB. My questions is it possible to make a connection with MongoDB Community subscription? If yes, any ...
0
votes
0answers
13 views

ERROR: Something went wrong when installing logstash-input-mongodb, message: bad record MAC

Trying to install Philip Hutchins's logstash-input-mongodb plugin, but I am getting following error, "ERROR: Something went wrong when installing logstash-input-mongodb, message: bad record MAC". ...
0
votes
0answers
9 views

MongoDB log ownership being hijacked by nginx

I've been running into this problem occasionally where /var/log/mongodb/mongod.log's ownership gets changed to nginx, thus mongod will fail to initialize. I've checked the crontabs and nginx config ...
0
votes
0answers
20 views

How to make Docker service/port accessible from other windows computers in lan

I am running a MongoDb on default port on a windows machine. I want to connect to from other computers in my LAN. I added a rule to windows firewall but it does not help: netsh advfirewall firewall ...
0
votes
1answer
510 views

Can't connect to MongoDB server from local

I have installed MongoDB & Robo - 3T 1.2 on my local machine. While trying to create a new connection, it fails with an error - Cannot connect to the MongoDB at localhost:27017. Error: Network ...
0
votes
1answer
19 views

mongodb on server automatically shutdowns when i turn off my system

i have installed mongoDB on ubuntu server and it works well with my node project. But now it shutdowns automatically and i don't know why it stops mongodb on server automatically shutdowns when i turn ...
0
votes
1answer
1k views

Problems connecting using MongoDB Compass

I'm trying to see the contents of a collection using MongoDB Compass. I have username/password authentication set up. I can log in successfully but can't see any documents in the collection. Instead, ...
0
votes
0answers
29 views

kuberetes hostPort declaration not working for pods in StatefulSet, any extra config needed?

I am deploying the helm chart mongodb-replicaset. I have added the hostPort 27017 in the StatefulSet containers spec. However, the port is not being exposed. It is silently ignoring this. If I deploy ...
-1
votes
2answers
120 views

MongoDB with Laravel

How to use MongoDB with Laravel just needs the basic info. How to configure Mongo on Laravel. Environment requirements for Mongo for local development and for deployment on shared hosting. Any ...
0
votes
0answers
531 views

install mongo-php-adapter on php 7

I try to install mongo-php-adapter over composer but drops me $ composer require alcaeus/mongo-php-adapter Problem 1 - alcaeus/mongo-php-adapter 1.1.5 requires ext-mongodb ^1.2.0 -> the ...
0
votes
0answers
105 views

MongoStat via cron to file?

I'm looking to run mongostat command and have that export out to a file... Wondering if its OK to run this via cron giving that its a continuious stream of data does that work OK if I enter the ...
0
votes
0answers
202 views

MongoDB: How-to connect to Heroku Git-Lab

I'm working my way through Getting MEAN. Through the instructions I've created a Heroku app... and through it, I've created an mlab instance of a MongoDB. Database: heroku_9ltdq2nh To connect using ...
1
vote
1answer
1k views

Install mongodb 2.6 with homebrew

How can I install mongodb 2.6 with homebrew? Here is what I am trying: oobarbazanoos-MacBook-Pro:~ oobarbazanoo$ brew install mongodb@26 Error: No available formula with the name "mongodb@26" ==>...
1
vote
2answers
592 views

Connect MongoDB to Tableau or Microsoft Power BI for real-time analysis

I have a website whose database is MongoDB, I want to track KPIs and analyse them in real-time. I am thinking of Tableau and Microsoft Power BI. But I have not found how to connect MongoDB to them in ...
1
vote
1answer
372 views

Mongodb remote connection suddenly stops

I have configured a mongodb on my server to accept remote connections.I commented the bind line in the /etc/mongod.conf, so the file looks like: # mongod.conf # for documentation of all options, see:...
2
votes
0answers
49 views

lvcreate vg0 not found

I am looking at the mongodb documentation for creating a logical volume with lvcreate. lvcreate --size 100M --snapshot --name mdb-snap01 /dev/vg0/mongodb The example is the output is: Using ...
1
vote
1answer
917 views

Cannot kill mongodb process

I am trying everything but every time I kill the mongod process it starts a new one in a different PID. I even uninstalled it, but still I have the same behavior. When I run this I get ps -ef | ...
1
vote
0answers
471 views

mongoDB fine and replace on many documents

we have a collection and document with and an object called "status" we want to find all which have "status" = New or Contains New and replace with Complete what is the correct syntax to FIND and ...
1
vote
1answer
25 views

Unable to understand how this mongo query service command works on CentOS 7

Our admins have given us the following command to launch the MongoDB service from our (non-sudo) accounts: mongo resteam-mongo-cluster-001:27017 -u mongo-admin -p --authenticationDatabase admin ...
1
vote
1answer
420 views

How to connect to Mongo using Robomongo

Is there some sort of trick to connecting to Mongo using Robomongo? I have a Python application using the connection string: mongodb://myuser:mypassword@127.0.0.1:27017/?authSource=admin which is ...
1
vote
1answer
187 views

Apache Zeppelin db.collection.find issue

db.${collection=none}.find( {}, { ${key=none}: [ { $eq: "${value=none}" } ] } ).table() When I execute the code listed above in zeppelin, It is supposed to look for a exact result in the key based on ...
1
vote
2answers
106 views

.Tar.gz: Is there a relation between time for compressing and decompressing?

I am compressing a a backup of a mongodb (~500GB) into a .tar.gz archive, which takes time on the scale of hours. I am trying to bring that database back up on different machines for testing purposes ...
2
votes
1answer
4k views

Mongo cannot see libssl and libcrypto files

Im using Linux Mint 17.1 and yesterday I tried to upgrade MongoDb. I upgraded to Mongo 3.4.4 by first downloading the tgz file and copying all the contents of its bin/ folder to /user/bin/. I then ...
1
vote
1answer
2k views

Conflict when installing MongoDB

I have a server with CentOS 7, I would like to install mongoDB. I tried installing it typing: sudo yum install mongodb with no problems, then I do mongod I get: -bash: mongod: command not found If ...
5
votes
1answer
3k views

MongoDB: Getting SSL peer certificate validation failed: self signed certificate

I followed this tutorial to create a both a root CA certificate and then used it to sign a key for the mongod server. I run monogd with this configuration, by following this doc: net: ssl: ...
3
votes
0answers
507 views

Configuring PHP for MongoDB on Mac OS X Sierra

I'm having some difficulty configuring PHP to integrate with MongoDB on my Mac. I can confirm that PHP is running correctly, and the php.ini file I am tinkering with is the correct one (I can see ...
1
vote
1answer
351 views

Unable to install MongoDB on LEAP 42.2 (AArch64)

Good morning! I'm playing with my Raspberry Pi 3 Model B version 2 with openSUSE LEAP 42.2 version (AArch64) in order to install an updated MongoDB version. The problem is that I'm following the ...
1
vote
1answer
633 views

Automatically killing mongod process on mac os shutdown

Since everytime I forget to manually kill the mongod process, the databases need to be repaired. I use a command pidof I believe I used brew to install this which returns the pid number of the process ...
1
vote
0answers
9 views

Push depolyed into startup services

I have just bought a VPS from digital-ocean. I have installed deployed on the server and mongodb. I want that the command: cd ~/foldername dpd -p 8011 will run on startup, when the machine is up ...
0
votes
0answers
335 views

MobaXTerm alt key in Mongo cmd line

I'm using MobaXTerm on Windows 10. I run Mongo command line to interact with my DB. But as soon as the Mongo shell starts I can't use the Alt key anymore. It just makes an alert sound. It's quite a ...
1
vote
1answer
2k views

Docker-Mongodb - How to connect to the mongo image in Windows 10 local

I am trying to connect to docker mongo image in my local windows machine, I installed mongodb in local, and added the mongodb bin path to windows path environment variable. And I am doing below steps ...
1
vote
1answer
5k views

mongodb service doesn't start when there are two ip addresses

in /etc/mongodb.conf file I have this setting bindIp: "127.0.0.1,192.168.1.51", 192.168.1.51 is my private ip given by my router. when I do systemctl status mongodb: mongodb.service - High-...
0
votes
1answer
997 views

how to add mongodb.so to AMPPs

I want to use MongoDB in my laravel project, when I'm trying to add mongoDB driver to composer I get : Problem 1 - mongodb/mongodb 1.0.3 requires ext-mongodb ^1.1.0 -> the requested PHP ...
2
votes
1answer
3k views

MongoDB in Docker claims user was successfully created, but login still fails

I am trying to construct a Docker image with MongoDB w/auth and a configured user. However, even though creating the user works, I can't seem to use that user. The application is a Dropwizard 0.8 ...