[01:48:20] <dman777_alter> I checked node.js driver docs and haven't found anything yet....are there connection event listeners? likein mongoose MongoClient.connection.on('connected', function () {}), etc
[02:59:35] <dman777_alter> for logging verbosity, is update considered a component?
[03:26:36] <dman777_alter> for some reason push is not appending to my array pets. anyone know why? here is the debug: 2016-01-29T03:14:37.030+0000 I COMMAND [conn17] command curves.$cmd command: update { update: "users", updates: [ { q: { pets: [ { petType: "pig", name: "pear" } ], _id: ObjectId('56aad0a3ef5848c231ec80ed') }, u: { $push: { pets: "sssss" } }, upsert: false, multi: false } ], ordered: true, writeConcern: { w:
[14:12:45] <__gilles> reading the doc http://docs.mongoengine.org/guide/querying.html there are operations you can perform against strings such as $iexact, $exact, $startswith, ...
[14:13:07] <__gilles> when trying to use them from pymongo, it fails with an OperationFailure: ... BadValue unknown operator
[14:13:24] <__gilles> do they have to be implemented using regex ?
[14:26:08] <GothAlice> __gilles: Those are MongoEngine ODM additions to the query syntax, not MongoDB options.
[15:08:11] <jemershaw> I am trying to run a docker container of mongodb. I installed docker and can connect to the instance but the minute I try to create a new database it seems like it removes the new database. I can send the log when i try to create the database if that is helpful.
[15:36:51] <alexi5> I have a document with structure showin in http://pastie.org/10700665. How do i query to find an documents with GsmSectors (Array) where Antenna(object) proprty Make is equal to Nortel ?
[15:38:46] <GothAlice> alexi5: db.collectionNameHere.find({"GsmSectors.Antenna.Make": "Nortel"}) – you can even create an index on the field to speed up lookups. :)
[15:40:32] <GothAlice> Yeah, you generally don't nest matching like that, because it means something subtly different than the shallow query with dot-notation fields.
[15:43:57] <GothAlice> See also: https://docs.mongodb.org/manual/reference/operator/projection/positional/ – if you don't need the entire record and instead want to just get back just the single matching array element (if a single match is expected) from the overall document, plus whatever other fields you wish.
[16:10:35] <StephenLynx> mongoose is awful, you should stop using it.
[16:18:28] <dman777> StephenLynx: haha....sorry. just wanted one last try
[16:20:03] <dman777> StephenLynx: with the driver, how can I retain a open connection? all the examples for anything I do I have to open first and close when finished.
[16:26:18] <StephenLynx> that is a site running gitlab's software.
[16:42:09] <fish_> I just delete my data directory to start over but now can't create the initial admin user. I suspect mongodb stores the info that localhost bypass is disable somewhere outside the data directory - is that true?
[16:56:40] <fish_> it works for connecting to mongod, but not so mongos
[16:59:18] <fish_> oh great.. same as last time. I try and try this over and over, failing every single time. trying to authenticate and, as expected, returns an error
[16:59:30] <fish_> now I wait some time and suddently i can login with the credentials
[17:28:26] <jemershaw> I am running a docker instance of mongodb. I can connect to the instance but when i try to create a new db it shows this in the log writer worker 12] CMD: drop testdatabase.temp
[17:33:22] <fish_> 'caught exception while doing balance: could not get updated shard list from config server due to ExceededTimeLimit Operation timed out' <- any idea how to figure out which config server this is talking about?!
[17:34:33] <fish_> just recreated this cluster. adding shards worked just fine
[17:34:49] <fish_> but now sh.status() times out and I get those log issues
[17:35:30] <fish_> and manually I can connect to all nodes
[17:37:20] <fish_> and when i connect to the config server primary I can run sh.status()
[17:39:43] <skot> I suspect your problem is that where you are running the shell can't connect to things inside your docker instances.
[17:57:06] <dman777> dude, that is funny...ya, that is what I would come across if I googled searched
[17:57:20] <StephenLynx> that is just the usual crap you get from webdevs.
[17:57:38] <StephenLynx> as a rule of thumb I always do the opposite of what is popular among webdevs.
[17:57:53] <dman777> ya, i got enough on my plate to learn. i have no use case for docker
[17:57:58] <StephenLynx> using node is the only exception, I think. but even then I use node in a completely different way the community does.
[18:02:31] <fish_> 12:49 < StephenLynx> these tools in general even might have a justifiable use, but most people using them are just clueless and go for fads.
[18:02:45] <fish_> ^- saying that in mongodb irc channel... :P
[18:03:29] <StephenLynx> I never denied there was an unjustified hype for mongo and people used it incorrectly because of that.
[18:03:37] <cheeser> a disparaging and arrogant sentiment
[18:03:58] <StephenLynx> along with at least 2 other people here, I have recommended rdbs for other cases
[18:05:07] <StephenLynx> same applies for node. many people using it don't understand what really are its strengths and use it incorrectly because of that.
[18:05:18] <StephenLynx> because understanding the strengths of a tool is also understanding its weakness.
[18:06:31] <StephenLynx> ffs, there are people building a whole OS as with node replacing bash
[18:06:36] <fish_> what I really don't understand is why I don't get mongodb running anymore.. I have the same cloudformation stack spinning up the same AMIs, yet somehow the cluster doesn't properly bootstrap and I get timeouts when trying to enable sharding :(
[18:07:12] <fish_> I could add shards just fine, but sh.enableSharding("my-db") gives me: "ok" : 0, "errmsg" : "Operation timed out", "code" : 50
[18:07:31] <fish_> same for sh.status() although I revived that after restarting all mongodb instances
[18:08:20] <fish_> and in the mongos log I get: "2016-01-29_18:01:58.85961 2016-01-29T18:01:58.859+0000 I SHARDING [Balancer] caught exception while doing balance: could not get updated shard list from config server due to ExceededTimeLimit Operation timed out
[18:08:48] <fish_> which isn't very help since it's not saying which config server it tries to talk to. the only thing I can say is that connecting to mongod on the config instances works just fine
[18:09:48] <fish_> any ideas? I'm kinda out of options than meditating over the logfiles some more
[18:11:17] <fish_> nothing too special going on. it has 5 shard + config servers, all 3 node replica sets
[18:14:42] <fish_> I still suspect it's somehow related to broken auth
[18:16:28] <fish_> actually now that I think about it, I think I never created a new cluster wiht 3.2.1, maybe there is some regression
[18:19:43] <fish_> https://jira.mongodb.org/browse/SERVER-22273 <- might have the same issue