[06:02:12] <Bitsnoxx> I dont think mongodb likes me :c
[06:04:57] <brotatochip> hey guys, i have a secondary that’s immediately entering rollback after restarting and I can’t seem to find the cause of this
[06:11:36] <joannac> brotatochip: does rollback succeed?
[06:11:58] <brotatochip> I’m not sure, it’s still rolling back
[06:12:51] <brotatochip> the primary and arbiter are both unable to reach it
[06:12:59] <brotatochip> i can’t get a local shell
[06:18:30] <brotatochip> joannac: it seems to be ok now, rs.status() looks good
[06:18:47] <brotatochip> there is a bit of difference in the optimes though
[06:26:52] <Bitsnoxx> What is the easiest way to insert json response into mongodb? (node)
[06:34:21] <profsimm> Hey folks mongodb was working fine on my Ubuntu and now suddenly starting the service just shuts down. I saw "unable to create PID" in the logs, but now I erased the logs to make sure it occurs on launch and no new logs are created in /var/log/mongodb/
[06:34:33] <profsimm> Any idea what's wrong or how to diagnose it?
[06:34:53] <joannac> try starting it manually and see what response you get
[06:35:15] <profsimm> joannac: sudo service mongod start? Sorry very new to this
[06:37:44] <profsimm> joannac: oddly when I type just mongod, I get "this program is not installed"
[06:38:01] <profsimm> joannac: this.. is so odd, the log files and data is still here
[06:41:48] <joannac> profsimm: no, start it manually
[06:42:04] <joannac> figure out where your dbpath is, and where the binary is
[06:42:16] <joannac> then /path/to/mongod --dbpath /your/dbpath/here
[07:03:15] <profsimm> Hey folks I used mongodump to dump a bunch of collections. Now I'm unsure how to import all this. I have a *lot* of collections. I see a folder with bunch of foo.bson + foo.metadata.json files
[07:03:30] <profsimm> I'm looking at mongoimport docs and it seems to take one JSON file only
[09:29:53] <m3t4lukas> dw: if you are worried findAndModify (aka update) is doing the wrong thing just check it using find() beforehand. and always test your queries on similar data in a test env before running them
[11:29:00] <m3t4lukas> Zelest: do you run community or enterprise version? You gotta compile community version yourself in order to make them communicate in TLS
[11:29:23] <Zelest> no idea, i installed the mongodb-org according to the docs
[11:53:20] <m3t4lukas> Zelest: As far as I know it should not be a problem. but what could happen? Worst case scenario: you wipe the data dir of the new servers
[11:53:40] <m3t4lukas> or they just don't add to the cluster
[12:04:38] <m3t4lukas> profsimm: some more data please
[12:04:56] <m3t4lukas> profsimm: what OS what version of mongodb?
[12:05:26] <profsimm> m3t4lukas: I wish I had any. Ubuntu, mongodb, used to work, now I run "service mongod start" it shows it starting successfully and the process disappears a split second later
[12:06:32] <m3t4lukas> what happens if you back up you data dir and and empty it?
[12:07:51] <m3t4lukas> I take a wild guess and think it tries to treat an mmapv1 dir as a wired tiger dir
[12:08:20] <Zelest> oh, mongoimport on 3.2 imports multiple collections at once :o
[12:57:19] <profsimm> Ok it seems mongod runs with insufficient permission in service. How do I set that, any idea?
[13:25:32] <Keksike> I'm doing a ensureIndex (aka createIndex) into my groups collection like this. When I try to add a new group it gives me a duplicate key error of a field that isn't even mentioned in the ensureIndex, why is this? https://gist.github.com/Keksike/a008c661d71d43fb0363
[13:25:55] <Keksike> I use cn to create the indexes but get the error from the dn-field
[13:26:15] <Keksike> can it be because of some old ensureIndexes I have done previously? should I drop the index?
[13:30:29] <Keksike> ah, yeah there was some old index there
[16:10:03] <hagb4rd> hi. i have a collection i use to store some log data in. the inserted docs are always the same. when printed to json i realized half the characters of a 'dataset' never changes..and so my question is: would it matter for the total size of the collection if i would have given shorter names to the columns?
[19:06:38] <robsco> what's the easiest way to get the min value of a field across all my docs? it's a unix timestamp field
[19:08:35] <robsco> aye was just googling that approach, i'd seen some mention of 'first' a few days ago too
[19:47:43] <shlant> hi all. I ran db.copyDatabase('foo', 'bar');. It returned ok. Is there a way to check the status of the copy?
[20:08:59] <robsco> are there any memory optimisations/configurations I should be aware of with MongoDB, or is it simply a case of having enough RAM for OS disk/file caching?
[20:42:26] <m3t4lukas> shlant: export both and compare using meld :P
[20:42:59] <m3t4lukas> robsco: it's about ram. There are optimizations concerning the file system
[21:56:58] <msx> hi all, while restoring a dump made from a mongo 2.6 to a mongo 3.0.8 (wiredTiger) the restoration get stuck in a loop: while mongod process load varies from 10~18% there's no I/O activity (with the exception of the eventual memory flush from the system). The last line of mongo's log file reads: '2016-01-08T21:06:13.001+0000 I - [conn4] Index Build: 615400/1160709 53%' and that's it
[22:39:15] <msx> m3t4lukas: btw, is there any mongo forums out there? I couldn't find such on mongo's OSS portal
[22:48:16] <msx> This is exactly what I'm experiencing right now: http://stackoverflow.com/questions/33867354/after-mongodump-calling-mongorestore-hangs
[23:28:56] <freewil> why does mongo not use indexes when querying with $or and using sort()?
[23:29:06] <freewil> … at least in 2.4 https://docs.mongodb.org/v2.4/reference/operator/query/or/