[00:03:57] <slikts> I'm calling it like this: req.model.find().populate('createdBy').exec(function(err, data) { next(err || data); });
[00:04:48] <slikts> if I leave out the .populate then I get the same ObjectId in all createdBy fields, but if I include it I get only one populated field and the rest are null
[00:05:31] <mwillbanks> joannac: basically i am attempting to iterate over a collection which contains an element masks that is an array of string MongoIds
[00:24:33] <TylerE> well, now I'm getting a different error
[00:24:34] <TylerE> "errmsg" : "exception: Sort exceeded memory limit of 104857600 bytes, but did not opt-in to external sorting. Aborting operation.",
[00:25:12] <TylerE> and I'm definatly calling db.coll.aggregate([pipeline],{allowDiskUse:true})
[00:30:21] <joannac> Looks like a bug, then. File a SERVER ticket
[00:34:14] <skot> TylerE, are you sure you are using a new shell?
[00:34:23] <LouisT> so i assume the mongodb-10gen package for ubuntu is still using the vulnerable openssl?
[00:34:29] <TylerE> skot, ooh, good catch, I might not be
[01:02:59] <joannac> proteneer_: well... you're going to have a long recovery process
[01:04:08] <joannac> actually, it's probably not that bad
[01:09:06] <joannac> I think if you just restore, the ChunkManager will do the right thing. But you're going to lose any inserts to chunks on that shard, and also any chunks that were moved to that shard
[01:28:24] <hydrajump> hi does anyone here work for mongodb?
[01:38:00] <hydrajump> hi joannac. So I've never worked with databases before and I'm looking at possibly using mongodb for a web app. I saw that there is something called MongoDB University which offers free courses and I'm very interested in the one involving node.js (which I also don't know) and mongodb. I saw that the course has already started and lasts till May. However, I can't wait till May because I want to get started right away. Is the course material
[01:38:00] <hydrajump> available prior to the course ending?
[01:41:00] <joannac> hydrajump: can you make an account and just sign up for it?
[01:41:23] <joannac> I think that's what I just did, and I see the first 2 weeks
[01:41:53] <joannac> Oh wait, you want content in advance?
[01:42:30] <hydrajump> I don't care about the assessment or certificate I just want to learn how to use mongodb the right way
[01:46:16] <joannac> I don't know for sure; why do you need to get started so fast anyway?
[01:48:07] <joannac> you could try your luck at education@mongodb.com I suppose...
[01:49:27] <hydrajump> Just eager to figure out how to get started with this web app.
[01:51:19] <joannac> You could try http://mongodbschool.io/ while you wait
[01:53:47] <hydrajump> Thank you I'll have a look.
[01:57:07] <hydrajump> I haven't been able to find a tutorials showing how to structure/ model data with mongodb. I don't mean a simple todo app, but something more complicated such as linkedin. How a user is provided with lots of filters and checkboxes to narrow done their search.
[01:57:45] <hydrajump> Do you know of any tutorials or OSS projects that do anything like that with mongodb?
[02:39:36] <paulkon> what's the recommended max size for a shard before another shard should be added?
[02:39:44] <paulkon> does that depend on the dataset?
[02:43:18] <joannac> wait, did they leave already?
[03:34:22] <niftylettuce_> i have feeling i have syntax err :)
[07:22:39] <IVBaker> hi all, I have a big issue: I'm using a sharded cluster and one of my configuration server died. I can't access the information that it had. I read the process to reset the configuration server here: http://docs.mongodb.org/manual/tutorial/migrate-config-servers-with-different-hostnames/ but I have an error when I relaunch with my new config server
[07:23:04] <IVBaker> ERROR: could not verify that config servers are in sync :: caused by :: config servers
[07:25:01] <joannac> config servers X and Y differ?
[07:25:28] <IVBaker> yes, the new config server is from scratch
[07:25:40] <IVBaker> I don't have the data it was hosting anymore
[07:26:19] <IVBaker> let's say I still have config1 config2 but not config3 and I'm creating a config4
[07:26:54] <joannac> IVBaker: yup, talk me through what you did
[07:28:13] <IVBaker> joannac: for now I'm only testing. I did the following: -create RS1 with 2 shards -connect the shards together -create rs2 with 2 shards -connect together
[07:29:08] <IVBaker> joannac: then create 3 config server, create one mongos with the configdb linking to the 3 config servers
[07:30:02] <IVBaker> joannac: one config server died and I haven't backed up any info on it. Now what I want is to relaunch a third config server to this configuration
[07:36:02] <joannac> IVBaker: are you going to tell me what you actually did, after config3 died?
[07:37:27] <IVBaker> joannac: stopped all the shard cluster, I stopped the 2 other config server, the mongos
[07:37:59] <IVBaker> joannac: restarted the 4 shards, the 2 config servers, created a new config server
[07:38:48] <asturel> (@joannac) asturel: looks like you fell off the oplog -> how can i fix it?:D
[07:39:00] <asturel> i tried delete the dbpath but didnt helped
[07:39:25] <joannac> IVBaker: um, is that the order you did it in? because that's not right
[07:39:42] <IVBaker> joannac: tried to restart mongos with the new third config server and I have the error message: ERROR: could not verify that config servers are in sync :: caused by :: config servers "config1" and "config4" differ
[07:39:56] <joannac> asturel: shut down the server you're getting the message in. remove everything in the dbpath. start the mongod again
[07:51:52] <asturel> i added rest=true and replset in that config
[07:54:13] <asturel> Tue Apr 8 09:48:29 [rsStart] replSet exception loading our local replset configuration object : 13132 nonmatching repl set name in _id field; check --replSet command line
[07:54:23] <asturel> Tue Apr 8 09:48:30 [rsMgr] replSet total number of votes is even - add arbiter or give one member an extra vote
[07:54:36] <asturel> Tue Apr 8 09:48:19 [rsStart] replSet info you may need to run replSetInitiate -- rs.initiate() in the shell -- if that is not already done
[07:54:57] <asturel> but if i tpye rs.initate it gives me error: "errmsg" : "already initialized" "info" : "try querying local.system.replset to see current configuration",
[07:55:14] <joannac> if you query it, what does it say?
[09:02:42] <rspijker> asturel: but the output you get could be preformatted by the client you are using. That is, the mongo shell gives me a different response than, for instance, robomongo
[09:09:28] <IVBaker> joannac: I'm tried to copy the db from config server 2 to 4 bu it's still not working
[09:28:51] <pontus_> anyone got any pointers on how to group coordinates? I would like to take thousands of ducuments and group by say the ten closest. I assume aggregation query is the way to go...
[09:29:12] <pontus_> closest would mean close to each other. not to me