[01:44:41] <slaning> If I'm adding .populate to a findOne query, what's the cleanest way to then populate something inside of the property that was initially populated?
[02:06:03] <MyS> how do I configure phpmyadmin to enter with MongoDB?
[06:52:25] <k_sze[work]> I have trouble reasoning how to properly take advantage of a ReplicaSet.
[06:53:54] <k_sze[work]> For example, if there's a record that I *know* is in the primary, but when I try to find it in a replicat set using NEAREST read preference, the secondary that I hit may not have it synchronized over yet.
[07:56:20] <krion> the things is we have deleted the db on both shard manually
[07:56:39] <joannac> krion: balancer on? did chunks move but then stall, or have chunk moves started but now stopped for some reason? what do the logs say?
[08:01:37] <krion> joannac: this is a very complex setup for me, i only have two vm acting as a shard, but i've also two entity server and three "config" server
[08:02:04] <joannac> I don't know what you mean by "entity server"
[08:02:05] <kali> three config servers is the standard for production
[08:55:20] <sascha> i'd like to find newly added entries in a collection. there's no date or incremental id field which i can use. what would you guys recommend?
[08:55:35] <jordz> The ObjectID field contains a timestamp
[09:58:24] <krion> i could found an explanation on the documentation, only how to create etc..
[10:01:45] <jordz> krion: A replica set is just mutliple mongod's running the same data. Say you had 3 machines, they all contain the same data and automatically replicate and failover
[10:12:10] <Derick> sascha: but you shouldn't be able to even create an ObjectId like that... ObjectId is a special type. You can just put a string (or float) in _id, but that is *not* an ObjectId.
[10:28:35] <kees_> Derick, i had this problem with php/mongo and int's converting to float, it was caused by storing the values with a 1.5 driver and retrieving them with a 1.4 driver.. the 1.4 driver saw them as floats
[10:29:05] <Derick> kees_: yeah, we made this better in 1.5 by having native_long on
[10:29:12] <Derick> meaning that you'll get proper 64bit ints and no floats
[10:30:08] <kees_> aye, but 1.4 thinks it is a double/float and stores them as a double/float
[10:30:36] <Derick> you can just set mongo.native_long=1 in the 1.4 driver
[10:31:06] <kees_> i upgraded all the drivers to 1.5 ;)
[10:31:21] <Derick> that fixes it too as it's =1 by default there
[10:48:23] <krion> hum, now there is something i don't get
[10:48:43] <krion> where should i connect to have a global view of all the replicaset in my configuration ?
[12:13:07] <evildead> Wed Sep 3 14:09:53 User Assertion: 12514:login failed
[12:13:10] <remonvv> talbott: $addToSet is okay if your entire subdocument will match exactly, if not you can put the appropriate condition in the update query.
[12:39:44] <elfuego> is there a technique that can be used to detech when a mongodb server has started?
[12:45:40] <braz> there are a number, if it is on a Linux box and installed as a service you could use "sudo service mongodb status"
[12:46:00] <braz> how are you trying to check it - is it via the command line or via a query to the server direct ?
[13:03:24] <elfuego> jordz: but will that tell me whether or not mongod is ready and waiting for a connection?
[13:04:30] <jordz> I believe if mongod is running it usually means it's accepting connections BUT if you want to be sure you could try and connect locally and if it fails then assume it doesn't
[13:05:14] <jordz> so "ps aux | grep mongod".. "mongod is there".."mongo <somecommand>".."connects locally and runs"
[13:05:28] <jordz> would something like that work?
[13:07:53] <elfuego> I think that will work, but its a bit hacky, I did something similar with a node server, using a curl script to try connecting until it gets a 200
[13:08:13] <elfuego> I was hoping for a cleaner way of doing it
[13:09:33] <jordz> You could actually attempt some form of TCP connection, I'm sure there'll be some form of handshake the shell does with the server and you could just use that. Like I said, I'm just mitigating any kind of linux-ish stuff that docker might not allow
[13:16:59] <elfuego> jordz Just to give you a little context, i’m trying to run mongoimport to initialize the database once it has started.
[13:17:21] <elfuego> I was wondering if there exist any other method in doing so
[13:19:38] <jordz> Well, even if you were to use service mongod status, there are cases where it will not connect straight away and there's no way to tell other than looking at the logs
[13:20:08] <jordz> for instance, when starting a brand new instance on a fresh machine, the initial boot creates the memory mapped files which can take some time
[13:20:28] <jordz> mongod's status will be running but connections will not be available until it's finsihed
[14:34:30] <BaNzounet> Hey, I want to clone a collection, I've to use db.cloneCollection right ? But I'm not sure how I've to use it, I want to clone a collections name foo to bar how do I do that ?
[14:36:12] <BaNzounet> I'm looking for something like db.source.copyTo("target");
[15:15:22] <andrewhathaway> This may help? http://stackoverflow.com/questions/4987289/how-to-remove-column-from-child-collection
[15:15:33] <remonvv> ejb : or update({'shows.foo':{$exists:true}}, {$unset:{'shows.$.foo':1}}) if you need exact matching
[15:16:25] <remonvv> ejb : Actually, just use the latter. It's partial match already. Brainfart
[17:36:18] <pasichnyk> Are there anythings that people have noticed in robomongo that BREAK after upgrading to Mongo2.6, or is it simply that some new 2.6 stuff isn't able to be done via the GUI yet?
[17:38:14] <JohnnyDBA> Can someone help me with the two-factor authentication in MMS? It worked when I first logged on, now that I'm logged on it's asking me for another verification code for any changes I'm making and the text messages are not coming through to my phone anymore. Is there a way to just shut it off? We have ops issues that we need to address.
[17:39:50] <pasichnyk> JohnnyDBA, i haven't seen that happen before. Will it accept our old code?
[17:40:02] <JohnnyDBA> It is not accepting the code I used to log in
[17:40:23] <pasichnyk> is it possible its goign to someone elses phone?
[17:40:26] <JohnnyDBA> I have opened a support case for this in your Jira system
[17:40:41] <JohnnyDBA> It went to my phone when I logged in, after that I haven't received one
[17:41:15] <JohnnyDBA> the phone # is correct under settings
[17:41:28] <pasichnyk> weird, no clue. I haven't seen any issues with it before.
[17:41:48] <pasichnyk> I would email their support...
[17:42:03] <JohnnyDBA> do this instead of opening the jira case?
[20:34:34] <geoffeg> If I run a remove() on a non-indexed field on a very large collection, will I incur a writelock that will prevent all writes from occuring while the remove() is running?
[20:35:49] <cheeser> all writes take a write lock, indexed or not.
[20:38:53] <geoffeg> understood, but will that write lock block all other writes or will it pause at times to allow other ops to occur?
[22:23:51] <Ryan_Lane> hi there. is there a better way for this init script to actually see if mongo is running or not? https://github.com/mongodb/mongo/blob/master/debian/init.d#L192
[22:24:04] <Ryan_Lane> because mongo very often takes longer than 10 seconds to start
[22:24:40] <Ryan_Lane> and it's seriously screwing with our config management runs (which then breaks our testing infrastructure)
[22:25:06] <Ryan_Lane> there must be some actual way to know if mongo has started and is ready for service, right?
[23:39:31] <pasichnyk> does robomongo work ok with 2.6, or has anyone found any blocking compatibility issues (since its still on 2.4 shell)?