Questions tagged [mongodb]

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

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

MongoDB Compass GUI: Error importing: Callback called multiple times

I am completely new to MongoDB. Just downloaded and installed MongoDB Community Edition on my local Windows pc. The MongoDB Service is running, and I was able to connect to this local cluster. I have ...
0
votes
0answers
10 views

Cannot upgrade Mongo 3.6 to 4.0 on Debian 10

I'm trying to find a path to upgrade mondodb-org-server from 3.6 to 4.0 on an old Debian 10 server upgraded recently from a stupid coworker. I am in this common situation an example here of other ...
0
votes
0answers
10 views

Changing default mongodb port on debian

I'm using a debian server and I'd like to run a mongo service on it. Since quite a few ports are blocked at the office I'd like to change the default mongodb port. within the /etc/mongod.conf file I ...
0
votes
0answers
22 views

Connect Nodejs app to MongoDB Via Azure

I have a nodejs application and my organization is using mongodb but via azure which I'm not too familiar with. I usually just go on the mongodb website and then go to the 'connect you application' ...
0
votes
0answers
32 views

Mongo Authentication when mongod started as a service

System specs: OS: Debian 10 Mongo Shell: v4.4.4 Mongod: v4.4.4 I successfully created a user administrator for MongoDB with the privileges below (output from show users in Mongo Shell). { "...
1
vote
0answers
10 views

mongodb, remove one of the replica set's from a sharded cluster

I need to remove filed server01 (currently offline for a long time). The configuration looks like this: shards: { "_id" : "mongo1", "host" : "mongo1/server01:27017,...
0
votes
0answers
13 views

MongoError: No SASL session state found

I am trying to connect to a remote mongodb server from a Windows PC and i receive this error about 8 time out of every 10 connections. const databaseUri = 'mongodb://user:password@$remote-host:27017/...
0
votes
0answers
48 views

Initializing MongoDB Replica with Ansible

I've three hosts with MongoDB 4.4 and Ansible 2.9 installed via Ansible on Debian. All MongoDBs are configured with the config: # Where and how to store data. storage: dbPath: /var/lib/mongodb ...
0
votes
1answer
187 views

pymongo + flask + gunicorn: “Authentication failed” before first operation when “connect=False”

I'm using MongoDB Atlas. I'm have this URL for connecting: mongodb+srv://<LOGIN>:<PASSWORD>@<URL>/<DB>?retryWrites=true&w=majority&authSource=admin. I'm using this ...
0
votes
0answers
59 views

Slow connection to production MongoDB due to TLS handshake retransmits

I have question about something that had me tearing my hair out for the past two days. Long story short: specifically over my home network, my connection to our work MongoDB is stupidly slow. Over my ...
0
votes
0answers
69 views

Allow MongoDB remote access only for specific IP

I bind with my VPS public IP address. I figurate with help of my mistake that my localhost apps connect with success with my remote server. Allow MongoDB remote access only for specific IP? Any ...
0
votes
0answers
83 views

Connect to mongodb replicaset running on docker behing nginx proxy

I'm using docker-compose for mongodb replica set. Everything work fine on my host where docker is running. I had problems when I tried to connect from another client which is in the same network.I ...
0
votes
0answers
14 views

Mongo crash on VPS centos8.3

I use centos 8.3 on my VPS. ( 1gb ram 1cpu ) Digital ocean service. I am not sure which case is it but maybe mem usage. Error begin to be active after i run ue4 dedicated server how use normal 3% cpu ...
0
votes
0answers
18 views

MongoDB (debian) and authentication using mongodb compass

I'm a little confused by the mongo server setup I'm currently trying to set up. I have a regular debian webserver running appache and mysql. nothing fancy here. For a project I'm working on I would ...
1
vote
1answer
34 views

What could go wrong if I let users create their own Mongo collections?

I am in the process of building a basic no-code solution to build RESTful APIS that support CRUD operations on a MongoDB collection. Right now it is just a Proof of Concept project that I use ...
1
vote
0answers
28 views

Why is my mongodb setup not reaching EBS IOPS limit?

I have an application that is constantly pumping data to MongoDB. MongoDB instance is running with 2-replicas, each with 3TB gp2 EBS volume. As you can see on the following graph of irate(...
2
votes
0answers
47 views

Not able to connect to Mongodb vie mongo shell

I am no able to connect to mongodb via mongo shell. command: sudo mongo --tls --tlsCertificateKeyFile server.pem --tlsCAFile CA_INTERMEDIATE --host "mongodb://xxx:xxx@some-url:27020/data_base?ssl=...
0
votes
0answers
168 views

Error when trying to connect to mongo docker image locally

I have a locally running mongo docker container. However I cannot connect to it for some reason. It says I can connect and the port is correct etc but the authorization is wrong. Docker FROM mongo:4.4....
0
votes
0answers
289 views

MongoDB keeps crashing--is it running out of memory or CPU?

I have an issue where MongoDB keeps crashing on me: $ sudo cat /var/log/syslog -> Nov 28 14:06:58 ns557017 systemd[1]: mongod.service: Main process exited, code=killed, status=6/ABRT Nov 28 14:06:...
0
votes
0answers
461 views

Unmet Dependencies: mongodb-org-server mongodb-org-mongos mongodb-database-tools but it is not going to be installed

Can anyone help me with this error? rohan@linux-pc:~$ sudo apt-get install mongodb-org-server [sudo] password for rohan: Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
60 views

MongoDB high usage WiredTiger

We are having difficulty with MongoDB high RAM usage in AWS EC2 Instance ubuntu with 30GB RAM. In our server, there are over 3K databases and It's out of memory from time to time. I read a lot about ...
1
vote
1answer
165 views

How secure is setting mongodb to 0.0.0.0 but blocking all incoming requests to 27017 on ec2?

As the title suggests. If I set the net.bindIp setting in mongod.conf to 0.0.0.0 on port 27017 this should open it up to all incoming connections. However, if in my ec2 instance I whitelist only my ...
0
votes
0answers
33 views

Is there a way to another developer provisioned namespace to see the service accounts in openshift-operator namespace within OpenShift?

I've got the MongoDB Operator installed in openshift-operator (all namespaces). I create a new project called "ecommerce". When I provision a mongo cluster, it's asking for mongo service ...
0
votes
0answers
20 views

MongoDB 3.6 SCRAM Warning

After upgrading a replica set to Mongo 3.6, I logged into the console and ran the command to upgrade to SCRAM: db.adminCommand({authSchemaUpgrade: 1}); However, I continue to see the following warning ...
0
votes
1answer
71 views

Error in Node.js / Ubuntu 20 server configuration: 111 Connection refused

I get these three lines of errors when I refresh my page: 2020/10/07 16:38:55 [error] 315270#315270: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 66.249.66.221, ...
3
votes
0answers
364 views

Connecting MongoDB Compass to WSL2 Mongo server

I am running a mongoDB server on Ubuntu via Windows Subsystem for Linux 2. (Windows build is 19041.) I have MongoDB Compass running on Windows, and it is happy to connect to my Mongo server in Windows,...
0
votes
0answers
52 views

Migrating a Mongodb 3.2 to 4.x version

I'm quite new to mongodb and I need some good advices :) I have a mongodb 3.2 service running for a slowly growing 6Gb database on an Ubuntu 16.04 VPS for a Nodejs Parse Server application. In the ...
0
votes
1answer
308 views

MongoDB root user can't access config database

I'm trying to set up backups on a mongoDB instance (version 4.4) using mongodump. That requires access to the config database and my mongo user doesn't have that, despite being in the root role. (From ...
1
vote
0answers
29 views

How do I upgrade a Mongodb replica set running in a Docker swarm?

I'm running a Mongodb cluster with two routers, 3 config servers as a replica set and 4 single node shard servers. The routers and config servers are running in a Docker swarm but the shards run on ...
0
votes
0answers
28 views

mongodb list db command doesn't return empty db's

I am trying to get all db's from a mongodb instance, but I am only getting db's that have a collection in them. db's that are empty (do not have any collections) are not included in the list. I have ...
3
votes
1answer
335 views

How do I resolve a private DNS address from within an AWS Fargate task

I'm trying to setup a connection to a MongoDB Atlas database from an AWS Fargate container. The VPC peering is setup and works and I can successfully connect to the MongoDB Atlas cluster from a ...
0
votes
1answer
57 views

Can this inbound & outbound bandwidth of my server cause issues?

I have a social app where users do the usual stuff of other social apps; upload multiple text and photo posts every hour, like & comment (a notification is created for each action), view custom/...
0
votes
1answer
225 views

start mongos(mongodb 4.4 sharding router) using systemd service

Mongodb 4.4 on centos 8 using official RPM repo. I can start & use mongos from command line just fine: mongos --config /etc/mongos.conf However, if I try to start mongos as systemd service, it ...
0
votes
0answers
27 views

How to increase the reliability of Mongo connection on wan?

A Mongo database is queried by a c# client which is not on the same lan. As far as I know they are 30 km far, but an icmp ping shows a latency <1ms. I noticed some exceptions generated by the ...
0
votes
0answers
327 views

Ubuntu with XFS blocked for more than 120 seconds

Im running ubuntu 16.04 with an XFS file system volume. Its running on Google cloud. This Disk is a Local SSD. It is used for MongoDB. A few days back my Primary and Secondary both are frozen from IO. ...
0
votes
0answers
9 views

MongoDB sharded cluster and replica sets sharing servers

I'm trying to define the architecture for a production sharded mongoDB server, I see in the documentation that each shard has to contain 3 replica-sets. I would like to have the sharding advantages(...
1
vote
1answer
107 views

Ubuntu MongoDB server not responding?

I have amazon aws ubuntu 18.04 server 8GB RAM and 50GB Storage. I have installed MongoDB 4.2 and Node JS 12 LTS. In current server has 30 GB MongoDB storage. I have 4 micro service on same server. I ...
0
votes
1answer
80 views

Lambda connect to mongodb which only allow localhost connection in ec2

I have a MongoDB which only allow connection from localhost, running on my ec2. Currently, only my nodejs app which runs on the same ec2 instance connects to the mongodb using this command mongoose....
0
votes
0answers
130 views

Connecting to a remote host via tailscale VPN?

I'm trying to route some traffic through a VPN network via tailscale rather than direct connection to the host. My setup is: Ubuntu Client with tailscale VPN (Now called C) Ubuntu Server with ...
0
votes
1answer
101 views

How should my Nginx 'default' file in sites-available be configured for a MERN app?

I'm deploying a MERN app and wondering how the 'default' configuration file in etc/nginx/sites-available should be setup for the server, client, and Mongo database to work? I am using a Ubuntu machine ...
0
votes
0answers
29 views

After delete cache files - bug in permissions for run

I got similar msg also for apache but i fixed with recreating var/log/folders and getenforce . Mongo still have error logs: systemctl status mongod.service ● mongod.service - MongoDB Database Server ...
0
votes
0answers
379 views

Ubuntu has invalid checksum in blocks ~once a week

I use Ubuntu 18.04 on my server machine. Once a week Ubuntu has invalid checksum for blocks, so Ubuntu enters read only mode, after which processes fails and Ubuntu restart is needed. During booting ...
1
vote
0answers
140 views

“Attempted to use Snappy compression, but Snappy is not installed” on Ubuntu VPS

I have set up a new VPS via Digital Ocean and have installed MongoDB V4.2.8 on an Ubuntu server 18.04 release as per the official Mongo documentation. I'm using Compass version 1.21.2. I have managed ...
0
votes
0answers
23 views

mongodb high resource usage and configuration hints

I am running a MongoDB instance as a ubuntu service, on a VM with enough resources to handle it with ease, the system is on-premise and not Cloud. I am a newbie with MongoDB and this is a test/dev ...
0
votes
1answer
64 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 ...
0
votes
0answers
112 views

How to backup/restore a large MongoDB database?

How can I backup and restore a large mongodb database (500GB) from a server running an older version (v2.6) than the target one (v3.6)?. The downtime is critical. We've tried by making a straight copy ...
0
votes
0answers
523 views

Impossibile to replicate MongoDB

we are trying to move a MongoDB from an AWS VM to an on premise machine. The MongoDB data directory size is over 2.5TB. The idea is to put the on premise VM in replica with the AWS VM. The problem is ...
0
votes
0answers
120 views

In kubernetes, can not connect to another container in SAME pod from time to time

I have a complicated system deployed in k8s, and in one of the pods, there are 2 containers, mongo and metrics. some related info from kubectl -n app_ns describe pod app-mongo is as below(removed some ...
1
vote
1answer
739 views

Cant connect to mongo db

Any idea why I am not able to connect to the mongo database? I just installed it on a new debian following this https://linuxize.com/post/how-to-install-mongodb-on-debian-9/. Mongo startup logs: https:...
0
votes
0answers
58 views

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/...

1
2 3 4 5
18