[01:31:00] <jeromegn> Anybody has a nice BSON file sample to work with? I'm implementing the BSON spec and I've been having a hard time getting some solid sample data to properly test my implementation. Especially around fields like Code, CodeWithScope, Binary and others like that.
[05:28:06] <_syn> has anyone seen this in logfile where instead of just the command (update in this instance) it adds the database name, appended by .$cmd command: ?
[05:28:39] <_syn> I was wondering why my regex wasnt parsing properly until I took a deeper look into the logfile and found this..
[05:46:03] <_syn> these arehttp://pastebin.com/fpT1DtU
[05:46:35] <_syn> theres a full log, in the pastebin
[05:46:49] <_syn> they are the exact same record too, which is really odd
[07:35:52] <nfroidure> Are you still using the old Node MongoDB native driver or do you already use the 2.x version ? If so, any thing to know beofre switching ?
[09:17:16] <fontanon> Hi everybody. Does anyone recommends a good guide to migrate to wiredTiger?
[12:07:28] <amitprakash> Hi, I am getting a SocketException handling request, closing client connection: 9001 socket exception [SEND_ERROR] server on my primary mongo in a replica set for tailed oplog queries
[12:32:07] <mortal1> Gentlemen, I'm trying to query on the properties of a list of objects that are nested a few levels. Could you take a look at http://pastebin.com/ASSgeqdT and tell me how one might go about writing such a query in mongo?
[14:12:56] <nekyian> hey guys... I have a very large Mongo collection and I want to do something for every doc in that collection. Do I have an alternative to Document::all() to get documents in batches?
[14:13:24] <nekyian> I tried using skip()->take() but it misses documents
[14:48:00] <StephenLynx> or if you don't need to read the document to perform the operation, just run the update with an empty query block
[15:18:43] <Doyle> Hey. Are there any issues that may arise from changing the hostname of a mongodb RS host at the OS level, but not in the config. The config is correct. Just the os hostname is bad.
[15:19:32] <ehershey> I have seen that scenario cause problems
[15:23:20] <Doyle> Well, centos doesn't handle multiple domains being specified in a DHCP option set, it concatinates them so you end up with something like hostname.ec2.internal.otherdomain.com
[15:23:51] <Doyle> The instances are resolvable by hostname.ec2.internal, but not the concatinated one
[15:24:21] <Doyle> The replica set was setup with just the hostname:27017 in the conf and is working
[15:24:48] <Doyle> just the hostname is resolvable, and will continue to be post rename. The rename is just from the hostname.ec2.internal.otherdomain.com to hostname.ec2.internal
[15:34:11] <amitprakash> Hi, I am getting a SocketException handling request, closing client connection: 9001 socket exception [SEND_ERROR] server on my primary mongo in a replica set for tailed oplog queries
[17:56:05] <akoustik> i'm trying to set up a "cloud manager automation" trial. i have 4 replica set members and they were all recognized during setup, but at the step to actually add automation, i can't go on, and i get a page with "Error: Version not found". anyone seen this before?
[17:57:33] <cheeser> you should file a support ticket.
[17:58:13] <akoustik> very well! such a non-descript error message though.
[17:59:29] <cheeser> i think i have an idea where that error comes from but it's not really my area so I don't know for sure.
[18:01:34] <akoustik> hm. well, in related news, the reason i'm messing with the web manager is to figure out why my secondaries have been in "recovering" status for several days with no evidence that anything is actually going on.
[18:02:11] <akoustik> is it advisable to just unhook them, blow their db directories away and start over?
[19:05:06] <akoustik> i assume that you're not actually using that syntax in your code...
[19:09:47] <preyalone> ** expands dictionaries as if you typed out the keyword parameters by hand. I've also tried literally typing them out by hand, but same error
[19:17:34] <akoustik> yeah sorry i forgot about dict expansion. so you tried it by hand... does pymongo maybe actually expect the 'upsert' arg to be in an unexpanded dict? (haven't used pymongo)
[19:21:12] <silasx> So, logging question: I’ve set up a mongo v3 server, and it’s logging the full content of writes. Like, when I insert an object, it’s logging every attribute of that object in /var/log/mongodb/mongodb.log . Now, I don’t mind it logging the write event, but I really don’t want it to log all the content. ID only is ideal.
[19:22:22] <silasx> The closest I can find to addressing this in the docs is that I can set the log level to “only stuff higher than info” … but again, what if I don’t mind “wrote object with this ID on this DB”, but just don’t want it dumping the full content to my logs?
[19:23:07] <silasx> And as I’m trying to debug this, I want to know how to ask mongo what my current log settings are, but the most it will do is repeat by my explicit config settings
[19:26:18] <silasx> So, a) should mongodb be logging the full content of an insertion? b) how do look up the current log settings? and c) is it possible to turn off “log full content of insertion”?
[19:27:08] <silasx> and d) can anyone see my questions?
[19:29:10] <StephenLynx> a: that would include the inserted document? in that case, no, I don't think thats a good thing
[20:33:29] <silasx> Hey amigos, I’m back. So, I can do .getLogComponents, and I see verbosity of everyhing set to -1 … should it be like that? is that the reason why I’m seeing full documents in the logs when they get inserted?
[20:34:05] <daidoji> let me know what you find out, as its a curious example
[20:34:54] <qswz> Hi, I've installed mongodb and mongoose, when I connect to it with "mongodb://localhost/" it works, but not when I put "mongodb://<IP>", any idea why?
[20:40:05] <StephenLynx> I suggest you don't use mongoose
[20:40:34] <nathesh> now time to figure out why :)
[20:41:02] <nathesh> wait does the array ordering matter?
[20:47:05] <qswz> StephenLynx: ok will test with the native driver
[20:50:36] <silasx> Hey mongo experts, when I look at getLogComponents, I see verbosity set to 0, and but verbosity of every component is set to -1. Is that how it’s supposed to work?
[20:51:04] <silasx> It seems like with our v3 upgrade, by default it started dumping entire documents into the log that were being written, which doesn’t make sense as that’s a security risk.
[20:52:07] <silasx> I don’t want to be all “hatin’” on Mongo but … is that really what’s supposed to happen on an upgrade?
[20:54:04] <cheeser> you should probably file a support ticket
[20:54:14] <mkjgore> hey mighty channel, is there a way to convert a non-"directoryPerDB" backup converted to a "directoryPerDB" format? We've got ourselves mongodb cloud backup but it seems to be converting our DB from one format to anotyher
[20:54:39] <cheeser> mkjgore: iirc, you'd have to recreate your DB to change that setting.
[20:56:05] <mkjgore> cheeser: thanks for that. the thing is that the db was "directoryPerDB" and then the restore from Mongo's cloud service gave us a bunch of *.0 and *.ns files instead of our previoous setup
[20:56:33] <mkjgore> so our server is already set (and has been) to directoryPerDB, the files we got back from mongo however… :-(
[20:57:13] <cheeser> backup files from the cloud backup? or mongodump?
[20:59:43] <cheeser> ah. well, do the restore and see.
[21:00:14] <mkjgore> can't really restore because the DB throws an error complaining about directoryPerDB being set to true but the database being otherwise
[21:01:21] <cheeser> oh. interesting. that also sounds like a support ticket. i'm not sure of the mechanics around that.
[21:01:57] <cheeser> i need to go find food. good luck. :)
[21:08:36] <d-snp> has anyone seen this before? http://lpaste.net/140994
[21:08:45] <d-snp> we get an error "splitChunk cannot find chunk"
[21:08:57] <d-snp> and it's trying to split a chunk into lots and lots of chunks for some reason
[21:09:40] <silasx> So can anyone answer: if my default log verbosity level is 0, why are all the components at verbosity level -1?
[21:10:50] <qswz> StephenLynx: still the same, when I do MongoClient.connect('mongodb://127.0.0.1/', function (err, db) {... it works, but not when I put the public IP, the firewall isn't active but even when trying locally it shouldn't matter
[21:14:32] <qswz> in command line, when I do "mongo" or "mongo localhost" it works
[21:14:54] <qswz> when I do "mongo my.fucking.public.ip" it doesn't
[21:15:10] <daidoji> nathesh: ahh good catch. I'm betting in javascript [1,2] is different than [2,1] which is why it matters which makes sense if you think of them as arrays (as javascript is want to do) instead of lists where ordering is arbitrary
[21:17:04] <daidoji> although experience and caution advise me to suggest that its not usually a good idea to open up a DB port on an externally facing ip
[21:17:59] <qswz> yes, it's just for testing from my local laptop (to an external host)
[21:20:53] <qswz> ~$ sudo ufw status => Status: inactive