Questions tagged [mongodb]

MongoDB is a document oriented database (also known as NoSQL database).

MongoDB is a document oriented database. It's coded to be fast, scalable and supports natively solutions like sharding, replication, Map/Reduce and storage of files on the DB.

MongoDB doesn't uses SQL, making it a NoSQL database, its data is retrieved using a dynamic query system and returns JSon-style data.

889 questions
0
votes
0 answers

How do I get init.d to respawn a crashed process if the lock file exists?

I'm running a mongod process on my Centos 6.8 box, and I want to provide some level of resilience in the event of process death. So I created an entry in my /etc/inittab - md:2345:respawn:/usr/bin/mongod To test this, I killed the process, and…
0
votes
0 answers

Persistent storage failure or Authorization Failure after Mongocontainer restart using docker-compose rebuild after Machine restart

I have set up a mongo container connected to a nodejs app. First I do docker-compose up --build where I start mongo as a service without auth, i.e commented out. Then I login to the mongo terminal with docker exec -it mongoContainerID /bin/bash …
0
votes
0 answers

GCP mongodb external ip connection issue

I have a spring MVC application and I am connecting it to MongoDB cluster This is in the application.properties file mongodb.url=mongodb://userName:Password@xx.xx.x.xx:27017,xx.xx.x.xx:27017,xx.xx.x.xx:27017/?authSource=admin The cluster is…
0
votes
1 answer

directoryperDB is not working under WiredTiger storage Engine

When i enable the directoryperdb option in the mongo.conf file, mongodb server service doesn't start. 2020-03-16T15:37:55.300+0530 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols…
0
votes
1 answer

Upgrade mongodb replicaset 3.2 to 3.6 on live servers

I want to upgrade mongodb version(3.2 to 3.6) on prd environment W/O downtime. We have one primary node, one secondary node and one arbitrary. We are using ubuntu 16.04. So please guide me how can I achieve success on this. (3.2 -> 3.4 -> 3.6)
Shubham Kamboj
  • 51
  • 1
  • 1
  • 5
0
votes
1 answer

Can I run mongodb under a Managed Service Account

I'm trying to run MongoDB under a Windows Managed Service Account. This works fine for memcached on the same server, but when I run the MongoDB account I get this: Windows could not start the MongoDB ervice on Local Computer. Error 1053: The…
Macke
  • 53
  • 5
-1
votes
1 answer

My mongodb database was dropped by attacker

I already setup mongod with authentication but forget to expose port 27017 to public but I don't understand why attacker can drop my database? *** Updated, issued has been resolved, I forgot to re-enable auth after change something on config files…
snn2spade
  • 1
  • 1
-1
votes
1 answer

Hosting a PHP application on Kubernetes (Google Container Engine)

I need to host a PHP application on the Kubernetes infrastructure of Google Cloud Container Engine but I do not know how to procees, where to begin etc. Basically the app was running on a VM with Apache and MongoDB. How can we make the same…
-1
votes
1 answer

Did someone just run intentionally db.dropDatabase() on my mongo shell? Can you access mongo remotely and bypass ssh password?

To my surprise, my database was empty after not looking at it for a week. There were collections and a few rows of data. It's running on a digital ocean 14.04 Ubuntu droplet. Mongod is running on the default port, no password or bind ip (I have…
-1
votes
1 answer

mongod rs.initiate() error msg

I am a newbie so please bear with me. I have used this command $ sudo mongod --config /etc/mongod2.confin terminal to start a mongodb service instance. In another terminal I ran $ mongo --port XXXX where XXXX is the port number I configure in…
-1
votes
1 answer

I faced this error after trying to install mongodb on ubuntu 16.10

When trying to install mongodb on ubuntu 16.10 When I type this: $ sudo systemctl start mongodb Failed to start mongodb.service: Unit mongodb.service is masked I have followed all the steps on the following link.
-1
votes
1 answer

glibc-2.14 conflicts with file from package glibc2.12

Mongo V2.6 is already installed on my server which is probably using glibc-2.12. When I try to install Mongo V3.0.12 it is trying to install glibc-2.14 which it cannot do. How can I have both glibc libraries live on my RedHat Version 7 64 bit…
-1
votes
1 answer

MongoDB, How can I migrate database to new cluster with higher version without an outage

We are having our mongodb cluster at AWS and our production DB mongo is very old - we are still using version 2.6 then latest version at the moment is 3.2.7. We need to upgrade mongodb binaries to the latest version. We can't upgrade existing DB…
-1
votes
1 answer

Sending many record on client startup. Nginx 502 bad gateway too many open files

I have nodejs app that sending > 800 mongodb documents on client startup (execute only when a client access my app for the first time). Nginx as reverse proxy in front of node server. App server spec Digital Ocean CentOS 7.2 2GB Ram 2CPU MongoDB…
prime
  • 1
  • 2
-1
votes
2 answers

Can't connect to any remote mongoDb

I'm running ubuntu 14.04 and am unable to connect to any remote mongodb server on my home network. I'm pretty sure it worked only a month ago. Furthermore, I have no problems connecting from my work network. For example, I have an aws server…
joniba
  • 99
  • 3