Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
832 views

Trying to downgrade MongoDB on CentOS

I'm running CentOS 6.7 on a Hyper-V, which means that I can't do an in-place upgrade to 7.0. Today I did a server restart, and some time between the last time I did a restart and today my ...
SCRawl's user avatar
  • 56
1 vote
2 answers
1k views

MongoDB automatic failover between 2 data centers

If I deploy a MongoDb replica set across only 2 data centers, if one entire data center fails, can there be automatic failover to the other data center? Consider the situation where 1 data center has ...
Andy Cohen's user avatar
1 vote
1 answer
2k views

Issue with bind_ip on mongodb mon Virtualbox

I have been struggling with mongo bind IP for a while , I think this is the time to shout for help. I am using hostonly network 192.168.56.0/24 . I have 4 boxes. 3 boxes for mongo 192.168.56.111,192....
black sensei's user avatar
1 vote
1 answer
1k views

Adding an admin user to a MongoDB

I'm using MongoDB 3.0.3, and I've been having issues with creating users. I created a user on the admin database using db.addUser('admin', '....'). I gave it dbAdminAnyDatabase privilege. The output ...
monksy's user avatar
  • 357
1 vote
2 answers
115 views

Mongodb: handle offline queries without affecting regular queries

I have a MongoDB replica set with Three members: primary, secondary and hidden secondary, only for backups. Ideally, I want to add additional instance dedicated to running slow batch operations. The ...
Elad's user avatar
  • 113
1 vote
1 answer
2k views

Mongodb + Kerberos BadValue SASL mechanism GSSAPI is not supported

I am trying to run an instance of mongodb with the authentication mechanism GSS-API. This is the command: mongod --dbpath /home/ec2-user/db/node2/data --auth --setParameter authenticationMechanisms=...
Adrian's user avatar
  • 141
1 vote
1 answer
851 views

Fluentd not writing apache access log to mongodb

I'm following the instructions from this link to write apache access logs to mongo db- http://docs.fluentd.org/articles/apache-to-mongodb. But nothing is getting written to mongo DB. I'm checking ...
ksrini's user avatar
  • 121
1 vote
1 answer
387 views

mongo shard has high number of faults, but top shows only 8% of memory used by mongod

I am investigating some performance issues in my mongo setup. I have 3 query controllers and 6 shards. I'm doing a large batch import/update, and on the 3 query controllers, I'm getting around 200 ...
user1130176's user avatar
1 vote
1 answer
1k views

Can i delete oplog local.* of Mongo backup fsyncLock() + LVM snapshot?

Is it safe to delete oplog local.* files from a MongoDB snapshot ? Does the fsyncLock() commit oplog entries in DB files ? I currently do a fsyncLock() + LVM snapshot of Mongo data. Then i mount the ...
Alex F's user avatar
  • 858
1 vote
2 answers
392 views

Background indexing MongoDB on server

I have a collection on a server containing ~23 million documents. I need to index this collection and obviously this will take a long time. If I run this indexing operation with background: true ...
Oscar Robinson's user avatar
1 vote
1 answer
695 views

Setup MongoDB on MS Azure virtual machine to access it from an azure website

I have setup a MongoDB replica cluster on 3 virtual machines (Ubuntu 14), on MS azure cloud. The mongodb cluster has been setup with MMS (https://mms.mongodb.com amazing tool btw) and it works fine. ...
Thomas Decaux's user avatar
1 vote
1 answer
1k views

Very strange disk-usage for replica in Mongodb

tl;dr: the new 2.6 replica eats up a lot more disk space than the 2.4 members. We're heavy users of MongoDB's GridFS. We're currently on 2.4, and are intending to upgrade to 2.6 by simply adding a ...
vpetersson's user avatar
1 vote
1 answer
2k views

MongoDB - DB/collection fragmentation level

I recently had a performance issue with one of my collections. On a whim (and thanks to this article), I decided to try compacting (as written in the official documentation). This worked brilliantly. ...
Nitz's user avatar
  • 1,078
1 vote
1 answer
273 views

Amazon OpsWorks - unable to reference ebs volume in mongo dbpath

I'm deploying mongo with Amazon OpsWorks as described in the Setting Up a MongoDB Replicaset With AWS OpsWorks and the instance fails to start when I specify mounted ebs volume (/data/ebs) in dbpath. ...
andriys's user avatar
  • 113
1 vote
1 answer
2k views

trying to install mongo but getting errors

I am following mongo site (http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/ ) to install mongo on my centos 5.1o I am getting following errors sudo yum ...
user50946's user avatar
  • 483
1 vote
1 answer
3k views

mongo server does not start on Centos 6.4

I have a mongo server installed and when I try to start it with, always fail. OS: CentOS release 6.4 x86_64 Mongo version: 2.4.8 I have other machines working with the same versión and puppetized ...
curratore's user avatar
  • 113
1 vote
1 answer
584 views

Re-mount EBS vol on EC2 instance

I am new to sysadmin. I am trying to launch a EBS-backed EC2 instance. I did the following based on mongodb docs: sudo mdadm --verbose --create /dev/md0 --level=10 --chunk=256 --raid-devices=1 /...
www.tyme-it.com's user avatar
1 vote
1 answer
1k views

MongoDB is not using all of my system memory for working set?

My machine has 42GB RAM, and the total index size is 40GB (working set should be 100% filled as the indexes are all on UUID columns). I suspect my working set is too large as the page fault started ...
Howard's user avatar
  • 2,175
1 vote
1 answer
1k views

Strange behaviour starting process with init script

I'm seeing some strange behaviour when starting a process with an init script. Most likely I am doing something stupid, but perhaps someone could let me know what might cause this behaviour: [...
UpTheCreek's user avatar
  • 1,638
1 vote
1 answer
755 views

mongodb mystery crashes with sigkill under strace

I have a mongodb instance that seems to crash roughly once a day. I don't see any useful information in the mongo log file. All is well and then the process is just crashed with no additional ...
Peter Lyons's user avatar
1 vote
1 answer
1k views

MongoDB ReplicaSet slow read performance

I successfully basic configure my replica set, but i noticed slow read performance. I have 2 mongo servers and 1 arbiter in my replica set. All are running on Centos 6.3 minimal setup (just database)....
Novkovski Stevo Bato's user avatar
1 vote
3 answers
346 views

Amazon EC2 High-Memory Extra Large Instance [closed]

I am new to Mongodb and EC2. If I use following single MongoDb server : High-Memory Extra Large Instance 17.1 GiB memory, 6.5 ECU (2 virtual cores with 3.25 EC2 Compute Units each), 420 GB of local ...
Simpanoz's user avatar
  • 121
1 vote
2 answers
1k views

Low priority batch processes on live Mongo database

We want to run MapReduces on our live Mongo database, mainly so that we can extract metrics. However, we've had some bad outages caused by these MRs bogging down the Mongo server (in particular 100% ...
moinudin's user avatar
  • 205
1 vote
1 answer
348 views

enkive mail archive ldap setup

I am trying to set up mail archiving using enkive with exchange. i have followed the installation of all the prerequisites for enkive. i run enkive with defaults and i get error in the log file Aug ...
shorif2000's user avatar
1 vote
1 answer
41 views

Mongo is not account specific

I have mongo running on my system however I can access all my databases/collections from other peoples accounts. Can I secure specific collections? How do I block access to my collections but not cut ...
Michael's user avatar
  • 133
1 vote
1 answer
2k views

MongoDB REST interface not listening after update

I replaced the mongodb-10gen install with the Ubuntu package (mongodb-server, mongodb-client and dev). apt-get install mongodb Thereafter, I am now unable to connect to the REST interface, where it ...
Ones and Zeroes's user avatar
1 vote
1 answer
3k views

Very slow MongoDB replica set

I have set up two Mongo instances in EC2 having RAID10. I set up replica set using those two servers and found that this replica is very very slow over network. If I log in locally and issue query ...
Lukasz's user avatar
  • 121
1 vote
1 answer
4k views

How to change the default admin username and admin password in RockMongo?

I am using RockMongo admin tool and I can access it usingthe default username admin and admin password settings. I would like to change it however the documentation is a little cryptic. I have even ...
Strong Like Bull's user avatar
1 vote
1 answer
398 views

mongo shell / readline / osx

I would like to get the mongo shell to work with readline under osx lion so it picks up my inputrc and I can get all my funky vim bindings. I tried: scons -j 16 --64 --extralib=readline --libpath=/...
jassinm's user avatar
  • 111
1 vote
1 answer
84 views

AWS use local area IP or public one to network apps?

I have a web server with a separate database server in this case a MongoDB, both are hosted on EC2, but when connecting my webserver to my database server is it best to use the public IP address or ...
JP Silvashy's user avatar
  • 1,487
1 vote
1 answer
747 views

Problems with MongoDB server, (anon):1137 exception connect failed

I have recently installed MongoDB server on Ubuntu. It was working and I use id from PHP too but, I don't know why it started failing. It's the first time I use mongodb so I am a bit lost. Actually, ...
udexter's user avatar
  • 143
1 vote
1 answer
862 views

MongoDB: Fixing ReplicaSet Error on reconfig - "Server::doWork task:rs Manager exception:unauthorized db:local lock type:2 client"

Question: How do I fix my servers and get them back to the normal ReplicaSet with no error messages? I'd offer a serious bounty, but all my points are on SO :( Details of the Problem I'm running a ...
Corey Ballou's user avatar
1 vote
1 answer
1k views

MongoDB Java, R2.5.3 - NoSuchMethodError on DBCollection.save(DBObject) in Tomcat6

java.lang.NoSuchMethodError: com.mongodb.DBCollection.save(Lcom/mongodb/DBObject;)V Here is the sample code. Error is on Line 3. 1 BasicDBObject dbo=new BasicDBObject(data); 2 DBCollection coll =...
user81240's user avatar
1 vote
1 answer
1k views

Remote MongoDB server or a local one?

I am on 1GB Linode (VPS) with MongoDB + Apache. MongoDB has 1.5M+ records. Multiple instances of the script , over which the service entirely depends cause 50+ active connections and around 50 ...
kapeels's user avatar
  • 355
1 vote
1 answer
5k views

Getting MongoDB to use max open file descriptors in /etc/security/limits.conf

I've got a MongoDB server that runs out of file descriptors for open connections. I changed the settings in /etc/security/limits.conf so that every user gets a hard and soft limit of 65000 of open ...
Eugene's user avatar
  • 21
1 vote
4 answers
392 views

centos + mongo questions

Where does mongo install on centos? I want to remove some databases and file collections as well as uninstall it all together, can anyone help?
user avatar
1 vote
2 answers
3k views

Storing Hundreds of Millions of Records

My company will be coming into possession of a dataset consisting of approximately 200-300 million records. The source material is csv and is about 150GB uncompressed. We would need to perform an ...
Edwin Knuth's user avatar
1 vote
0 answers
81 views

MongoS refusing connections during network split

I am exploring sharded MongoDB clusters, and I have trouble understanding MongoS's behavior during a network split. My test environment works as expected until I simulate a network split. In the "...
Nick Turner's user avatar
1 vote
0 answers
882 views

Zabbix not collecting metrics from Mongodb

I have a Mongodb running on an ubuntu server for which I have installed zabbix agent2 as per the documentation. https://www.zabbix.com/integrations/mongodb#mongodb My zabbix server is running on a ...
Cecil's user avatar
  • 11
1 vote
0 answers
189 views

Logrotate Create Mode Issue

I have a trouble with logrotate service in linux. I have a logrotate config for mongodb log as below: /var/log/mongodb/mongod.log { rotate 10 daily dateext dateformat %Y-%m-%d-%s ...
Fatemeh Davoudi's user avatar
1 vote
1 answer
609 views

Disable mongodb NETWORK logs

I'd like to disable NETWORK logs but can't find a way. As I can see in the docs, without using quiet I am already at the least verbose level with 0. The verbosity level can range from 0 to 5 : 0 is ...
vinni_f's user avatar
  • 204
1 vote
1 answer
549 views

mongorestore: inspect archive dump file or validate --nsFrom parameter?

I have a MongoDB server with database DB_A and DB_B. Using mongodump I create an archived dump of only database DB_A: mongodump --uri "$MONGO_CONNECTION_STRING" --archive --gzip -db "...
user avatar
1 vote
1 answer
399 views

graylog 4.0 - Injector could not be created

Trying to set up graylog with official graylog2.graylog ansible role. Installed Elasticsearch (v7.10.2) cluster on three separate servers with official elasticsearch ansible role (node_1 - master, ...
Drew's user avatar
  • 123
1 vote
0 answers
342 views

Apache with PHP FPM and requests spikes, how to set optimal configuration?

I was lucky enough that my website went viral, and the server of course wasn't ready for it. Unfortunately my setup is quite bad, a single server with Apache, PHP (Laravel), Mongodb and redis. The ...
Gregory Wullimann's user avatar
1 vote
1 answer
4k views

Failed to connect to 127.0.0.1:27017, connection refused

So I am currently trying to setup mongodb running and hosting locally for my centos machine. But when I try to connect I get this: #mongo MongoDB shell version v3.4.24 connecting to: mongodb://127.0.0....
Mr.Dobby's user avatar
1 vote
1 answer
805 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 ...
ChrisC's user avatar
  • 111
1 vote
0 answers
351 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). { "...
walkmitch's user avatar
1 vote
0 answers
2k 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 ...
user3792685's user avatar
1 vote
0 answers
156 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 ...
Bob C.'s user avatar
  • 75
1 vote
0 answers
3k 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 ...
usernumber124153's user avatar

1
7 8
9
10 11
18