[04:12:26] <n0t1me> i recently tried building the cxx driver but failed due to it requiring the c driver 1.0 although the quickstart guide says it requires 1.2
[04:12:47] <n0t1me> is this the right place to ask?
[04:17:11] <acidjazz> joannac: tahts what i assume.. unforunately this setup i'm using mongolab.com so i cant really tell
[06:33:37] <hypermist> i can't add an account with db.adduser. it says password cannot be blank but its not blank
[06:55:14] <hypermist> can i have some help on trying to fix it
[06:55:39] <joannac> hypermist: paste what you're trying to do
[06:56:01] <joannac> hypermist: including db.version()
[08:02:45] <joannac> uninstall the old package you have
[08:02:55] <joannac> go the that link I gave you and start from the beginning
[08:02:55] <hypermist> i did apt-get remove mongodb
[08:04:06] <joannac> I don't think you actually understand how a database works. so follow the tutorials and it should at least get you up and running
[08:04:27] <joannac> you're going to be fighting an uphill battle on a 32-bit host though
[08:06:56] <Dev0n> hey, anyone know if there is anything that would allow you to use mongodb query on a standalone object that's not currently in mongo?
[08:07:18] <Dev0n> something like doc = Object; .find({...}, doc)
[08:10:08] <Dev0n> one hacky way to do it is insert it then do find on the id that you get back for that document
[08:14:42] <Dev0n> humm, this looks promising: https://github.com/mcvella/mongo-json-query
[10:11:05] <hypermist> joannac, i have it working on 3.0.3
[10:11:33] <hypermist> and it says waiting for connectings but when i goto connect my program it goes unable to connect
[10:48:06] <hypermist> My thing wont connect to the db
[11:36:10] <milestone> hi folks, can someone tell me what happened to the find_one method of the ruby mongo driver for 2.6?
[11:36:28] <milestone> in mongo 2.0.4 this is no longer available
[11:36:35] <hypermist> well i think i have to upgrade to 64bit os.. :\
[11:36:36] <milestone> has this been replaced by an equivalent?
[11:36:56] <hypermist> cause if i dont upgrade to 64bit. since its not actually installed as a process or maybe i need to reboot
[12:22:40] <flok420> I have a collection with millions of documents. each has a ts and a value. now I would like to know the maximum and minimum ts (not the value) for all documents where ts older than x. how can i do that quickly? I tried using collection.group(...) but that takes ages
[12:25:17] <hypermist> lol i cannot make my program connect to the db
[12:30:11] <hypermist> cause i was looking at it when i booted it. it'd say 0.0.0.0
[12:35:08] <flok420> cheeser: would that be something like the following because that still takes minutes on a very small dataset: db.data2.aggregate([ { $match : { 'ts' : { '$lt' : 1433402642 } } }, { $group : { _id : "$ts", max_ts : { $max : "$ts" } } } ])
[12:38:13] <flok420> cheeser: I'm also not sure about that $group : { _id : "$ts", why does it need that _id? I don't care for the_id, I only want to know that max_ts
[12:38:41] <cheeser> i think documents coming out of a group need *some* _id.
[12:38:50] <cheeser> i could be wrong, though. i don't work much with aggregations directly.
[12:38:56] <hypermist> cheeser, can you help me at all
[12:39:12] <cheeser> hypermist: only what i've done so far.
[15:47:00] <StephenLynx> only makes sense you try to use it in a working OS
[15:49:17] <cheeser> it was an intern project. cut 'em some slack.
[15:49:34] <FanBoy> OS fanboyism is ironcially lost on me, I honestly don't care what OS you use if it works for you :)
[15:50:20] <StephenLynx> well, obviously neither windows or osX worked on you :^)
[15:50:35] <FanBoy> cheeser: its a good looking app (from the screenshots anyway)!
[15:50:52] <StephenLynx> good looking isn't productive.
[15:51:47] <FanBoy> and yet my girlfriend is quite good at housework
[15:52:56] <StephenLynx> not because of her looks.
[15:53:14] <FanBoy> as mentioned, it would nice as an educational tool or for demos. Perhaps you've never had to try and sell something to a client, but sadly it is often style over substance
[16:11:00] <SpeakerToMeat> Yes this is the last channel of the kit
[16:57:12] <ams__> I'm trying to speed up my mongodb upserts. Are upserts likely to be slower than straight replaceOnes? Are there any metrics anywhere I can take a look at?
[16:58:56] <StephenLynx> How much longer are they taking?
[17:02:46] <ams__> I've not doing comparisons myself, I'm being lazy and wondering if anyone else has already done them for me
[18:08:12] <GothAlice> ams__, StephenLynx: Correct, a page fault is MongoDB reading data from disk that was loaded before, but had been "paged out" (removed from the in-memory cache).
[18:08:30] <GothAlice> Well, regardless of having been loaded before. Cold caches will generate a large number of page faults initially.
[18:17:34] <deathanchor> how do I drop a db.system.profile on a secondary?
[18:21:47] <deathanchor> is there a way to drop a collection on a secondary?
[18:31:05] <brotatochip> cheeser and deathanchor so I've decided to move forward with the 3 DC option with an arbiter and it seems to work well with my forced failover/failback tests. What I'm doing is setting the prod primary priority to 10, DR site to 1, so the failover is warm in the event of DC outage
[18:31:52] <brotatochip> then what I'm doing is going to the DR site (now primary) reconfig its priority to 10 and the prod priority to 1 so that when it comes back up it isn't elected as primary, and this works
[18:32:36] <brotatochip> Then I'll bring the app down in DR, wait for the sync to complete from DR to PROD secondary, then reconfiguring back to original - DR site priority 1 PRD 10, then prod gets elected as primary again
[18:33:01] <deathanchor> you don't have to change both priorities
[18:33:09] <deathanchor> just set the DR one to 20
[18:33:30] <deathanchor> yeah whatever floats your boat
[18:33:37] <brotatochip> thanks deathanchor, do you see any other issue with this config?
[18:33:56] <deathanchor> your apps should know about all members of the set
[18:34:16] <deathanchor> so whenever a new primary is elected the apps just automatically go there
[18:34:35] <brotatochip> I don't think they should, because I have one set of app servers in Prod and one set in DR, and they only need to reach the DB that is local to them when that is a primary
[18:35:00] <brotatochip> I'm using route 53 to direct traffic flow
[18:35:39] <brotatochip> in the event of a DC outage in prod, I'll either set up hot failover for route 53 to point to DR instead, or manually do it
[18:36:59] <deathanchor> just saying if you want automatic app switching: http://docs.mongodb.org/meta-driver/latest/legacy/connect-driver-to-replica-set/
[18:38:16] <deathanchor> sorry, this is better: http://docs.mongodb.org/manual/reference/connection-string/
[18:38:17] <brotatochip> basically if there's a DC outage, it doesn't matter what the app is pointing to because the app is down in prod, so DR will be spun up to point to the DR mongodb instance, I don't think currently my use case needs automatic app switching
[18:39:06] <brotatochip> thanks for that though deathanchor that will definitely prove useful if and when we need to scale mongodb horizontally
[18:41:00] <deathanchor> so I still need help with profiler.. how do I drop the db.system.profile on a secondary where I ran the profiler?
[18:41:04] <brotatochip> also deathanchor I've decided to implement a hidden slave for backups thanks to your advice
[18:41:28] <brotatochip> don't want to impact prod and I want to be able to take regular backups - both mongodumps and snapshots
[18:43:06] <brotatochip> oh btw does anybody know if there is a way to have secure encrypted communication for mongodb 2.6 without compiling the binary myself?
[18:45:01] <brotatochip> no StephenLynx, it's not ultimately my decision either
[18:45:28] <brotatochip> although I do have a very healthy aversion to not running code that hasn't been out in the wild for at least 6 months to a year
[18:46:44] <brotatochip> the CTO and the director of ops (both of my bosses) share that same aversion, and we don't exactly have a timetable for being able to test our social platform with mongodb 3.0
[18:46:46] <deathanchor> So no answers for how to drop the db.system.profile on a secondary where I ran and stopped the db profiler?
[18:57:23] <brotatochip> Derick: what about username/pw auth?
[18:57:47] <brotatochip> would that work for replication?
[18:58:07] <brotatochip> and if so, are those credentials sent in plaintext? (this would defeat the purpose for me)
[19:28:35] <Derick> brotatochip: auth is not encrypted, you need ssl for that
[19:34:21] <n0t1me> is there anybody here able to help me build the mongodb-cxx-driver master?
[19:37:10] <crised_> When you use java with mongodb, Do you normally use GSON to convert POJO to JSON?
[19:44:20] <brotatochip> yeah I thought so Derick, that's unfortunate :/
[19:51:35] <crised_> if mongodb uses bson internally, as a app developer, why would I care about this?
[19:54:24] <Zelest> Derick, i wrote a little thingie to handle translations.. so i basically have an object with the fields en, sv, de, etc for each language.. The page writes the text on english and i wrap the text around this function.. if the text is found in "en", replace it with whatever language the user has picked.. if available..
[19:54:44] <Zelest> Derick, however, i've noticed that texts that contains a lot of spaces isn't found. :o
[19:54:59] <Zelest> as in, returns, spaces, tabs.. (some of the text is formatted)
[20:17:12] <diegoaguilar> Hello, I'm trying to use mongoose to perform queries and db logic ... however I got an issue as any model seems to get find, findById, etc methods available ... this is what my code looks like
[20:17:27] <diegoaguilar> Hello, I'm trying to use mongoose to perform queries and db logic ... however I got an issue as any model seems to get find, findById, etc methods available ... this is what my code looks like
[20:47:11] <gagalicious> i'm about to convert to cassandra, not trying to start a flame war here... but can anyone advise what's mongo doing better than cassandra? and how does the storage efficiency of mongo compares with tokudb?
[20:48:39] <StephenLynx> absolutely no idea about anything about cassandra and never heard about tokudb
[21:14:30] <diegoaguilar> Can anyone help me with a mongoose issue? https://stackoverflow.com/questions/30675729
[21:56:38] <crised_> When working in Java, How do you validate the structure of the json document inserted?
[22:17:32] <MacWinner> if I have a document like invoice = { notes: 'Test Invoice', products: [ {name: 'product1'}, {name:'product2'}] } is there an atomic way to add another product to the array but only if there is not existing element in the products array with the same name? like if I try adding {name: 'product3'} to products, it should work.. but {name: 'product2'} should not since it's already there.. I want this to be atomic in case 2 different processes
[22:17:32] <MacWinner> are trying to update at the same time.. the first process should win
[23:35:55] <MeStesso> hello! do you know if there’s a way to have MongoDB using SSL and requiring authentication only on a certain network interface or only when the request comes from IPs that are not in the LAN?
[23:37:33] <cheeser> it isn't. you'd need to use a proxy for that.
[23:37:44] <MeStesso> cheeser: what kind of proxy?
[23:37:54] <cheeser> one that does what you just said
[23:40:24] <MeStesso> StephenLynx: also for authentication?
[23:40:38] <StephenLynx> I am not experience with proxies.
[23:40:45] <joannac> how to set up an authenticated proxy is a question you should ask your sysad
[23:40:46] <MeStesso> i can only think of SSH but that would require creating an entire new user with certain privileges i don’t want them to have
[23:41:08] <StephenLynx> but if the peer behind the proxy authenticated, wouldn't the proxy just have to send the server EXACTLY what its receiving from the peer?
[23:41:11] <MeStesso> i can also think of VPN but that requires extra hardware and extra monthly AWS fees. my boss says no