PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 29th of September, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[05:08:43] <ns5> where can I download mongodb bson python api source code?
[05:11:56] <Boomtime> https://github.com/mongodb/mongo-python-driver
[05:13:06] <ns5> Boomtime: thanks
[07:30:56] <savantgarde_> what does the --service option to mongod on Windows mean?
[07:31:46] <savantgarde_> trying to install a mongod service with a 3rd party service manager, and the --service option just causes mongod to exit AFAICT, even though the documentation says to use this option
[07:31:58] <savantgarde_> i.e., if you install the Windows service manually
[07:32:11] <savantgarde_> I can't find any documentation on --service either
[07:39:10] <joannac> savantgarde_: which documentation?
[07:39:53] <savantgarde_> joannac: hold on
[07:40:44] <savantgarde_> joannac: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/#create-the-mongodb-service
[07:40:54] <savantgarde_> the command sc.exe create MongoDB binPath= "\"C:\Program Files\MongoDB 2.6 Standard\bin\mongod.exe\" --service --config=\"C:\Program Files\MongoDB 2.6 Standard\mongod.cfg\"" DisplayName= "MongoDB 2.6 Standard" start= "auto"
[07:41:20] <savantgarde_> mongod accepts a --service option, but there's no help for it (--help)
[07:43:42] <joannac> savantgarde_: what does mongod.exe exit with?
[07:44:33] <joannac> Sounds like it should be a DOCS ticket - https://jira.mongodb.org/browse/DOCS
[07:44:55] <savantgarde_> joannac: it only says that it moves the log file to a backup, then exits
[07:45:09] <savantgarde_> it exits with non-zero it seems
[07:45:56] <savantgarde_> the log says "Trying to start Windows service 'MongoDB'"
[07:47:10] <joannac> :(
[07:47:52] <savantgarde_> that option can probably be disregarded; I've installed the service leaving that option out, and it works fine AFAICT
[07:48:53] <joannac> savantgarde_: would you please open a DOCS ticket with these details? At least, we can remove the --service option. At best, we can figure out why mongod.exe won't start with --service
[07:50:19] <savantgarde_> joannac: sure
[07:50:42] <savantgarde_> joannac: not sure what's the use of --service anyway
[07:55:13] <savantgarde_> joannac: you mean to create a Jira issue for the Documentation project am I right?
[08:32:26] <kali> savantgarde_: yes, you can access it byt the toolbox at the bottom left of the doc pages
[08:32:34] <savantgarde_> kali: aha
[08:32:41] <savantgarde_> well, I've filed an issue
[08:32:45] <kali> great
[08:32:47] <kali> thanks
[08:32:53] <savantgarde_> np
[14:40:05] <tamm0r> hi! is this the correct channel to ask mongodb java driver questions?
[14:41:29] <digicyc> Could try here or ##java
[14:41:52] <digicyc> There are a couple Java gurus here I believe though.
[14:43:27] <tamm0r> well then... when retrieving documents the java driver silently strips out \u0000 characters from field values... is this expected behaviour?
[14:58:30] <skot> tamm0r: nulls are not allowed in field names; see the bson spec: http://bsonspec.org/spec.html
[15:47:32] <tamm0r> skot: the nulls are in field _values_, not in the names
[15:49:07] <skot> Then I'd be surprised, and you should file a jira issue with a repro if it isn't this one: https://jira.mongodb.org/browse/JAVA-1070
[15:51:20] <tamm0r> skot: the weird thing is that I can store string values with null chars using the java driver, but during retrieval the null chars are silently stripped out
[16:09:05] <vrkid> hi, I'm trying to setup external authentication to mongodb (LDAP) and I followed the tutorial, but it doesn't work... I've found (running the server with -vvvvv) that it does [db].$cmd saslStart than calls the 'parseAndRemoveImpersonatedRolesField' auding method. After that it tries to look for the user locally (3 attempts) after which it fails with SASL(-13) Authentication failure: Password verification failed"
[16:09:37] <vrkid> anyone can try and help me understand what is going on?
[16:17:07] <PirosB3> hi all
[16:17:14] <PirosB3> if I have a structure like the following:
[16:17:20] <PirosB3> {name
[16:17:45] <PirosB3> (doing a gist)
[16:18:46] <vrkid> another question: what is the file /usr/lib64/sasl2/mongodb.conf for?
[16:19:59] <PirosB3> If I have a collection that looks like this: https://gist.github.com/64b7ad99f02fb810214d is it possible to $push to multiple arrays at once?
[16:20:58] <PirosB3> for example, can I do {$push: { friends: {33: [{x,y,z}, {x,y,z}, …], 35: [{x,y,z}, {x,y,z}, …]}} ?
[18:12:40] <daidoji> hello, is there any way to append aggregations? or do I have to do that in the application?
[18:23:43] <daidoji> probably application :-(
[18:23:58] <daidoji> wish there were a flag to the $out aggregation
[18:28:11] <sellout> daidoji: What language is your application in?
[18:31:34] <daidoji> sellout: why does it matter?
[18:33:07] <sellout> daidoji: Because we have a higher-level library for Scala that makes reuse of portions of queries a lot easier. Just internal currently, but planning to pull it into its own OSS project.
[18:33:50] <daidoji> sellout: ahhh, I see. Unfortunately I'm not on a jvm language at the moment
[18:34:26] <daidoji> sellout: however, I'm really just griping because Mongo isn't really suited to analytical things and when I try to do it all in Mongo aggregation or mapReduce its really annoying
[18:35:00] <daidoji> I never knew how much I would miss SQL until it was gone
[18:35:03] <sellout> daidoji: That is actually the more general problem we’re working on: http://slamdata.com
[18:36:10] <daidoji> sellout: ahhh
[18:37:12] <sellout> The SQL is really just a stepping stone. Easiest way to make use of the intermediate relational++ model, which eventually other analysis tools will be built on.
[18:37:56] <daidoji> sellout: ahhhh, well I'll take a look
[19:01:17] <terrellt> So I have a query that gets generated with a bunch of ORs and it runs pretty slow. It seems to be using an index appropriately - anything I can do?
[19:09:49] <daidoji> terrellt: what's your query doing? gist it?
[19:10:00] <terrellt> Trying out using $in
[19:10:48] <daidoji> ahhh
[19:11:04] <terrellt> I would, but getting the output's not that straightforward. Effectively I have a document structure of {:s => "stuff", :p => "stuff", :o => "stuff"} with an index on s/p/o. Searching for all items which have a s/p combo from an array of possibilities.
[19:12:22] <terrellt> Wow, $in put it at 9ms.
[19:14:14] <daidoji> terrellt: so thats good?
[19:14:42] <saml> terrellt, why not write fast query
[19:15:07] <saml> give us example documents, query you're running
[19:15:09] <saml> we can optimize
[19:15:56] <huleo> hi
[19:16:51] <terrellt> daidoji: That's good. 9ms makes me happy, disregard me. Thanks for trying to help, sorry for the bad background.
[19:17:19] <huleo_> oops
[19:17:39] <huleo_> so we have this doc, { field: [ 1, 2, 3] }
[19:18:01] <daidoji> terrellt: no worries
[19:18:29] <huleo_> how will I query for docs that /must/ have "1" as one of the values of "field"?
[19:19:40] <ehershey> db.stuff.find({field: 1})
[19:20:12] <ehershey> well, or field: "1"
[19:20:22] <huleo> but that's different :-)
[19:20:29] <ehershey> you said "1" :)
[19:20:39] <huleo> yeah
[19:20:41] <huleo> :p
[19:20:49] <huleo> hmm,funny thing
[19:20:55] <huleo> I already did it somewhere else
[19:20:58] <huleo> but forgot
[19:25:24] <daidoji> huleo: http://docs.mongodb.org/manual/reference/operator/query/in/
[19:32:45] <huleo> daidoji: that's exactly what I don't need
[19:40:12] <daidoji> huleo: really? Cause it seemed like what you were asking for
[19:40:20] <daidoji> 12:18:27 huleo_ | how will I query for docs that /must/ have "1" as one of the values of "field"?
[20:06:16] <digicyc> daidoji: http://docs.mongodb.org/manual/reference/operator/query/regex/ maybe?
[20:06:47] <huleo> daidoji: nevermind
[20:06:59] <huleo> no $in needed here :-)
[20:07:02] <culthero> How would you add a second instance of mongo (like mongos) to run on system boot on debian?
[20:07:09] <huleo> thanks guys for help, I'm off
[20:07:35] <digicyc> culthero: add the command in /etc/rc.d/rc.local ?
[20:07:49] <culthero> digicyc, thank you!
[20:08:09] <digicyc> culthero: It may be in /etc/rc.local too
[20:08:16] <digicyc> but the file is rc.local that you want to add the command
[20:08:46] <culthero> ah yes, in /etc
[20:09:22] <culthero> great. Secondly quick clarification on auth / keyfiles.. if I make a keyfile and copy it across config, mongos, and shards authentication .. then just works right?
[20:09:39] <culthero> as long as all configs are pointing to the right spot?
[20:19:42] <decompiled> Yup, adding a mongos is as simple as pointing that host to the config servers and including the key
[20:37:38] <akp> hello. i am playing with some mongo and php, and i am a bit miffed by this issue i am having. i am trying to use findOne() it seems to work for one value, but the other values it doesn't seem to work. here is a pastebin to the code and the mongo values - http://pastebin.com/MHKdV1DE
[21:22:43] <BigTrucK> Afternoon. I am trying to upgrade from 2.4.7 to 2.4.11 on CentOS 6.5, but I keep getting "No package mongo-10gen available." errors. Following docs outlined here: http://docs.mongodb.org/v2.4/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/
[22:05:29] <kexmex> Hi
[22:05:29] <kexmex> a bad aggregation command with an $out clause, was running for a while, and now i am out of space
[22:05:30] <kexmex> even though the temp collection got dropped, the space is already alllcated
[22:05:38] <kexmex> i *think* i need to run repairDatabase(), but I can
[22:05:43] <kexmex> i can't get 12gb free, lol
[23:05:31] <BigTrucK> Afternoon. I am trying to upgrade from 2.4.7 to 2.4.11 on CentOS 6.5, but I keep getting "No package mongo-10gen available." errors. Following docs outlined here: http://docs.mongodb.org/v2.4/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/