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

Filter by
Sorted by
Tagged with
1 vote
0 answers
27 views

Is there a bandwidth/speed limitation with MongoDB?

Is there a bandwidth/speed limitation with MongoDB? Ideally the insert speeds should come near the file transfer speeds, but it’s 1/3 at best. Details below. Server: MongoDB v4.4 community edition, ...
user avatar
0 votes
0 answers
290 views

I just cannot install Mongodb in my Ubuntu 20.04

First I used the documentation of Ubuntu. https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/ Step1: After that I ran commands according to documentation. wget -qO - https://www....
user avatar
0 votes
0 answers
19 views

Make a mongodb instance running on localhost available on public port on remote server

I am running a mongodb instance on on localhost on protected_server which is not accessible from the outside and I want to make my database accessible on the 27017 port of open_server. I tried ssh -R ...
user avatar
  • 133
1 vote
1 answer
224 views

Error: (InvalidBSON) incorrect BSON length in element with field name 'clone_class_metrics.CE' in object with _id: ObjectId

I have windows 10 on my system with enough storage. I have a database that is 208 GB in a file with the .agz extension. When I import the database into my MongoDB, I face the following error: 2021-09-...
user avatar
0 votes
0 answers
92 views

How to install mongodb on Debian 11 (bullseye)?

How should i install MongoDB on debian 11? There nothing about debian 11 on mongo docs https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/ what should i do?
user avatar
  • 1
0 votes
0 answers
22 views

Spacebar not working when connected to remote MongoDB cluster

I am on Windows 10, working in Hyper Terminal (version 3.1.2), connecting to my MongoDB (Mongo version: 4.4.6) using the 'mongo' command in terminal. It is successful, but then my backspace key does ...
user avatar
0 votes
0 answers
43 views

Problems connecting mongoDB compass

I have purchased the VPS, they have given a VPS server with ovipanel version 4.2 I have tried to connect the mongodb using mongodb compass using the correct credentials, but it was not connected ...
user avatar
1 vote
0 answers
326 views

High percentage of IO in iotop

I have a problem with a very slow process (mongod), so I downloaded iotop to see how is my drive going. I can see a very high percentage in the IO< column, constantly about 70-99%. Can someone ...
user avatar
  • 111
0 votes
1 answer
85 views

Set MongoDB 2.6 log without restarting

I am trying to set a new log destination without restarting. It is unclear to me what to set / how to set it. I am running localhost > db.version() 2.6.3 I want to change the system log to /var/...
user avatar
0 votes
0 answers
1k views

What is the best way to store and use big JSON data?

I have downloaded a bibliographic corpus that consists of 10,000 zipped JSON files with the total size of ~200GB (zipped, ~800GB unzip) I have no experience in dealing with this amount of data, and I ...
user avatar
  • 101
0 votes
0 answers
29 views

mongodb-prebuilt hidden directory in my Mac home dir

I am cleaning up my mac to free up spaces and I found this .mongodb-prebuilt in my /Users/username directory. I did not know what installed this folder. I had installed these mongo related apps ...
user avatar
  • 151
0 votes
1 answer
679 views

NordVPN blocking Mongodb Atlas connection

When I try to connect to Mongodb Atlas cluster, NordVPN blocks it (connecting via the Mongo shell). When I turn off Nord it is able to connect. More Information: Database is on the cloud so it might ...
user avatar
2 votes
0 answers
166 views

Expose MongoDB from docker container

I am trying to expose my mongodb that is running in a docker container to be accessible from the outside. I found out that it should be able with docker compose or the mongod.conf file to set the ...
user avatar
  • 161
0 votes
0 answers
60 views

how to connect to MongoDB deployed in Kubernetes from Studio3t?

I'm wondering on how do I connect to a Kubernetes deployed mongoldb instance, I have been using studio3t its fairly easy to use when DB hosted on AWS and all. I am finding it difficult to connect to ...
user avatar
1 vote
1 answer
26k views

Mongodb, mongoimport, uncaught exception: SyntaxError: unexpected token: identifier : @(shell):1:15

Getting the below error while importing a csv file in MongoDB database. command: mongoimport -d test -c FAQ --drop --type csv --file C:\Users\KUMA\Desktop\FAQ.csv --headerline --host localhost:27017 --...
user avatar
0 votes
1 answer
5k views

How to fix the mongoDB/node.js issue "MongoTimeoutError: Server selection timed out after 30000 ms"

Please help to fix the mongoDB/node.js events.js:174 throw er; // Unhandled 'error' event ^ MongoTimeoutError: Server selection timed out after 30000 ms at Timeout.setTimeout (E:\Digital\...
user avatar
0 votes
1 answer
1k views

Upgrade mongodb replicaset docker container using ansible

Trying to update mongodb in my docker container from 3.6 to 4.2 using ansible, but docker container keeps restarting. The reason it restarting is because the compatibility level is set to 3.6. More ...
user avatar
  • 111
0 votes
0 answers
1k views

Update the Rocketchat administrator password from mongoDB

I would like to change the password of a Rocketchat user from the mongo command prompt. I followed to the letter the documentation provided by Rocketchat at this address:https://rocket.chat/docs/...
user avatar
  • 1
0 votes
3 answers
2k views

Can't install mongodb on debian 10 using official instructions

Following the official documentation sudo apt-get install -y mongodb-org returns The following packages have unmet dependencies: mongodb-org : Depends: mongodb-org-shell but it is not going to be ...
user avatar
  • 1
1 vote
1 answer
4k views

Putty SSH Tunnel Portforwarding not working with remote MongDB database

I'm having trouble connecting to a remote database server. I'm on a Windows 10 client and can successfully connect to my Ubuntu 16 server with putty over SSH, including with a keypair. Now I have a ...
user avatar
  • 131
0 votes
1 answer
224 views

two mongoDB version commands returning different versions

when i am running mongo -version it showing a different version than when i am running db.version() from Mongo shell. how this is possible and which is the correct version.
user avatar
0 votes
1 answer
94 views

javascript in mongoshell

I want to make a join query in mongodb. Mongo doesn't have any join operator so i have to split the query in two parts. first: var a = db.articoli.find({_id: 4010}, {ordini:1}); var b = a[0].ordini; ...
user avatar
0 votes
1 answer
1k views

Mongodb 2.6 Packages Removed from Mongo Repo?

I am attempting to build Mongodb 2.6.7 from the Mongo repos and am now unable to download them, as I was able to last week... root@591d529e0497:/# echo 'deb http://downloads-distro.mongodb.org/repo/...
user avatar
36 votes
4 answers
18k views

Error: mongodb: unknown version :mountain_lion

I am running these simple commands on mac: brew upgrade mongodb or brew install mongodb I am getting this error below: Error: mongodb: unknown version :mountain_lion If i run the simple ...
user avatar
0 votes
1 answer
71 views

Google Cloud Compute MongoDB Deployment security issue and keyFile issue

I've ran into this super annoying issue today. Basically, I have setup a MongoDB database using the GCP Marketplace offering. It sets up a primary node, secondary, and an arbiter. Which is super cool....
user avatar
0 votes
1 answer
890 views

how to login to mongodb in bigbluebutton html5

How do I connect to the installed mongodb? How many users are defined for mongodb when bbb is installed? root@srv53607:~# mongo mongo MongoDB shell version v3.4.22 connecting to: mongodb://127.0.0....
user avatar
1 vote
0 answers
214 views

Cannot open MongoDB Compass 1.19.3

I recently updated MongoDB Compass to 1.19.3 from 1.16 on my system(Ubuntu 14.04 LTS)and now it does not open. Every time I launch the compass the window screen of the compass crashes and I cannot ...
user avatar
1 vote
0 answers
53 views

What does config shard mean here?

I created a MongoDB sharded cluster with replica set rsa, rsb and rsc. Configuration server replica set is configRS. Initially shard status listed only these shards as primary shard for the sharded ...
user avatar
  • 11
1 vote
0 answers
561 views

Upgrading OpenSSL to v1.1.0 broke mongo (SSL peer certificate validation failed)

I was trying to connect to a MongoDB Atlas cluster using the srv syntax, but it wasn't working. So I did the following: Update my mongo client to the latest version (v4.0.11). Then every time I ran ...
user avatar
0 votes
0 answers
33 views

Mongodb BIConnector & Tableau

I'm connecting Tableau with Mongodb using Mongosqld(BIConnector) , this days I suddenly find that mongosqld is not running , I run it manually , but after some hours , I check again and find that it'...
user avatar
0 votes
1 answer
334 views

How to change MongoDB storage engine for replica set member from MMAPv1 to WiredTiger

I am running Mongodb-3.4x version in a Replica set environment (in all 3 different systems on AWS) i.e. One Primary, One secondary (replica) and an arbiter. Issue that I am seeing is for some reason; ...
user avatar
0 votes
1 answer
60 views

Issues attempting to use MongoDB connector for BI

I am trying to add MongoDB as a linked server to MSSQL server but it is not working. I need to set up MongoDB connector for BI and then add it in the system DSN of the ODBC driver. I am following the ...
user avatar
  • 11
1 vote
1 answer
893 views

MongoDB Compass loading forever on start page

When I start MongoDB Compass 1.18, it loads forever and never starts.  It displays the word "LOADING..." under a logo consisting of two blue squares:
user avatar
  • 11
1 vote
1 answer
2k views

Debian 10 and MongoDB

Has anyone successfully installed Mongo on Debian 10? I am new to working on Debian. I'm getting these messages when I try to install. I tried MySQL too and got similar messages. Are these databases ...
user avatar
1 vote
0 answers
306 views

Mongodb Replication primery high cpu usage during secondary stopped

We use mongo replicaSet version 4.0.6 on our environments. The replicaSet works with 3 nodes , one primary, one secondary and one arbiter. We do some test for failover,we stopped the secondary node, ...
user avatar
0 votes
1 answer
40 views

Trying to use old desktop tower as server for mongodb, but cant resolve a public IP

I am trying to bind to my public IP. However when editing the contents in nano /etc/mongod.conf It does not work. Now I think this might be the issue. Running ifconfig only shows my private ip address:...
user avatar
  • 115
0 votes
0 answers
3k views

mongoDb connectivity issue with cluster

I am new to using Mongo DB data base and need help in establishing JDBC connection, I have followed instructions available online but some error is occurring. import com.mongodb.MongoClient; import ...
user avatar
0 votes
1 answer
878 views

Can't start mongos process: Address already in use

I'm working with Debian 4.9.168 and I want to configure mongoDB replica set monitoring through google cloud, and I found the best solution is through bindplane bluemedora (currect me if I wrong). So,...
user avatar
0 votes
1 answer
463 views

Mongo 2.6.12 VS Mongo 4.0 benchmark

I have problem, I use the old 2.6.12 version of mongodb on a new computer and it does not show high speed results and I do not know why. Mongo 2.6.12 doesn’t even try to use my computer at 100% using ...
user avatar
0 votes
0 answers
191 views

MongoDB db.serverStatus() has no storageEngine output

I have an instance of MongoDB 4.0.6 with WiredTiger and the documentation says that db.serverStatus() has a storageEngine section in the output with some info on the Wired Tiger flags. On my instance ...
user avatar
  • 1
3 votes
2 answers
1k views

MongoDB: Can't drop local database with root user

I am trying to drop the local database in my replica set so that I can rename the replica set, but I keep getting the below error errmsg" : "not authorized on local to execute command { dropDatabase: ...
user avatar
  • 185
3 votes
0 answers
966 views

repair mongodb 4 after crash due to a full storage

I have an issue on mongod. One day ago , my hard disk storage was full so mongodb shut down. I add Go on my hard disk and now when i want to restart my mongo , it doesn't work . I m on unbutu 16 ...
user avatar
0 votes
0 answers
26 views

size of Journal files are increasing not getting cleaned up

Using mongodb version 3.4.1. Size of journal file are not getting cleaned up after upgrade patch of windows(2012 R2)enter image description here where mongodb is running. Nothing is showing in logs. ...
user avatar
0 votes
1 answer
219 views

update amazon linux ec2 database server(MONGO DB) is 3.0 and I need to update my database to 3.4 without any data loss

I have an Amazon Linux instance as a Database server (Mongo DB ), but the version of my existing database server is 3.0 and I need to update my database to 3.4 without any data loss. how can I do this ...
user avatar
3 votes
1 answer
5k views

MongoDB, Using mongorestore on an .agz file

I am using MongoDB 3.6 and am having trouble understanding how to use mongorestore on an .agz file. If I specify the below, then I get an error saying Failed: error connecting to db server: no ...
user avatar
  • 185
3 votes
0 answers
358 views

Mongodb PHP Driver MacOS Unsigned package error

I installed MongoDB driver for PHP with the following command sudo pecl install mongdodb I had to disable "csrutil" at reboot to be able to run the above command. After installing the package I ...
user avatar
0 votes
1 answer
983 views

Installing mongodb driver for PHP on MacOS

I am having some issues installing mongodb driver for PHP on MacOS. The PHP I have on my laptop came with MacOS and the version is: PHP 7.1.19 (cli) (built: Aug 17 2018 20:10:18) ( NTS ) Copyright ...
user avatar
0 votes
1 answer
75 views

MongoDB Replica Set Upgrade

I am upgrading my MongoDB replica set from 3.0.15 to 3.2.22. And when I start up a node with the 3.2.22 binaries, I keep seeing the below for lastHeartbeatMessage whenever I run rs.status() Error ...
user avatar
  • 185
0 votes
1 answer
3k views

Unable to connect to mongoDB atlas using mongoose.js

I'm unable to connect to mongoDB atlas using mongoose.js  It is throwing the error: C:\Users\uttar\Desktop\blog_application>node index.js including files:./routes/appRoutes.js including files:./...
user avatar
0 votes
1 answer
107 views

Merge Power BI is blocked

I have data divide into three Data from customers (10 000 lines) Location data (10 000 rows for each table) Traffic data Sflow (18 000 000 lines) that I stored in MongoDB. On Power BI when I am ...
user avatar